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:
@@ -292,5 +292,16 @@ function print_message($text)
|
||||
echo('<table class="messagebox" cellpadding="3"><tr><td><img src="/images/16/tick.png" align="absmiddle">'.$text.'</td></tr></table>');
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user