mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
4f2972660f
git-svn-id: http://www.observium.org/svn/observer/trunk@1529 61d68cd4-352d-0410-923a-c4978735b2b8
22 lines
502 B
PHP
22 lines
502 B
PHP
<?php
|
|
|
|
global $valid_sensor;
|
|
|
|
if ($device['os'] == "apc")
|
|
{
|
|
$oids = snmp_get($device, "1.3.6.1.4.1.318.1.1.1.2.2.2.0", "-OsqnU", "");
|
|
if ($debug) { echo($oids."\n"); }
|
|
if ($oids)
|
|
{
|
|
echo("APC UPS Internal ");
|
|
list($oid,$current) = explode(' ',$oids);
|
|
$precision = 1;
|
|
$type = "apc";
|
|
$index = 0;
|
|
$descr = "Internal Temperature";
|
|
discover_sensor($valid_sensor, 'temperature', $device, $oid, $index, 'apc', $descr, '1', '1', NULL, NULL, NULL, NULL, $current);
|
|
}
|
|
}
|
|
|
|
?>
|