Page 1 of 3
Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 1:01 pm
by jcmanous
Greetings,
I recently added a host (Linux - RHEL 6.6) to monitor via SNMP and it's reporting 153% utilization. I verified that net-snmp is up to date to no avail.
It's worth nothing that this didn't happen on any of the others.
Ideas?
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 1:07 pm
by jcmanous
I should also add, as I just realized, that this is on an XFS file system.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 1:32 pm
by ssax
Please run the command from the command line and show us the command (sanitized) and the full output of the command so that we can try to debug it for you.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 1:40 pm
by ssax
It's worth nothing that this didn't happen on any of the others.
Do you mean you have other servers returning proper values with XFS as well?
Also, you could grab the full command and output by going to Configure > Core Config Manager > Services edit the service and click the test button.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 1:46 pm
by jcmanous
This is odd...
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "\^/data\$" -w 80 -c 95 -f
OUTPUT: Unknown storage : \^/data$ : ERROR
This doesn't break in the View->Services display but running it manually irritates it.
Also, the other file system(s) are ext4. Sorry for the confusion.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 2:27 pm
by lmiltchev
Testing from within CCM may fail sometimes, because of escaping issues. Try running the following command from the CLI :
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "^/data$" -w 80 -c 95 -f
and show the output.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 2:30 pm
by jcmanous
Output from the command:
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "^/data$" -w 80 -c 95 -f
Code: Select all
/data: 153%used(2746858MB/1794802MB) (>95%) : CRITICAL | '/data'=2746858MB;1435842;1705062;0;1794802
This is what's reported within the GUI as well.
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 2:58 pm
by lmiltchev
How large is the drive? Can you run the following command and report the output?
Do you get the "expected" output if you add a "-G" flag to your command?
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "^/data$" -G -w 80 -c 95 -f
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 3:16 pm
by jcmanous
Everything reports the same as before..
Code: Select all
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG00_System-LV01_Root
193G 163G 21G 90% /
tmpfs 190G 4.0K 190G 1% /dev/shm
/dev/sda1 477M 79M 373M 18% /boot
/dev/mapper/VG00_System-LV02_Data
18T 11T 7.1T 60% /data
Code: Select all
shell#/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "^/data$" -G -w 80 -c 95 -f
/data: 153%used(2683GB/1753GB) (>95%) : CRITICAL | '/data'=2683GB;1402;1665;0;1753
Re: Disk Space - Reporting Error (incorrect)
Posted: Thu Jul 23, 2015 3:57 pm
by lmiltchev
I found a version of the plugin online that is *supposed to be newer* even though it shows the same version (1.3.3). You can give it a try. Rename the original plugin:
Code: Select all
mv /usr/local/nagios/libexec/check_snmp_storage_wizard.pl /usr/local/nagios/libexec/check_snmp_storage_wizard_old.pl
Download the file below, unzip it, and copy it to the "libexec" directory:
check_snmp_storage_wizard.zip
Make it executable and test your check again:
Code: Select all
chmod +x /usr/local/nagios/libexec/check_snmp_storage_wizard.pl
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H xxx.xxx.xxx.xxx -C public --v2c -m "^/data$" -w 80 -c 95 -f
If it doesn't work - revert back to the original plugin:
Code: Select all
mv /usr/local/nagios/libexec/check_snmp_storage_wizard_old.pl /usr/local/nagios/libexec/check_snmp_storage_wizard.pl