Bug in nagiostat (passive service check latency)

Ethan Galstad nagios at nagios.org
Sun Feb 3 21:08:28 CET 2008


Michael Lübben wrote:
> Hi Ethan, hi list,
> 
> i have found a bug in nagiostats in the nagios version 3.0rc1. I become no value for the option
> AVGPSVSVCLAT! In the file nagiostat.c i found follow code:
> 
> nagiostats.c:
> /* passive service check latency */
> else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))
> 
> printf("%d%s",(int)(min_passive_service_latency*1000),mrtg_delimiter);
> else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))
> 
> printf("%d%s",(int)(max_passive_service_latency*1000),mrtg_delimiter);
> else if(!strcmp(temp_ptr,"PSVACTSVCLAT"))
> 
> printf("%d%s",(int)(average_passive_service_latency*1000),mrtg_delimiter);
> 
> My solution:
> /* passive service check latency */
> else if(!strcmp(temp_ptr,"MINPSVSVCLAT"))
> 
> printf("%d%s",(int)(min_passive_service_latency*1000),mrtg_delimiter);
> else if(!strcmp(temp_ptr,"MAXPSVSVCLAT"))
> 
> printf("%d%s",(int)(max_passive_service_latency*1000),mrtg_delimiter);
> else if(!strcmp(temp_ptr,"AVGPSVSVCLAT"))
> 
> printf("%d%s",(int)(average_passive_service_latency*1000),mrtg_delimiter);
> 
> I am not very good in C and i hpe its right
> 
> Bye
> Michael
> _________________________________________________________________________

Thanks Michael - a patch will be in CVS shortly...


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

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