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

Directory Tree

check_fs_test.sh

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2010-06-22
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
94613
Files:
FileDescription
check_fs_test.shcheck_fs_test.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_fs_test.sh
A simple plugin for nrpe users that takes care of the new created or removed file-systems and informs you.
As You know, is possible to monitor your file-system via ssh. This is useful because it resolves the problem of creating and removing file-systems.

On the other hand, you can't set a different thresholds for each one of them.

So, we prefer to use nrpe.
With nrpe, we can set an appropriate threshold according with the real dimension of any file-system of our servers.
But our users, are usually to create new file-systems without informing anyone.

So we decided to create a simple plugin that takes care of any change.
The check_fs_test.sh is a simple script that take a snapshot of the current situation of file-system and store it in a text file.
After one hour, it makes the check again and try to find any difference with the previous control.
If no differences are found, it exits and sleeps for another hour.
Otherwise, it give the alarm and substitutes the current situation with the previous one (the text file).
Obviously, only one alarm will be send. So, it's important to send an e-mail to the appropriate contact groups.
No other alarm will be sent because the new aspect of file-system will become the new real shape of it. The new check will be done with the last stored informations.

This nagios plugin comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this plugin under the terms of the GNU General Public License.