Disk Space - Reporting Error (incorrect)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Disk Space - Reporting Error (incorrect)

Post 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?
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Disk Space - Reporting Error (incorrect)

Post by jcmanous »

I should also add, as I just realized, that this is on an XFS file system.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Disk Space - Reporting Error (incorrect)

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Disk Space - Reporting Error (incorrect)

Post 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.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Disk Space - Reporting Error (incorrect)

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Disk Space - Reporting Error (incorrect)

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Disk Space - Reporting Error (incorrect)

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Disk Space - Reporting Error (incorrect)

Post by lmiltchev »

How large is the drive? Can you run the following command and report the output?

Code: Select all

df -h
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Disk Space - Reporting Error (incorrect)

Post 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

User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Disk Space - Reporting Error (incorrect)

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked