Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me
Don't miss your chance to attend the 2014 Nagios World conference!

Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.


check_rate

Bookmark and Share

Rating
0 votes
Favoured:
0
Current Version
1.0
Compatible With
  • Nagios 3.x
E-mail
License
GPL
Hits
24146
A simple perl plugin that allows nagios to check the rate of change of the output of any command as long as it's a number, e.g. filesystem usage growth, network traffic spikes, dns queries spikes, etc
It uses a sqlite3 database to store the last value.
The plugin executes the command specified by the user and stores it's output value in a sqlite3 database using the command's md5 hash as key.
The next time it's run it compares the new value with the old one, calculates the rate and updates the value in the database.
It can calculate the rate on a second, minute or 5-minute period.
After installing it change the database path if needed.
my $dbfile = '/usr/local/nagios3/var/check_rate_data.db';