Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Diskspace Used by a Mounted Volume
1.0
2014-12-04
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
29761
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
Important:
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
Usage:
On Monitoring Server:
/usr/local/nagios/libexec//check_nrpe -H 172.22.246.126 -c check_disk.sh -a '-p /volume1 -w 80 -c 90'
Output:
OK- /Volume1 : Total Space= 468G, Used Space= 80G, Available Space= 365G i.e. 18% Usage | 'Usage'=18;80;90;0;100
'VarName'=CurrentValue Unit;WarningValue;CriticalValue;MininumValue;MaximumValue
Important:
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
Usage:
On Monitoring Server:
/usr/local/nagios/libexec//check_nrpe -H 172.22.246.126 -c check_disk.sh -a '-p /volume1 -w 80 -c 90'
Output:
OK- /Volume1 : Total Space= 468G, Used Space= 80G, Available Space= 365G i.e. 18% Usage | 'Usage'=18;80;90;0;100
Reviews (0)
Be the first to review this listing!