- Added a setting to toggle the display of sysDescr on the device overview page.

Setting: overview_show_sysDescr
  Default: true


git-svn-id: http://www.observium.org/svn/observer/trunk@922 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Geert Hauwaerts
2010-02-21 14:58:46 +00:00
parent eb7835c8b3
commit c32f652bd4
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
<?php
echo("<div style='font-family: courier, serif; margin: 10px';><strong>" . $device['sysDescr'] . "</strong></div>");
if ($config['overview_show_sysDescr']) {
echo("<div style='font-family: courier, serif; margin: 10px';><strong>" . $device['sysDescr'] . "</strong></div>");
}
# $uptime = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
$uptime = $device['uptime'];

View File

@ -50,6 +50,8 @@ $config['graph_colours']['blues'] = array('A0A0E5','8080BD','606096','40406F',
$config['graph_colours']['purples'] = array('CC7CCC','AF63AF','934A93','773177','5B185B','3F003F');
$config['graph_colours']['default'] = $config['graph_colours']['blues'];
$config['overview_show_sysDescr'] = true;
### Ignores & Allows
$config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",