check_snmp_storage_wizard.pl storage usage 100%?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

check_snmp_storage_wizard.pl storage usage 100%?

Post 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?
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post by xpertech »

1. Didn't expand the storage on this system recently.
2. The plugin check_snmp_storage version is 1.3.3
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post by xpertech »

edit Snmpd.conf and add realStorageUnits=0 or realStorageUnit 0, still error?!
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_storage_wizard.pl storage usage 100%?

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked