waste of cpu in status summary
Andreas Ericsson
ae at op5.se
Wed Oct 27 21:11:53 CEST 2010
On 10/27/2010 04:51 PM, Sven Nierlein wrote:
> 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.
>
Thanks. I'll forge your signoff and just pretend you gave me explicit
permissions to include it in future Nagios releases.
Should be in CVS in a couple of minutes, and on git.op5.org in a few
more.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
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
More information about the Developers
mailing list