Change in State

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jbmaliwat
Posts: 64
Joined: Fri Apr 15, 2011 12:21 am

Change in State

Post 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!
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Change in State

Post 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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
jbmaliwat
Posts: 64
Joined: Fri Apr 15, 2011 12:21 am

Re: Change in State

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Change in State

Post 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.
jbmaliwat
Posts: 64
Joined: Fri Apr 15, 2011 12:21 am

Re: Change in State

Post 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!
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Change in State

Post 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.
Nicholas Scott
Former Nagios employee
jbmaliwat
Posts: 64
Joined: Fri Apr 15, 2011 12:21 am

Re: Change in State

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Change in State

Post 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.
Locked