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?
Host check in passive check setup
-
michal.nastaly
- Posts: 59
- Joined: Tue Jun 02, 2015 9:24 am
Host check in passive check setup
You do not have the required permissions to view the files attached to this post.
Re: Host check in passive check setup
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
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
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
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.
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
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
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
Done it. changed the check_host_freshness to 1 and it works now.
Cheers,
This thread can be closed now.
Cheers,
This thread can be closed now.
Re: Host check in passive check setup
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!