Suggestion on Parent / Child hosts in relation to Services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Suggestion on Parent / Child hosts in relation to Servic

Post by lmiltchev »

define service {
host_name cvt3247532
service_description TCP Port 25000
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 25000
max_check_attempts 50
check_interval 2
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts null
contact_groups null
_xiwizard tcpudpport
register 1
}
Are you sure that you want to run the check 50 times, after it goes to non-OK state? It's going to take awfully long time before the service goes to hard state...

What exactly is the problem that you are having at the moment? Is "Current Check" value incrementing every minute under the "Service Status Detail" page ("Overview" tab)?

For example:

Current Check: 10 of 50
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Suggestion on Parent / Child hosts in relation to Servic

Post by JakeHatMacys »

The goal is for the Host to go into a hard state and stop the service check. I was under the impression that once the host check hits a hard state all the services on the host would stop. I just want to see that visually aka never hit 50.

What's happening is our host goes 5/5 and the Service keeps incrementing, then for some reason a few minutes later the host resets to 1/5 without going green (device is unplugged the whole time) and the service then alerts when it hits 50.

So am I correct in assuming the host hard state should stop the service checks on the host? I guess that's square 1 to understand.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Suggestion on Parent / Child hosts in relation to Servic

Post by lmiltchev »

So am I correct in assuming the host hard state should stop the service checks on the host? I guess that's square 1 to understand.
No, you are not correct. Nagios will continue running the service checks even if the host is down. This is by design. For example, you may have a host that is UP, but the host check fails, because the ping/icmp checks have been disabled on the host. You would still want to check the state of the services on this host even though nagios "thinks" the host is down...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked