mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- 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:
@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?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 = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
|
||||||
$uptime = $device['uptime'];
|
$uptime = $device['uptime'];
|
||||||
|
@ -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']['purples'] = array('CC7CCC','AF63AF','934A93','773177','5B185B','3F003F');
|
||||||
$config['graph_colours']['default'] = $config['graph_colours']['blues'];
|
$config['graph_colours']['default'] = $config['graph_colours']['blues'];
|
||||||
|
|
||||||
|
$config['overview_show_sysDescr'] = true;
|
||||||
|
|
||||||
### Ignores & Allows
|
### Ignores & Allows
|
||||||
|
|
||||||
$config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",
|
$config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",
|
||||||
|
Reference in New Issue
Block a user