minutes or seconds?????
Rick Mangus
rick.mangus+nagios at gmail.com
Thu Aug 12 16:52:33 CEST 2010
Interstitial reply:
On Thu, Aug 12, 2010 at 8:14 AM, Matsushita, Nobuo
<Matsushita.Nobuo at tchden.org> wrote:
> HI,
>
>
>
> I am using Nagios 3.2. When I checked the web documentation :
>
>
>
>>> Unless you've changed the interval_length directive from the default
>>> value of 60, this number will mean minutes
You don't state what part of the documentation you were reading, but I
strongly suspect you were reading about check_interval,
retry_interval, or notification interval. Those are measured in
"intervals", the length of which is set by the interval_length
variable in the configuration. The interval length is in seconds and
is set in the config file near where you quoted below.
>
>
>
> But when I checked the nagios.cfg file:
>
>
>
> # INTERVAL LENGTH
>
> # This is the seconds per unit interval as used in the
> # host/contact/service configuration files. Setting this to 60 means
> # that each interval is one minute long (60 seconds).
>
Here you can set the interval length....
>
>
> So the time interval unit is in Minutes or Seconds?????
So, if you have interval_length = 60, then each interval is 60
seconds, if you set interval_length=5, then each interval is 5
seconds. The default is to have a 1 minute (60 second) interval, so a
service with check_interval=5 will be checked every 5 minutes.
Illustrative Example: You want to run some checks every 15 seconds,
some every 40 and the rest every 5 minutes. You need to set
interval_length=5 (global setting), then on the 15 second checks,
check_interval=3; on the 40 second ones, check_interval=8; and on the
rest, check_interval=60.
Note that those numbers were used due to 5 seconds being the lowest
common denominator. I suspect that using the longest possible
interval will be more efficient for scheduling, and make no claims as
to what will happen if a new interval begins before all checks
executing in the prior interval are completed.
>
>
> Thanks in advance
>
>
>
> Nobuo
>
I hope I was a help.
--Rick
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
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