We have to run the following to get it up again:
Code: Select all
/etc/init.d/nagios-nrpe-server restartHow can should we resolve this?
Code: Select all
/etc/init.d/nagios-nrpe-server restart3. Install nagios NRPE
apt-get install nagios-nrpe-server
(accepted WORKGROUP)
4. Edit /etc/nagios/nrpe_local.cfg
allowed_hosts=<ip>
command[<command name>]=<full path to plugin and any arguments>
// E.g.
allowed_hosts=<nagios_server_ip>
server_address=<local_bind_ip>
server_port=<local_bind_port>
command_timeout=60
connection_timeout=300
command[check_status_carp]=/etc/nagios/EKHScripts/check_zenlb_carp.php
command[check_status_penfarms]=/etc/nagios/EKHScripts/check_zenlb_penfarms.php
5. Restart NRPE daemon
/etc/init.d/nagios-nrpe-server restart
Code: Select all
chkconf nagios-nrpe-server oncat /proc/version
Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012
Debian uses update-rc.d instead of chkconfig. Check the syntax on it as I know it is a bit different than the chkconfig syntax.mroter wrote:I assume you were referring to chkconfig command, right?
Anyway the box I'm monitoring is running Debian and don't have this command:cat /proc/version
Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012
Can you advise on the equivalent? Manual fix...
root@ZLB-104-QA:~# update-rc.d nagios-nrpe-server defaults
update-rc.d: using dependency based boot sequencing
Dec 25 15:19:59 ZLB-104-QA nrpe[948]: Starting up daemon
Dec 25 15:19:59 ZLB-104-QA nrpe[948]: Network server bind failure (99: Cannot assign requested address)
Dec 25 15:23:23 ZLB-104-QA nrpe[1229]: Starting up daemon
Dec 25 15:23:23 ZLB-104-QA nrpe[1229]: Warning: Daemon is configured to accept command arguments from clients!
Dec 25 15:23:23 ZLB-104-QA nrpe[1229]: Listening for connections on port 5666
Dec 25 15:23:23 ZLB-104-QA nrpe[1229]: Allowing connections from: 172.20.1.106
Code: Select all
tail -f /var/log/messages