Nagios 2.0 performance

Ben bench at silentmedia.com
Thu Sep 9 17:29:32 CEST 2004


Why did nagios 2 drop db support?

On Sep 8, 2004, at 4:53 PM, Andreas Ericsson wrote:

> Ben wrote:
>> I'm in a similar boat. Nagios 2 is a vast improvement over the list 
>> traversals of 1.x, but it's still pretty bad, even when keeping files 
>> on a ram disk.
>>> From my profiling, it appears almost all time is spent reading the 
>>> status.
>> Like you say, it seems like this should be able to be cached. I was 
>> hoping that's what the database option would do, but it seems nagios 
>> doesn't exactly use a database to its full potential.... instead, it 
>> just mimics the same behavior as when using flatfiles.
>> When I ever get some time (haha), I was planning on looking into the
>> codebase more and trying to decide if I should impliment a scheme with
>> shared memory (so that would stay persistant between cgi runs), or a 
>> more
>> intelligent usage of the database.... say, maybe, using materialized
>> views. If anybody else has any suggestions on which path to take, I'm 
>> all ears....
>
> The by far easiest way to fix the logging issues would be to hack up 
> nagios to only log to stdout, and then store everything in a pretty 
> much flat SQL database. Then you can rewrite the cgi's in a 
> webfriendly language with excellent database and hashing support (PHP 
> comes to mind).
>
> Flush the database to disk every other month or so, and just live with 
> the fact that the yearly report takes an hour or two to create. It's 
> not like you do it every day anyway.
>
> I've been thinking about doing this myself for some time now, but just 
> like you, I just can't find the time to do it.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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