PATCH: checks.c

bobi at netshel.net bobi at netshel.net
Tue Feb 27 00:32:30 CET 2007


Hi,

I made this patch for Nagios 2.7 in order to obtain the correct global
service_check_timeout in my DNX NEB Module's NEBTYPE_SERVICECHECK_INITIATE
callback routine.

Even if you don't use DNX, it's probably still a bug to get a zero for the
timeout member of the nebstruct_service_check_data structure.

Here's the patch:

--- ../checks.c-orig    2006-06-20 18:59:19.000000000 -0600
+++ checks.c    2007-02-26 16:23:48.342774672 -0700
@@ -271,7 +271,7 @@
        /* send data to event broker */
        end_time.tv_sec=0L;
        end_time.tv_usec=0L;
-      
broker_service_check(NEBTYPE_SERVICECHECK_INITIATE,NEBFLAG_NONE,NEBATTR_NONE,svc,SERVICE_CHECK_ACTIVE,start_time,end_time,svc->service_check_command,svc->latency,0.0,0,FALSE,0,processed_command,NULL);
+      
broker_service_check(NEBTYPE_SERVICECHECK_INITIATE,NEBFLAG_NONE,NEBATTR_NONE,svc,SERVICE_CHECK_ACTIVE,start_time,end_time,svc->service_check_command,svc->latency,0.0,service_check_timeout,FALSE,0,processed_command,NULL);
 #endif

 #ifdef EMBEDDEDPERL


Thanks,
Bob



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list