Help with check_disk is required
Itai Ganot
itai.g at matomy.com
Wed Jun 25 12:25:20 CEST 2014
Hi,
I'm using check_disk to monitor our DB server:
I'm running the command like so:, but I don't understand when it returns me Warning or Critical... as the disk is almost full but the notifications I receive are shown as "Disk OK":
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-W 90% -C 95% -p /'
DISK OK - free space: / 8681 MB (89% inode=95%); /var/lib/mysql 62617 MB (54% inode=99%); /dev 8191 MB (99% inode=99%); /dev/shm 8192 MB (100% inode=99%);| /=967MB;;;0;10078 /var/lib/mysql=52190MB;;;0;120951 /dev=0MB;;;0;8192 /dev/shm=0MB;;;0;8192
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 80 -c 100% -p /'
DISK CRITICAL - free space: / 8681 MB (89% inode=95%);| /=967MB;9998;0;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 80 -c 100 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9998;9978;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 90 -c 100 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9988;9978;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 95 -c 100 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9983;9978;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 96 -c 100 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9982;9978;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 10 -c 20 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;10068;10058;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 80 -c 90 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9998;9988;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 80% -c 90% -p /'
DISK CRITICAL - free space: / 8681 MB (89% inode=95%);| /=967MB;2015;1007;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 20% -c 10% -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;8062;9070;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-W 20% -C 10% -p /'
DISK OK - free space: / 8681 MB (89% inode=95%); /var/lib/mysql 62617 MB (54% inode=99%); /dev 8191 MB (99% inode=99%); /dev/shm 8192 MB (100% inode=99%);| /=967MB;;;0;10078 /var/lib/mysql=52190MB;;;0;120951 /dev=0MB;;;0;8192 /dev/shm=0MB;;;0;8192
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 20% -c 10% -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;8062;9070;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-M -w 20% -c 10% -p /'
DISK OK - free space: /dev/ploop18793p1 8681 MB (89% inode=95%);| /dev/ploop18793p1=967MB;8062;9070;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 20% -c 10% -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;8062;9070;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 80 -c 90 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9998;9988;0;10078
[root at nagios plugins]#
[root at nagios plugins]#
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-W 89 -c 90 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;;9988;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 89 -c 90 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9989;9988;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 89 -C 95 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%); /var/lib/mysql 62617 MB (54% inode=99%); /dev 8191 MB (99% inode=99%); /dev/shm 8192 MB (100% inode=99%);| /=967MB;9989;;0;10078 /var/lib/mysql=52190MB;120862;;0;120951 /dev=0MB;8103;;0;8192 /dev/shm=0MB;8103;;0;8192
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 89 -c 95 -p /'
DISK OK - free space: / 8681 MB (89% inode=95%);| /=967MB;9989;9983;0;10078
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 89 -c 95 -p /var/lib/mysql'
DISK OK - free space: /var/lib/mysql 62617 MB (54% inode=99%);| /var/lib/mysql=52190MB;120862;120856;0;120951
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 50 -c 95 -p /var/lib/mysql'
DISK OK - free space: /var/lib/mysql 62617 MB (54% inode=99%);| /var/lib/mysql=52190MB;120901;120856;0;120951
[root at nagios plugins]# /usr/lib64/nagios/plugins/check_nrpe -H 10.200.248.11 -c check_disk -a '-w 50 -c 80 -p /var/lib/mysql'
DISK OK - free space: /var/lib/mysql 62617 MB (54% inode=99%);| /var/lib/mysql=52190MB;120901;120871;0;120951
[root at nagios plugins]#
I'm trying to set the notification like so:
Check_disk -a '-w 85% -c 90% /'
Then it should return Disk Warning because 89% disk is in use and it's more than 85% but instead I receive an OK notification...
What could be the cause?
Thanks
Itai
<font color="#000099">
This mail was sent via Matomy Media-Group Mail-SeCure System.
</font>
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20140625/4e745eff/attachment.html>
More information about the Help
mailing list