add Dell DRAC MIB, read DRAC hardware info, move humidity discovery to include_dir style, minor fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@1392 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-17 22:53:53 +00:00
parent 6baba81b49
commit ab28c90c3b
6 changed files with 1305 additions and 67 deletions
-11
View File
@@ -184,17 +184,6 @@ function device_traffic_image($device, $width, $height, $from, $to)
return "<img src='graph.php?device=" . $device . "&amp;type=device_bits&amp;from=" . $from . "&amp;to=" . $to . "&amp;width=" . $width . "&amp;height=" . $height . "&amp;legend=no' />";
}
function devclass($device)
{
if (isset($device['status']) && $device['status'] == '0') { $class = "list-device-down"; } else { $class = "list-device"; }
if (isset($device['ignore']) && $device['ignore'] == '1') {
$class = "list-device-ignored";
if (isset($device['status']) && $device['status'] == '1') { $class = "list-device-ignored-up"; }
}
if (isset($device['disabled']) && $device['disabled'] == '1') { $class = "list-device-disabled"; }
return $class;
}
function getImage($host)
{
global $config;