Nagios: PROBLEM Host Alert: localhost is DOWN
Any Slackers using nagios? I have dug around the web to no avail.
I keep getting "PROBLEM Host Alert: localhost is DOWN" emails from nagios trying to ping localhost. /bin/ping: chmod u+s / -rws--x--x /etc/nagios/cgi.cfg: ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$ LANG=en_US.UTF-8 nagios-plugins slackbuild: Code:
--with-ping-command=/bin/ping I can su - nagios and ping works fine. Disabling iptables makes no difference. Running the check_ping command manually: Code:
/usr/libexec/nagios/check_ping -H localhost -w 100.0,20% -c 500.0,60% -p 5 Code:
/usr/libexec/nagios/check_ping -H localhost -w 100.0,20% -c 500.0,60% -p 5 -4 Thanks. :) |
Greetings,
How about if you try the following from the command line: Code:
/usr/lib/nagios/plugins/check_ping -H 127.0.0.1 -w 100.0,20% -c 500.0,60% -p 5 -4 Just trying to see if it is complaining about having the additional argument at the end of the command or if it doesn't know where to find localhost. Do you have an entry in your /etc/hosts for localhost like the following? Code:
127.0.0.1 localhost localhost.localdomain |
Yes, /etc/hosts is fine. Same results with 127.0.0.1 as localhost.
Quote:
Code:
/bin/ping |
Greetings again,
Well, I am a bit confused how this could happen since it would seem one of the most basic plugins, but I think there are a couple more steps to run down what exactly is going on... Let's try this... If you "su - nagios", do you get the same output from the exact ping command that's being passed to the nagios plugin as I do below? Code:
nagios@bakhost ~ $ ping -n -U -c 5 127.0.0.1 Code:
~ $ file /usr/libexec/nagios/check_ping |
Well, this is interesting. On a whim I installed the monitoring-plugins package and removed the nagios-plugins package.
Problem solved. I notified the nagios slackbuild maintainer. Thanks for trying to help! :) |
All times are GMT -5. The time now is 01:55 AM. |