Nagios Grapher assumes that nagios "interval_length" is 60 (1 minute)

Bug #1029652 reported by gmcinnes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nagiosgrapher (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Nagios provides a configuration variable in it's main configuration file called "interval_length". This setting is like a master dial that controls the length of the other time variables throughout the Nagios configuration. As the Nagios manual says:

This is the number of seconds per "unit interval" used for timing in the scheduling queue, re-notifications, etc. "Units intervals" are used in the object configuration file to determine how often to run a service check, how often to re-notify a contact, etc.

Important: The default value for this is set to 60, which means that a "unit value" of 1 in the object configuration file will mean 60 seconds (1 minute). I have not really tested other values for this variable, so proceed at your own risk if you decide to do so!

 http://nagios.sourceforge.net/docs/3_0/configmain.html

Although the nagios author suggests that values other than 60 have not been tested, it is in fact very common to have other values there. It's particularly common to set this value to 1, and adjust the other time intervals throughout the Nagios system accordingly. This allows monitoring in granularity of up to 1 second if necessary.

Anyway, regardless of how you feel about that, the NagiosGrapher package makes the assumption that that interval_length parameter will remain at 60, meaning that it calculates the wrong step size when creating a rrd database for the parameter to be graphed. Because of this assumption the graph will move in step sizes of (interval_length * 60) - a parameter that is monitored once per minute therefore, may only have a graph resolution of once per hour.

The attached patch fixes NagiosGrapher's minute obsession by looking up the interval_length from Nagios' config file and using that as the basis for calculations.

Revision history for this message
gmcinnes (grant-mcinnes) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nagiosgrapher (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Newman (peternewman) wrote :

What do we need to do to get gmcinnes patch applied? I've had a look at the patch and it seems it should do the job fine, but it would be nice to get it fixed, rather than having to locally patch our versions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.