Patch: Host and service orphan check configuration
Luke Ross
l-ross at northwestern.edu
Fri May 16 20:24:35 CEST 2008
It looks like Nagios 3 doesn't properly distinguish between between
host and service orphan checks: if either check_for_orphaned_services
or check_for_orphaned_hosts is enabled in the main config file, it
will run both kinds of checks. Here is a patch to correct this.
Thanks,
Luke
--- events.c.orig 2008-05-15 10:48:30.000000000 -0500
+++ events.c 2008-05-15 10:50:19.000000000 -0500
@@ -1299,8 +1299,10 @@
log_debug_info(DEBUGL_EVENTS,0,"** Orphaned Host and Service
Check Event\n");
/* check for orphaned hosts and services */
- check_for_orphaned_hosts();
- check_for_orphaned_services();
+ if(check_orphaned_hosts)
+ check_for_orphaned_hosts();
+ if(check_orphaned_services)
+ check_for_orphaned_services();
break;
case EVENT_RETENTION_SAVE:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list