Network Management
SNMP returns a negative value when polling huge disk space on Windows
SNMP returns a negative value when polling huge disk volume on Windows. Symptom due to counter overruns.
First published date
Last published date
Overview
When polling the value for disk size (hrStorageSize), the value returns as negative. This happen because the counter overruns.
This issue should be presented to the vendor.
Product section
Cause
Resolution
Workaround:
- In UnDP, create a New Universal Device Poller.
- Search the OID for hrStorageSize .1.3.6.1.2.1.25.2.3.1.5.x (where 'x' is the disk number on the MIB branch).
- Select MIB Value Type: Counter.
- SNMP Get Type: GET.
- Polling Type: Node.
- Polling Interval: 10m.
- Keep Historical Data: yes.
- Status: Enabled.
- Create a 'Transform Results'
- Define the Transform (the Polling Interval should be the same of the UDP before: 10m)
- The formula:
- ('Int32-MaxValue'*2)-(-('SnmpNegativeReturn)))*AllocationUnits
- Int32-MaxValue - Max Value in a 32bit variable
- SnmpNegativeReturn - the OID that is returning a negative value
- AllocationUnits - Size of the block allocation in the disk
Example: ((2147483647*2)-(-(-1366779137)))*4096 =11993858691072