Gareth Fletcher
2014-07-04 10:16:34 UTC
Hey! Is it not -w 10 -c 5? (Instead of -w 90% -c 95%)
Sent from my phone on the smartphonetwork.
-------- Original message --------
From: Itai Ganot
Date:04/07/2014 10:00 PM (GMT+12:00)
To: help-BzZFE/***@public.gmane.org
Subject: Help with check_disk is required
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”:
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@nagios plugins]#
[***@nagios plugins]#
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
This mail was sent via Matomy Media-Group Mail-SeCure System.
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
Sent from my phone on the smartphonetwork.
-------- Original message --------
From: Itai Ganot
Date:04/07/2014 10:00 PM (GMT+12:00)
To: help-BzZFE/***@public.gmane.org
Subject: Help with check_disk is required
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”:
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@nagios plugins]#
[***@nagios plugins]#
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
[***@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
This mail was sent via Matomy Media-Group Mail-SeCure System.
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************