mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix temperature and processors discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@2238 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
global $valid_processor;
|
||||
|
||||
echo("hrDevice ");
|
||||
$hrDevice_oids = array('hrDevice','hrProcessorLoad');
|
||||
unset($hrDevice_array);
|
||||
@@ -40,7 +38,7 @@ if (is_array($hrDevice_array))
|
||||
}
|
||||
if (isset($descr) && $descr != "An electronic chip that makes the computer work.")
|
||||
{
|
||||
discover_processor($valid_processor, $device, $usage_oid, $index, "hr", $descr, "1", $usage, NULL, $hrDeviceIndex);
|
||||
discover_processor($valid['processor'], $device, $usage_oid, $index, "hr", $descr, "1", $usage, NULL, $hrDeviceIndex);
|
||||
}
|
||||
unset($old_rrd,$new_rrd,$descr,$entry,$usage_oid,$index,$usage,$hrDeviceIndex,$descr_array);
|
||||
}
|
||||
@@ -51,4 +49,4 @@ if (is_array($hrDevice_array))
|
||||
|
||||
## End hrDevice Processors
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user