Home Directory Plugins Operating Systems Linux Check Diskspace Used by a Mounted Volume

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 Diskspace Used by a Mounted Volume

Current Version
Last Release Date
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Download URL
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin is designed using Bash script and intended to display the disk space used by the specified mount point or partition or volume.
This plugin is created so that 'Performance Gauges' in Nagios XI work properly, showing appropriate 'Warning' and 'Critical' regions.
For Performance Gauges to show details properly, performance data should be in following format:

'VarName'=CurrentValue Unit;WarningValue;CriticalValue;MininumValue;MaximumValue

1. It uses the output of 'df' command.
2. Mount point/Partition/Volume & Warning and Critical thresholds are to be mentioned by the user itself.

How To Use:
To monitor remote Linux server:
1. Keep the plugin in /usr/local/nagios/libexec directory.
2. Add following line to the nrpe.cfg file:

command[check_disk.sh]=sudo /usr/local/nagios/libexec/check_disk.sh $ARG1$

3. Add the following line to /etc/sudoers file:

nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_disk.sh

On Monitoring Server:

/usr/local/nagios/libexec//check_nrpe -H -c check_disk.sh -a '-p /volume1 -w 80 -c 90'


OK- /Volume1 : Total Space= 468G, Used Space= 80G, Available Space= 365G i.e. 18% Usage | 'Usage'=18;80;90;0;100