2010-07-20 14:03:54 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-14 19:16:40 +00:00
|
|
|
if (!$os)
|
|
|
|
{
|
2012-05-15 16:59:01 +00:00
|
|
|
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"; }
|
2011-03-14 19:16:40 +00:00
|
|
|
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"; }
|
2010-07-20 14:03:54 +00:00
|
|
|
}
|
|
|
|
|
2012-05-15 16:59:01 +00:00
|
|
|
?>
|