Host check in passive check setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Host check in passive check setup

Post by michal.nastaly »

Hi Guys,

I have a Nagios XI server (CentOS 64bit 5.2.3, vmware). Usual setup, few host, few services monitored on them hosts, all using passive-checks (nsca). And the only thing i have a problem with finding a "How to" guide for is getting the Nagios XI server to check the hosts once every hour so that if the NSClient++ dies i will know that there is something wrong with that host. So how do i do it, how do i get Nagios XI to check hosts once every hour?
Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host check in passive check setup

Post by lmiltchev »

You can set up freshness checks to be run every 3600 seconds. Please, review the "Extending Passive Checks With Freshness Checks" section in the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Host check in passive check setup

Post by michal.nastaly »

I have set it up accordingly to that document, but the only message i receive is "OK: No data received yet." event when the host is shut down. How can i get it to tell me if the host is down or not responding with passive checks?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Host check in passive check setup

Post by bwallace »

Please double check these settings if you haven't already...

What is the check command you're using for the active check? (refer to page 4 of the doc) if ping will work, try the check_ping cmd as that should certainly detect the server as down. Also, might the freshness threshold be set to high? Just for testing purposes set this real low.
Be sure to check out the Knowledgebase for helpful articles and solutions!
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Host check in passive check setup

Post by michal.nastaly »

I'm still having issue trying to setup Host check in passive check setup. But i think i have found why this is, but i'm still unsure so here is my question:

Do i need to update th /usr/local/nagios/etc/nagios.cfg and set:
check_host_freshness to 1?

for the host freshness to work?

Regards
Michal N
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Host check in passive check setup

Post by michal.nastaly »

Done it. changed the check_host_freshness to 1 and it works now.

Cheers,

This thread can be closed now.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Host check in passive check setup

Post by bwallace »

Thanks for that update and glad to hear it works now. I'll go ahead and close this thread, but feel free to open another thread if you need assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked