
Linux
CheckDaemon
Description:
A perl script/package to run Nagios checks in the background without the limitations of Nagios executing the checks.
Current Version
Last Release Date
June 16, 2009
Compatible With
Owner
Project Files
File | Description |
---|---|
run_background_checks.pl | Version 0.3 |
Project Notes
When Nagios is busy, it will occasionally not execute checks, and simply schedule them to be executed in the future, on the basis that the machine should not be overloaded. After you've seen a once-per-minute check continually rescheduled and never executed for a continious period of six hours, this feature of Nagios becomes a little bit annoying.
Enter run_background_checks.pl/Nagios::CheckDaemon . This script is designed to be executed from cron or Nagios (as a perfdata_processing_command with a long interval) and has one job; to execute host and service checks.
With this narrow goal in mind, this script parses the Nagios configuration files, and periodically keeps up to date with the current state of Nagios via the defined status_file. Host and Service Checks are executed (at their scheduled times!) in a parallel fashion up to max_concurrent_checks (and cpu load limits), and are submitted to Nagios via the pipe defined in the external_command_file option.
Checks which are past their expected execution time, based on the last update time plus the appropriate interval are executed immediately, rather than being rescheduled for the future. Check execution dependencies are also followed, ensuring no surprises are present. Checks which are not configured to accept passive check results are not executed.
Some patches to the dependent Nagios::Object libraries are required, see the home page.
Reviews
(0)
Add a Review
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
148,665