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:
Adam Amstrong
2011-05-04 12:58:57 +00:00
parent bccaa2c279
commit 7cd3dc86ec
36 changed files with 60 additions and 146 deletions

View File

@@ -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
?>
?>