Nagios passive check freshness check doesnt work for Hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

Nagios passive check freshness check doesnt work for Hosts

Post 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.
kyang

Re: Nagios passive check freshness check doesnt work for Hos

Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by kyang on Fri Jan 05, 2018 12:36 pm, edited 5 times in total.
Reason: UPDATE with the answer.
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

Re: Nagios passive check freshness check doesnt work for Hos

Post by yosh »

Thank you very much Kyang.Its worked after changing the Nagios Core configs as you advised.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios passive check freshness check doesnt work for Hos

Post by dwhitfield »

@yosh, any other questions or are we ready to lock this one up?
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

Re: Nagios passive check freshness check doesnt work for Hos

Post by yosh »

Hi dwhitfield,

We are ready to lock this up.
Thank you..!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios passive check freshness check doesnt work for Hos

Post 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.
Former Nagios employee
Locked