mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@3188 61d68cd4-352d-0410-923a-c4978735b2b8
13 lines
431 B
PHP
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"; }
|
|
}
|
|
|
|
?>
|