Page 1 of 1

Modify/Disable Host Checks When Host Not Pingable

Posted: Thu Apr 02, 2015 4:47 pm
by mgaribaldi
How can I get around monitoring a host while changing the host check to not use ping since my end node does not reply to ICMP echo. Nagios is reporting my host as down when it isn't.

I need to check the host is up by other means, in this case, checking TCP port 80.

I've read this link below, but after submitting the passive result, the host continues to show down.
http://www.htmlgraphic.com/nagios-check ... hout-ping/

If I disable host notifications will this also affect service notifications?

Thank you,
Michael

Re: Modify/Disable Host Checks When Host Not Pingable

Posted: Thu Apr 02, 2015 4:52 pm
by jdalrymple
Super easy...

host definition check_command directive

It's just like any other Nagios command.

http://nagios.sourceforge.net/docs/3_0/ ... .html#host

Code: Select all

define command {
       command_name                             check_tcp
       command_line                             $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}

define host {
        host_name                       somehost
        check_command                   check_tcp!80
		...
To answer your other question - disabling host notifications won't disable service notifications.

Re: Modify/Disable Host Checks When Host Not Pingable

Posted: Thu Apr 02, 2015 6:12 pm
by mgaribaldi
Thank you very much!