Announcement

Collapse
No announcement yet.

SNMP return bad size of hdd Windows Server with quota

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

  • SNMP return bad size of hdd Windows Server with quota

    Hi,

    I have a problem to monitoring a server Windows Server 2008R2 with a hdd (size 13To)

    When I monitoring my hdd, check_centreon_snmp_remote_storage or snmpwalk return bad size,
    this result of snmpwalk for my hdd :
    Code:
    HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: E:\ Label:DATA  Serial Number 88e7f9e2
    HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
    HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: -805339905
    HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: -1860197603
    The hdd size on Windows :
    Capacity : 14.3T
    Used : 9.9T
    Free : 4.3T

    On this disk, we have a quota :
    Limit : 12T
    Used : 8.62 To (71%)
    Free : 3.38To

    I have erase the file cache :
    Code:
    rm -f  /var/lib/centreon/centplugins/remote_storage_cache_IP_SERVER
    This server is VM on VmWare.

    Thanks for your response


    Version of Centreon : 2.8.24

  • #2
    Modification du fichier /usr/lib/nagios/plugins/check_centreon_snmp_remote_storage
    Code:
    ...
        if (!$Size){
            print "The number of the option -p is not a hard drive\n";
            exit $ERRORS{'CRITICAL'};
        }
         ### Debut ajout
        if ($Size < 0){$Size += 2**32;} ### <-- ICI
        ### Fin ajout
        $tot = 1;
        $tot = $Size * $AllocationUnits;
        if (!$tot) {
            $tot = 1;
        }
        ### Debut ajout
        if ($Used < 0){$Used += 2**32;} ### <-- ICI
        ### Fin ajout
    ...
    Cela permet de contrer le bug de calcul des espaces disques hautes capacités
    https://forum.centreon.com/forum/cen...remote_storage

    Comment


    • #3
      I don't know have to change status to SOLVED,

      sorry

      Comment

      Working...
      X