mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
css changes. fixes to graph browser.
git-svn-id: http://www.observium.org/svn/observer/trunk@2573 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -31,7 +31,12 @@ if (!$auth)
|
||||
{
|
||||
include("includes/error-no-perm.inc.php");
|
||||
} else {
|
||||
if (isset($config['graph_types'][$type][$subtype]['descr'])) { $title .= " :: ".$config['graph_types'][$type][$subtype]['descr']; } else { $title .= " :: ".$graph_type; }
|
||||
if (isset($config['graph_types'][$type][$subtype]['descr']))
|
||||
{
|
||||
$title .= " :: ".$config['graph_types'][$type][$subtype]['descr'];
|
||||
} else {
|
||||
$title .= " :: ".ucfirst($subtype);
|
||||
}
|
||||
|
||||
$graph_array = $vars;
|
||||
$graph_array['height'] = "60";
|
||||
|
||||
@@ -35,14 +35,6 @@ foreach (dbFetchRows("SELECT `device_id`,`hostname` FROM `devices` GROUP BY `hos
|
||||
<option value="up" <?php if ($vars['state'] == "up") { echo("selected"); } ?>>Up</option>
|
||||
<option value="down"<?php if ($vars['state'] == "down") { echo("selected"); } ?>>Down</option>
|
||||
<option value="admindown" <?php if ($vars['state'] == "admindown") { echo("selected"); } ?>>Shutdown</option>
|
||||
<option value="errors" <?php if ($vars['state'] == "errors") { echo("selected"); } ?>>Errors</option>
|
||||
<option value="ignored" <?php if ($vars['state'] == "ignored") { echo("selected"); } ?>>Ignored</option>
|
||||
<option value="ethernet" <?php if ($vars['state'] == "ethernet") { echo("selected"); } ?>>Ethernet</option>
|
||||
<option value="l2vlan" <?php if ($vars['state'] == "l2vlan") { echo("selected"); } ?>>L2 VLAN</option>
|
||||
<option value="sonet" <?php if ($vars['state'] == "sonet") { echo("selected"); } ?>>SONET</option>
|
||||
<option value="propvirtual" <?php if ($vars['state'] == "propvirtual") { echo("selected"); } ?>>Virtual</option>
|
||||
<option value="ppp" <?php if ($vars['state'] == "ppp") { echo("selected"); } ?>>PPP</option>
|
||||
<option value="loopback" <?php if ($vars['state'] == "loopback") { echo("selected"); } ?>>Loopback</option>
|
||||
</select>
|
||||
<br />
|
||||
|
||||
@@ -271,6 +263,12 @@ foreach($vars as $var => $value)
|
||||
$where .= " AND I.$var LIKE ?";
|
||||
$param[] = "%".$value."%";
|
||||
break;
|
||||
case 'errors':
|
||||
if ($value == 1)
|
||||
{
|
||||
$where .= " AND (I.`ifInErrors_delta` > '0' OR I.`ifOutErrors_delta` > '0')";
|
||||
}
|
||||
break;
|
||||
case 'state':
|
||||
if ($value == "down")
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ foreach ($ports as $port)
|
||||
$link_array['page'] = "graphs";
|
||||
unset($link_array['height'], $link_array['width'], $link_array['legend']);
|
||||
$link = generate_url($link_array);
|
||||
$overlib_content = generate_overlib_content($graph_array, $device['hostname'] . " - " . $port['ifDescr']);
|
||||
$overlib_content = generate_overlib_content($graph_array, $port['hostname'] . " - " . $port['label']);
|
||||
$graph_array['title'] = "yes";
|
||||
$graph_array['width'] = 315; $graph_array['height'] = 119;
|
||||
$graph = generate_graph_tag($graph_array);
|
||||
|
||||
Reference in New Issue
Block a user