Modify/Disable Host Checks When Host Not Pingable

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
mgaribaldi
Posts: 26
Joined: Thu Nov 06, 2014 1:58 pm

Modify/Disable Host Checks When Host Not Pingable

Post 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
"We all float down here...."
-Pennywise
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Modify/Disable Host Checks When Host Not Pingable

Post 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.
User avatar
mgaribaldi
Posts: 26
Joined: Thu Nov 06, 2014 1:58 pm

Re: Modify/Disable Host Checks When Host Not Pingable

Post by mgaribaldi »

Thank you very much!
"We all float down here...."
-Pennywise
Locked