Page 1 of 1
Host check in passive check setup
Posted: Tue Feb 02, 2016 10:20 am
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
Re: Host check in passive check setup
Posted: Tue Feb 02, 2016 11:41 am
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
Re: Host check in passive check setup
Posted: Wed Feb 03, 2016 6:42 am
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?
Re: Host check in passive check setup
Posted: Wed Feb 03, 2016 11:31 am
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.
Re: Host check in passive check setup
Posted: Wed Feb 24, 2016 9:43 am
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
Re: Host check in passive check setup
Posted: Wed Feb 24, 2016 10:30 am
by michal.nastaly
Done it. changed the check_host_freshness to 1 and it works now.
Cheers,
This thread can be closed now.
Re: Host check in passive check setup
Posted: Wed Feb 24, 2016 11:39 am
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.