Home Directory Plugins System Metrics File System Check_all_disks (w/ configuration file)

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


Remember Me

Directory Tree

Check_all_disks (w/ configuration file)

0 votes
check_all_disks.confConfig file
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check all filesystems with the ability to ignore and override threshold settings
This script checks all mounted filesystems. The script can be passed variables for warning, critical, and configuration file location but if you don't pass it these values, the script sets a default of 90% for warning, 95% for critical and /usr/local/ct/nagios/etc for the configuration file. The configuration file can be used to ignore filesystems:

/myfs IGNORE

and it can also be used to change the threshold of specific filesystems:

/temp CHANGE 10 30
/opt CHANGE 99 100

Comments can be included in the configuration file. You can use tabs or spaces in the configuration file.

When the script finds a file system that is critical, it sends the message to Nagios and exits.

When the script finds a file system that is in a warning state, it continues and then, in the end, notifies Nagios of all filesystems that are in this state.

NOTE: The script will behave very differently depending on what KSH shell you have. You should have the "real" AT&T shell for this to run consistently across all of your Linux servers. To that end, I have included the ATT KSH shell in this package. You can place it somewhere and call it att_ksh (or something) and then call it from your script. This way you don't disturb your existing KSH shell and scripts.

This script runs on AIX and HP-UX as well.