PATCH: checks.c

Ethan Galstad nagios at nagios.org
Thu Mar 1 19:12:49 CET 2007


bobi at netshel.net wrote:
> 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

Thanks!  Will be in CVS shortly.


Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org

-------------------------------------------------------------------------
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