Page 2 of 2
Re: False alarm
Posted: Tue Feb 11, 2014 2:07 am
by nagarjuna
Hi
Actually we are using NRDS/nrdp for 1000 machines and in all machines automatically its came due to passive checks from nrdp.
We did not modify anything except freshness check in host/service template. please check the attached screenshot.
Re: False alarm
Posted: Tue Feb 11, 2014 1:58 pm
by slansing
I'm a bit curious as to why have check intervals set up on your passive object, and also, if this is your host, it looks like you may be confusing active and passive checks. Generally you want to set your hosts up as active, with a ping check, so that you know if the host address is reachable or not.
Re: False alarm
Posted: Wed Feb 12, 2014 5:09 pm
by nagarjuna
Actually we enabled freshness checks for Hosts/services, due to that we mentioned check intervals there. Please suggest us , is this OK without setting check interval on passive hosts/service template. We want to initiate ping test after 8 min if result not sending by passive host on nagiosxi server.
In place of check_dummy, i am using check_host_alive plugin for freshness check for passive hosts
Re: False alarm
Posted: Wed Feb 12, 2014 5:35 pm
by abrist
This is possible with an event handler. Your event handler should run a ping check and if it is OK, submit a passive check OK result for the object. This is a custom script you will have to create. It will be run whenever the freshness is reached as the state change will be HARD.
Re: False alarm
Posted: Wed Feb 12, 2014 11:56 pm
by nagarjuna
Hi Abrist,
Will you please let us know how to set all the things, first we need to enable freshness check in global configuration file.
------------------------------------------------------------------------------------------------
# vim /usr/local/nagios/etc/nagios.cfg
check_host_freshness=0
to
check_host_freshness=1 (for enabling host check freshness)
check_service_freshness=0
to
check_service_freshness=1 (for enabling service check freshness)
---------------------------------------------------------------------------------------------------
For setting freshness we are using passive host and service templates
Is there any other way for setting freshness check......?
Can we enable freshness check only for passive hosts/services only. (from nagios.cfg file its apply for globaly)
-------------------------------------------------------------------------------------------------
Is there any other way for enabling freshness checks and set threshold only for passive hosts ?
Re: False alarm
Posted: Thu Feb 13, 2014 11:06 am
by abrist
nagarjuna wrote:Will you please let us know how to set all the things, first we need to enable freshness check in global configuration file.
You will need to enable freshness as you have done.
nagarjuna wrote:Is there any other way for setting freshness check......?
Not really, enable it in nagios.cfg and then configure the passive service check to use freshness.
nagarjuna wrote:
Can we enable freshness check only for passive hosts/services only. (from nagios.cfg file its apply for globaly)
I would only enable freshness for passive services. Active service check intervals are essentially freshness.