Page 1 of 1

Nagios passive check freshness check doesnt work for Hosts

Posted: Thu Jan 04, 2018 6:53 pm
by yosh
I got a requirement to setup Nagios passive checks to monitor a server. I managed to set it up according to the guide given and it all works.
But the freshness check only works for the services only and it doesnt work for the Host check.

What is working:
  • Passive Checks for the host and services
  • If any service is failed, client reports to the Nagios server and I receive the alerts
  • When the service is recovered then client reports the UP status back to the Nagios server and I receive the recovery alert
All above work as intended but the freshness check.
If the client server loose network connectivity to the Nagios server then it fails to receive check results. Since Nagios server is not aware that it doesnt receive any new check statuses it keep maintaining the Up status even when the client host is not reachable. That is where we need the freshness check. (As per my knowledge)

I configured the freshness check for both the host and the services. Then if the client failed to report, the services generate alerts based on the freshness threshold. But the freshness check set up for the host doesnt generate any alert at all even when the client doesnt respond.

I really appreciate if any of you can be of any help for me to get this fixed.

Re: Nagios passive check freshness check doesnt work for Hos

Posted: Fri Jan 05, 2018 11:01 am
by kyang
Thanks for sharing. I'm going to test this on my XI and see what happens.

UPDATE:

I got this to work.

While reading the documentation on freshness checking, it seems the option in the nagios.cfg is turned off for host freshness checking.

https://assets.nagios.com/downloads/nag ... hness.html

https://assets.nagios.com/downloads/nag ... k_interval

So in your nagios.cfg you will find check_host_freshness=0

Code: Select all

Change it to 1
--> check_host_freshness=1
Restart your NRDP passive checks, restart nagios, and it should work if you have freshness checking set up through the CCM for that host.
Capture.PNG
Let us know if you have any more troubles.

Re: Nagios passive check freshness check doesnt work for Hos

Posted: Sun Jan 21, 2018 7:41 pm
by yosh
Thank you very much Kyang.Its worked after changing the Nagios Core configs as you advised.

Re: Nagios passive check freshness check doesnt work for Hos

Posted: Mon Jan 22, 2018 4:53 pm
by dwhitfield
@yosh, any other questions or are we ready to lock this one up?

Re: Nagios passive check freshness check doesnt work for Hos

Posted: Tue Jan 23, 2018 6:55 pm
by yosh
Hi dwhitfield,

We are ready to lock this up.
Thank you..!

Re: Nagios passive check freshness check doesnt work for Hos

Posted: Wed Jan 24, 2018 11:54 am
by tmcdonald
Glad to hear it! I'll be closing this thread now, but feel free to open another if you need anything in the future.