Code: Select all
# LOG FACILITY
# The syslog facility that should be used for logging purposes.
log_facility=daemon
Code: Select all
# LOG FACILITY
# The syslog facility that should be used for logging purposes.
log_facility=daemon
Code: Select all
usuario@debian:~$ su -c "tail /var/log/messages"
Contraseña:
May 19 09:32:12 debian nrpe[19857]: Added command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
May 19 09:32:12 debian nrpe[19857]: Added command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
May 19 09:32:12 debian nrpe[19857]: Added command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
May 19 09:32:12 debian nrpe[19857]: Added command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
May 19 09:32:12 debian nrpe[19857]: Added command[check_uptime]=/usr/local/nagios/libexec/check_uptime -w 5 -c 10
May 19 09:32:12 debian nrpe[19857]: Added command[check_mem]=/usr/lib/nagios/plugins/check_mem -w 80 -c 90
May 19 09:32:12 debian nrpe[19857]: Added command[check_ssh]=/usr/lib/nagios/plugins/check_ssh -w 5 -c 15
May 19 09:32:12 debian nrpe[19857]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
May 19 09:32:12 debian nrpe[19858]: Starting up daemon
May 19 09:32:12 debian nrpe[19858]: Network server bind failure (98: Address already in use)
Code: Select all
usuario@linux:~$ su -c "pkill -9 nrpe"
Contraseña:
usuario@linux:~$ su -c "/etc/init.d/nagios-nrpe-server start"
Contraseña:
[ ok ] Starting nagios-nrpe: nagios-nrpe.
usuario@linux:~$ su -c "tail /var/log/messages"
Contraseña:
May 20 09:07:11 debian nrpe[26980]: Listening for connections on port 5666
May 20 09:07:11 debian nrpe[26980]: Allowing connections from: 127.0.0.1,<host ip>
May 20 09:08:00 debian nrpe[27001]: Connection from <host ip> port 9897
May 20 09:08:00 debian nrpe[27001]: Host address is in allowed_hosts
May 20 09:08:00 debian nrpe[27001]: Handling the connection...
May 20 09:08:00 debian nrpe[27001]: Host is asking for command 'check_load' to be run...
May 20 09:08:00 debian nrpe[27001]: Running command: /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
May 20 09:08:00 debian nrpe[27001]: Command completed with return code 0 and output: OK - load average: 0.00, 0.01, 0.05|load1=0.000;15.000;30.000;0; load5=0.010;10.000;25.000;0; load15=0.050;5.000;20.000;0;
May 20 09:08:00 debian nrpe[27001]: Return Code: 0, Output: OK - load average: 0.00, 0.01, 0.05|load1=0.000;15.000;30.000;0; load5=0.010;10.000;25.000;0; load15=0.050;5.000;20.000;0;
May 20 09:08:00 debian nrpe[27001]: Connection from <host ip> closed.
Hard for us to say - you may still have issues. Did you verify that xinetd is not launching nrpe also?xerez wrote: Edit:
It changed to OK. Thanks!! But, what happened?
Code: Select all
[root@localhost ~]# /etc/init.d/xinetd status
xinetd (pid 1125) is running...
Code: Select all
[root@localhost ~]# for line in `grep -Rl nrpe /etc/xinetd.*`; do grep disable $line; done
disable = no
Code: Select all
root@linux:/# /etc/init.d/xinetd status
bash: /etc/init.d/xinetd: No existe el fichero o el directorio