Nagios-DB Project - some questions
Ben
bench at silentmedia.com
Thu Apr 28 17:16:17 CEST 2005
The php interface included with Nagios-db only contains a small subset
of the CGIs included with Nagios. No passive checks, no commands....
pretty much just reporting on active checks and some nice historical
reporting of the same that the Nagios CGIs do not have. If that works
for you, then cool. If not, well, the project is on sourceforge for a
reason. :)
The big point of nagios-db for me was to precompute as much data as was
possible with the use of materialized views. That way, when the
interface wanted to see some metrics, gathering those metrics is
usually little more than pulling numbers straights from a static table.
Nice and fast. So from an interface point of view, nagios-db works
wonderfully.
There are two potential gotchas. First, the postgres nagios-db uses
snapshot materialized views, meaning they refresh periodically, not in
realtime. I have pretty beefy hardware, so I can set mine to refresh
every minute, but for a tool that's supposed to tell you when things
are down, I think updating every minute is overkill. Once every 5
minutes should probably be just fine. (Remember this is just the
interface; the alerting portion of nagios is unaffected by nagios-db.
The other potential gotcha is that nagios has to write the value of
each check into the db to complete a check, and if the db is slammed,
this will take an increasing amount of time. This was causing me very
bad latency problems (thousands of seconds) until recently, when I
implemented some thread pool action in the NEB and now my latency times
tend to hover around 15 seconds.
That thread pool-enabled version of nagios still lives in CVS only;
once I write some documentation, I'll be making another release. Until
then, I recommend you pull the CVS version. It's been working in my
production flawlessly for weeks now.
On Apr 27, 2005, at 11:25 PM, Hendrik Baecker wrote:
> Hi,
>
> Ben said in the last posts from "Web Interface performance issues"
> that his nagios-db project catches his 8500 Services on 2500 hosts.
>
> Perhaps we have only half of this count but has splitted them to three
> differen nagios instances, yes - I have to build nagios three times in
> different directories.
>
> This I have done to decrease the service check latency that I have if
> I would put them all together. Withing 20 minutes we had latency like
> 120seconds and more.
>
> At the moment I have a development server to test the Nagios 2.02b and
> as I heard about the db projekt I would ask about the performance and
> the configuration of the nagios service checks.
>
> We would have most of the services been checked every 5 minutes, max
> attempt to 4, retry interval to 15 seconds and host checks enabled
> after service check returns a non-OK state.
>
> Our bosses uses the Webinterface to get statistics like availibility
> reports and so on.
>
> Is it all possible with the nagios-db project?
> What service configuration do you have?
> Is your latency ok? (< 15 seconds)
>
> I hope I got some time today to read more about the db project, sorry
> to all for asking before reading.
>
> Yours sincerly
> Hendrik
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
> _______________________________________________
> 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
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
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