mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -184,17 +184,6 @@ function device_traffic_image($device, $width, $height, $from, $to)
|
||||
return "<img src='graph.php?device=" . $device . "&type=device_bits&from=" . $from . "&to=" . $to . "&width=" . $width . "&height=" . $height . "&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;
|
||||
|
||||
Reference in New Issue
Block a user