4tfr 发表于 2014-11-18 16:01:07

check_centreon_snmp_remote_storage大硬盘返回负数修复方法

本帖最后由 4tfr 于 2014-11-18 16:06 编辑

编辑check_centreon_snmp_remote_storage的perl文件。
查找$tot = $Size * $AllocationUnits;
在这行的上面添加
if ($Size < 0){$Size += 2**32;}
查找
$used = $Used * $AllocationUnits;
在这行的上面添加
if ($Used < 0){$Used += 2**32;}
如图


页: [1]
查看完整版本: check_centreon_snmp_remote_storage大硬盘返回负数修复方法