fix discovery of IPMI for indexes

git-svn-id: http://www.observium.org/svn/observer/trunk@1770 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-12-26 21:36:22 +00:00
parent 6cb1b7f62b
commit 6326c3b4c8
+2
View File
@@ -12,6 +12,8 @@ if ($ipmi['host'] = get_dev_attrib($device,'ipmi_hostname'))
$results = shell_exec($config['ipmitool'] . " -H " . $ipmi['host'] . " -U " . $ipmi['user'] . " -P " . $ipmi['password'] . " sensor|sort");
$index = 0;
foreach (explode("\n",$results) as $sensor)
{
# BB +1.1V IOH | 1.089 | Volts | ok | na | 1.027 | 1.054 | 1.146 | 1.177 | na