Adam Amstrong 3fbd4c2cb5 Add support for APC UPS. #55.
git-svn-id: http://www.observium.org/svn/observer/trunk@3188 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-15 16:59:01 +00:00

13 lines
431 B
PHP

<?php
if (!$os)
{
if (strstr(snmp_get($device, "SNMPv2-SMI::enterprises.318.1.1.1.1.1.1.0", "-Oqv", ""), "UPS")) { $os = "apcups"; }
elseif (strstr($sysDescr, "APC Web/SNMP Management Card")) { $os = "apc"; }
elseif (strstr($sysDescr, "APC Switched Rack PDU")) { $os = "apc"; }
elseif (strstr($sysDescr, "APC MasterSwitch PDU")) { $os = "apc"; }
elseif (strstr($sysDescr, "APC Metered Rack PDU")) { $os = "apc"; }
}
?>