make ipmitool path configurable

git-svn-id: http://www.observium.org/svn/observer/trunk@1768 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-12-20 21:20:47 +00:00
parent 730d8405bd
commit 0a24da6945
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ if ($ipmi['host'] = get_dev_attrib($device,'ipmi_hostname'))
$ipmi['user'] = get_dev_attrib($device,'ipmi_username');
$ipmi['password'] = get_dev_attrib($device,'ipmi_password');
$results = shell_exec("ipmitool -H " . $ipmi['host'] . " -U " . $ipmi['user'] . " -P " . $ipmi['password'] . " sensor|sort");
$results = shell_exec($config['ipmitool'] . " -H " . $ipmi['host'] . " -U " . $ipmi['user'] . " -P " . $ipmi['password'] . " sensor|sort");
foreach (explode("\n",$results) as $sensor)
{