This post introduces a check strategy to monitor the freshness of Nagios performance graphs.
When the feature is enabled Nagios is generating performance graphs, that are updated automatically with the execution of a single check. Such a check result delivers also the so called “performance data”, content interpreted by dedicated listeners behind the Nagios process. The results are stored and maintained within RRD databases.
After updates of Nagios checks the number or the names of data sources of a check restult may change. But within RRD Databases Datasources are fixed positions and the RRD Database itsfelf can not be extended with the RRDTool version 1.2. This leads to the problem, that the performance graph is not growing anymore and a NaN error occures. In the same moment the database is not updated anymore.
Example: The diskspace check retrieves an additional volume and therefore an additional data source.
The check
The check runs on the file structure of the archive containing the RRD files. Old files are identified and highlighted.
The arguments -a allows to define the maximum time in seconds to be passed since the last modification to determine a file to be “outdated”.
The arguments -w and -c define on the other hand the number of such old files to be found in order to get a warning or critical result.
Check result on perfdata archive
An additional argument ‘-R’ enables the check to automatically remove eventual files reaching the freshness limit. In this case there will be removed the RRD (file.rrd) and the (file.xml).
[root@pbzsilx001 plugins]# ./check_perfdata.sh -h
Usage: check_perfdata.sh [-a max_file_age] [-w max_warning] [-c max_critical] [-R]
-h, –help : this help
-a max_file_age: Integer of seconds since last file modification to determine that a RRD is old. [86400]
-w max_warning: Integer of maximum number of old RRD files to get a warning [1]
-c max_critical: Integer of maximum number of old RRD files to get a critical [10]
-R Set this argument to automatically remove a old RRD file
After my graduation in Applied Computer Science at the Free University of Bolzano I decided to start my professional career outside the province. With a bit of good timing and good luck I went into the booming IT-Dept. of Geox in the shoe district of Montebelluna, where I realized how a big IT infrastructure has to grow and adapt to quickly changing requirements. During this experience I had also the nice possibility to travel the world, while setting up the various production and retail areas of this company. Arrived at Würth Phoenix I started developing on our monitoring solution NetEye. Today, in my position as Consulting an Project Manager I am continuously heading to implement our solutions to meet the expectation of your enterprise customers.
Author
Patrick Zambelli
After my graduation in Applied Computer Science at the Free University of Bolzano I decided to start my professional career outside the province. With a bit of good timing and good luck I went into the booming IT-Dept. of Geox in the shoe district of Montebelluna, where I realized how a big IT infrastructure has to grow and adapt to quickly changing requirements. During this experience I had also the nice possibility to travel the world, while setting up the various production and retail areas of this company. Arrived at Würth Phoenix I started developing on our monitoring solution NetEye. Today, in my position as Consulting an Project Manager I am continuously heading to implement our solutions to meet the expectation of your enterprise customers.
Rules and standards are important. In a world based on collaboration, following a well defined behavior is key for avoiding errors based on some sort of misunderstanding. This is also true for the world of information technology: someone releases software Read More
With the end of 2021 we've release the first version of the NetEye Extension Packs project that helps customers and consultants on their monitoring implementations and more (see Introducing NetEye Extension Packs | www.neteye-blog.com for details). Now our focus is Read More
SOAP is a messaging protocol for exchanging information based on XML over the network. SOAP messages are written in XML, which is why they are platform- and language-independent. A lot of enterprises have such webservices that return useful data for Read More
The Mod-Gearman packages have been updated with this bugfixes: - add option for forbidden characters in command line - fix segfault on too old host checks - fix segfault on gearmand server errors
Would you like to understand the potential of the ITIL processes implemented with EriZone/OTRS ? Or do you want to deepen your knowledge in the End User Experience monitoring? Or are you curious to know what will be the future Read More
One Reply to “Monitoring Nagios Performance Graphs”
Hi!
Trying to download check_perfdata plugin, I get an error message:
You don’t have permission to access /wp-content/uploads/2011/01/check_perfdata.sh on this server.
Hi!
Trying to download check_perfdata plugin, I get an error message:
You don’t have permission to access /wp-content/uploads/2011/01/check_perfdata.sh on this server.