fix sensors (maybe)

git-svn-id: http://www.observium.org/svn/observer/trunk@2236 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-04 11:04:19 +00:00
parent b3bd336515
commit a2891ea8f2
65 changed files with 172 additions and 183 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<?php
global $valid_sensor;
## IPMI
if ($ipmi['host'] = get_dev_attrib($device,'ipmi_hostname'))
@@ -21,7 +21,7 @@ if ($ipmi['host'] = get_dev_attrib($device,'ipmi_hostname'))
$index++;
if (trim($current) != "na" && $ipmi_unit[trim($unit)])
{
discover_sensor($valid_sensor, $ipmi_unit[trim($unit)], $device, trim($desc), $index, 'ipmi', trim($desc), '1', '1',
discover_sensor($valid['sensor'], $ipmi_unit[trim($unit)], $device, trim($desc), $index, 'ipmi', trim($desc), '1', '1',
(trim($low_limit) == 'na' ? NULL : trim($low_limit)), (trim($low_warn) == 'na' ? NULL : trim($low_warn)),
(trim($high_warn) == 'na' ? NULL : trim($high_warn)), (trim($high_limit) == 'na' ? NULL : trim($high_limit)),
$current, 'ipmi');