Page 1 of 1

[Nagios-devel] Patch: Host and service orphan check configuration

Posted: Fri May 16, 2008 10:24 am
by Guest
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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]