Page 1 of 1

check_snmp_storage_wizard.pl storage usage 100%?

Posted: Fri May 22, 2020 12:50 pm
by xpertech
When using check_snmp_storage_wizard.pl to check a host disk, will alert disk usage 100%, but actually that host's disk is normal, what could be the problem?

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Fri May 22, 2020 2:52 pm
by ssax
Did they recently expand the storage on this system?

The numbers are totally off on there and I'm wondering if it's the plugin or if it's the remote SNMP daemon showing the wrong information.

What version of the plugin are you running?

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -V
Run this command from the command line of the XI server and send us the entire output:
- Change X.X.X.X and yourcommunity

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H X.X.X.X  -C 'yourcommunity' --v2c -m "^/$" -w 80 -c 95 -f -v

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Mon May 25, 2020 8:00 am
by xpertech
1. Didn't expand the storage on this system recently.
2. The plugin check_snmp_storage version is 1.3.3

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Tue May 26, 2020 4:42 pm
by ssax
You missed the -v on the command, please re-run the command below and include the full output:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H X.X.X.X  -C 'yourcommunity' --v2c -m "^/$" -w 80 -c 95 -f -v

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Tue May 26, 2020 4:47 pm
by tgriep
Try replacing the current plugin with the copy at the link below.
https://github.com/dnsmichi/manubulon-s ... storage.pl

It has been updated to work with drives that over 2 terabytes in size for SNMP polling.

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Wed May 27, 2020 12:22 pm
by xpertech
There's the same error, no matter using the old plugin or the new one, will all have error message ...

/: 19742%used(4329645MB/21931MB) (>95%) : CRITICAL

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Wed May 27, 2020 4:03 pm
by tgriep
There is one more thing to try.
If the remove server is running the NET-SNMP version of the snmpd daemon, then edit the /etc/snmp/snmpd.conf and add this option.

Code: Select all

realStorageUnits=0
Save and restart the snmpd daemon and retest it.

There is a limitation for SNMP and larger drives. The small allocation size causes an overflow to the counter that hold the disk size settings and the above is a workaround.

For more details, look at this link.
https://linux.die.net/man/5/snmpd.conf

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Sat May 30, 2020 8:49 pm
by xpertech
edit Snmpd.conf and add realStorageUnits=0 or realStorageUnit 0, still error?!

Re: check_snmp_storage_wizard.pl storage usage 100%?

Posted: Mon Jun 01, 2020 9:38 am
by tgriep
That option is suppose to change the value of the hrStorageAllocationUnits from 4096 to 8192 so the drive size can be calculated but is seems to not be functioning with the snmpd daemon.
That option was added to version 5.7.1 of the Net-SNMP tools so make sure the remote server is running that version or greater.
If the server is running that version, then it may be a bug for the snmpd daemon not changing that value.
If you want to continue to use SNMP, you would have to go to the Net-SNMP site to see if there is a fix for this issue.

Else, you can install an agent on the server and poll the drive sizes.
The NCPA agent would be able to do this.
https://www.nagios.org/ncpa/