Announcement

Collapse
No announcement yet.

./check_centreon_snmp_remote_storage - Negative result

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ./check_centreon_snmp_remote_storage - Negative result

    Hi,

    Is there a bug on on the check_centreon_snmp_remote_storage.
    I running this against a windows 2003 server on a 10TB disk that has just been extend from 5TB to 10TB.

    Code:
    ./check_centreon_snmp_remote_storage -H hostname -d "D:" -n -v1 -C public
    Disk OK - D: TOTAL: -6137.824GB USED: 5055.483GB (-82%) FREE: -11193.307GB (182%)|size=-6590437863424B used=5428283670528B;-5931394077081;-6260915970252;0;-6590437863424
    Thanks
    Last edited by siolor; 29th May 2013, 06:23.

  • #2
    Hi,

    I found out what happen with the smnp result. The result goes over the int32 max value. So, by adding the below code just after the size/used data are retrieved in the perl script, I could reconvert the negative value to it's real one.

    # Fix snmp result over int32 value
    if($Size<0){
    $Size=(2147483647*2)-(abs($Size));
    }
    if($Used<0){
    $Used=(2147483647*2)-(abs($Used));
    }

    ./check_centreon_snmp_remote_storage -H HOSTNAME -d "D:" -n -v1 -C public
    Disk OK - D: TOTAL: 10246.176GB USED: 5129.613GB (50%) FREE: 5116.563GB (50%)|size=11001748172800B used=5507880067072B;9901573355520;10451660764160;0 ;11001748172800
    Hope this will help some who have the same issue ...
    Last edited by siolor; 29th May 2013, 06:23.

    Comment

    Working...
    X