Calculation of nagios latency in nagiostas

Yu Watanabe yu.watanabe at jp.fujitsu.com
Tue Feb 22 01:25:45 CET 2011


Hello all.

I would like to ask question for the calculation with nagios latecy.
In the nagiostats.c , the calculation of 'average_active_service_latency' is
not doing the simple way, which is 

1. Add up the latecy of each service
2. Devide by the number of services

rather than above it is caculating as,

average_active_service_latency=(((average_active_service_latency*((double)active_service_checks-1.0))+latency)/(double)active_service_checks);

1. Revert the average sum by multiplying the previous average and number of checks
2. Add up the latency of the current line
3. Devide by the number of services

Would there be a specific reason or thought in this calculation?

Thanks,
Yu Watanabe


------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list