Page 1 of 1

Change in State

Posted: Wed Jun 08, 2011 9:25 pm
by jbmaliwat
Hi,

I would just like to know if Nagios can indicate change in state of any monitored component, segment of process within 10 seconds.
because as fas as i know it can only process within 1 minute. Is it possible that Nagios can process it within 10 seconds.

Thank you!

Re: Change in State

Posted: Thu Jun 09, 2011 9:15 am
by tonyyarusso
It "can", but we don't really recommend it. It involves changing the base time multiplier, and will of course dramatically increase your system load.

Re: Change in State

Posted: Mon Jun 13, 2011 1:50 am
by jbmaliwat
Thank you for the reply,

but may i know how to change the base time multiplier? and why it affects the system load?

Re: Change in State

Posted: Mon Jun 13, 2011 10:36 am
by mguthrie
The Nagios monitoring engine works by creating a check schedule within the boundaries that are defined for it. Every CPU has a limit to how many checks per second it will be able to run before it can no longer keep up with what is scheduled. By default, checks in Nagios XI are set to run every 5mn. So if you have 1000 checks at a 5mn interval, you'll be running about 3.3 checks per second. But if you ran 1000 checks are a 20 second interval, you'd be running 50 checks per second, and it's likely that the CPU would not be able to schedule and process checks at that volume unless there were a lot of CPU cores. A single core CPU for example, maxes out around 15-18 checks per second.

Re: Change in State

Posted: Tue Jul 05, 2011 9:20 pm
by jbmaliwat
Hi,

Can i request for the steps on how to change the base multiplier, so that I can convert the change in state into 10 seconds.
Thank you for all of your help!

Re: Change in State

Posted: Wed Jul 06, 2011 1:45 pm
by nscott
This is not officially supported, or unofficially supported at all, but there is a step-by-step guide to get MRTG down to 1 minute checks here:

http://www.loplop.net/projects/1minMRTG/

Once you do this you should be able to get updates every minute. I strongly suggest you do this in a testing environment on a easily recovered test server if things go poorly.

Re: Change in State

Posted: Tue Jul 19, 2011 12:09 am
by jbmaliwat
yes, I already know how to get MRTG to 1 minute checks, but all I'm asking is how it should be able to get updates every 10 seconds, not 1 minute.

Thank you.

Re: Change in State

Posted: Tue Jul 19, 2011 9:54 am
by agriffin
I believe 1 minute is the minimum interval for MRTG. Sorry, but if you want to go lower you will have to dig through the code and change it yourself.