Page 1 of 1

Host Status not correct

Posted: Thu Jul 07, 2011 3:13 pm
by QS1
Hello,

I have two hosts that show as being down ... Yet, all of their services are up and Ok.

Please see attached screenshot:
Capture10.JPG

Any suggestions?


Thanks

Re: Host Status not correct

Posted: Thu Jul 07, 2011 4:12 pm
by nscott
Is your host not accepting ping? Thats a common cause of that problem.

Re: Host Status not correct

Posted: Fri Jul 08, 2011 6:57 am
by QS1
That is correct ... We have ping traffic blocked.

Re: Host Status not correct

Posted: Fri Jul 08, 2011 12:52 pm
by nscott
What would probably be best in your situation, since there are so few that are are not accepting ping, is to edit the host directly.

I just wrote up a doc that specifically addresses your need.

http://assets.nagios.com/downloads/nagi ... _In_XI.pdf

Re: Host Status not correct

Posted: Mon Jul 11, 2011 10:11 am
by QS1
Ok - I have edited the hosts and templates as needed. I have applied configuration but they are still showing down. Is there a way to reset the hosts for the changes to take place?

Re: Host Status not correct

Posted: Mon Jul 11, 2011 10:29 am
by nscott
Well, if you just did it, I would give it the length of how long you have between checks.

After doing that and it still not working, I would verify the check that you specified will work and is properly set by running the very check you specified on the command line. That will be a good start.

Re: Host Status not correct

Posted: Mon Jul 11, 2011 12:38 pm
by QS1
I can't seem to find out exactly how to do that ... I know you can run it manually from the server.

Can you point me in the right direction?

Re: Host Status not correct

Posted: Mon Jul 11, 2011 1:24 pm
by agriffin
Here's an excerpt from this document:
It's useful to be familiar with running your plugins from the command line, for both informational and debugging purposes. They are located in the /usr/local/nagios/libexec directory. Navigate to that directory and run your plugin with the following commands:

Code: Select all

# cd /usr/local/nagios/libexec
# ./plugin_name args...
Experiment a bit and figure out the best way to run the plugin. It probably has a help option you can use to learn more:

Code: Select all

# ./plugin_name -h
Here's an example:

Code: Select all

# ./check_icmp -H localhost
OK - localhost: rta 0.016ms, lost 0%|rta=0.016ms;200.000;500.000;0; pl=0%;40;80;;
To find out the exact arguments that Nagios is using, you can look at the command definition in the Core Config Manager.

Re: Host Status not correct

Posted: Tue Jul 12, 2011 10:17 am
by QS1
Thanks all ... it works ... I changed it to look at the status of nagios client service.

Re: Host Status not correct

Posted: Tue Jul 12, 2011 2:29 pm
by mguthrie
Good deal, glad it's working for you!