waste of cpu in status summary

Sven Nierlein sven at consol.de
Wed Oct 27 16:51:22 CEST 2010


Dear list,

introduced with http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/cgi/status.c?r1=1.81&r2=1.82
the servicegroup summary calculation has been corrected, but unfortunately a useless loop over all
services for every host has been left over. This leads to very long loading page times. The Servicegroup summary for all
groups took around 8seconds but the summary for a single group took over 8 minutes.
Please have a look at the attached patch (diff is against the 3.2.3 release) which removes the useless loop.
The patch is sponsored by TomTom, so if you want to give kudos to someone, then TomTom are the ones you are looking for.

Regards,
 Sven

-- 
Sven Nierlein             Sven.Nierlein at consol.de
ConSol* GmbH              http://www.consol.de
Franziskanerstrasse 38    Tel.:089/45841-439
81669 Muenchen            Fax.:089/45841-115
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix_cpu_usage_of_status_summary.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101027/2f2c5ff9/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list