Hi,
I am using NCPA Passive check to monitor my remote host. However this morning my remote host went down and I didn't receive any notification and Nagios core is still showing remote host as up but the last check time was just before the shutdown of remote host. I am just confused what is the use of passive checks if nagios doesn't if a remote host is down or not? Or Am I missing something here?
Any help is greatly appreciated.
Thanks,
NCPA - Passive Checks
Re: NCPA - Passive Checks
You will want to look into Freshness Checking: https://assets.nagios.com/downloads/nag ... hness.html
Basically it forces an active check if the passive check results have not come back within X seconds.
Basically it forces an active check if the passive check results have not come back within X seconds.
Former Nagios employee
-
charangandra
- Posts: 25
- Joined: Tue Feb 13, 2018 6:23 am
Re: NCPA - Passive Checks
Thanks for the reply, unfortunately I am new to Nagios and I couldn't figure it out how and where to define host and service defnition as specified in the article.
Is there any article with examples, so I can try to use it?
Thanks,
Charan
Is there any article with examples, so I can try to use it?
Thanks,
Charan
Re: NCPA - Passive Checks
The link provided contained an example:
If you still have problems after reviewing this again, please provide a copy of the config file containing the host/service definition. This will usually be under /usr/local/nagios/etc/objects/.
Code: Select all
define service {
host_name backup-server
service_description ArcServe Backup Job
active_checks_enabled 0 ; active checks are NOT enabled
passive_checks_enabled 1 ; passive checks are enabled (this is how results are reported)
check_freshness 1
freshness_threshold 93600 ; 26 hour threshold, since backups may not always finish at the same time
check_command no-backup-report ; this command is run only if the service results are "stale"
other options ...
}Code: Select all
define command {
command_name no-backup-report
command_line /usr/local/nagios/libexec/check_dummy 2 "CRITICAL: Results of backup job were not reported!"
}As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.