mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
add pseudowires config knob and menu entry
git-svn-id: http://www.observium.org/svn/observer/trunk@376 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -72,6 +72,7 @@ $config['enable_bgp'] = 0; # Enable BGP session collection and display
|
||||
$config['enable_syslog'] = 0; # Enable Syslog
|
||||
$config['enable_billing'] = 0; # Enable BGP session collection and display
|
||||
$config['enable_inventory'] = 0; # Enable Inventory
|
||||
$config['enable_pseudowires'] = 0; # Enable Cisco Pseudowires
|
||||
|
||||
## Uncomment this to enable display of rancid-collected configs
|
||||
#$config['rancid_configs'] = '/var/lib/rancid/network/configs/';
|
||||
|
||||
@@ -120,13 +120,14 @@ if($config['show_locations']) { echo("<li><a class='menu2four' href='locations/'
|
||||
|
||||
<?php
|
||||
|
||||
#$errored = mysql_result(mysql_query("SELECT COUNT(*) FROM interfaces WHERE (in_errors > '0' OR out_errors > '0')"),0);
|
||||
if($interfaces['errored']) {
|
||||
echo("<li><a href='interfaces/errors/'><img src='images/16/chart_curve_error.png' border=0 align=absmiddle> Errored (".$interfaces['errored'].")</a></li>");
|
||||
}
|
||||
|
||||
if($config['enable_billing']) { echo("<li><a href='bills/'><img src='images/16/money_pound.png' border=0 align=absmiddle> Traffic Bills</a></li>"); $ifbreak = 1;}
|
||||
|
||||
if($config['enable_pseudowires']) { echo("<li><a href='pseudowires/'><img src='images/16/arrow_switch.png' border=0 align=absmiddle> Pseudowires</a></li>"); $ifbreak = 1;}
|
||||
|
||||
|
||||
if($_SESSION['userlevel'] >= '5') {
|
||||
echo("<li><hr width=140 /></li>");
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
if($config['enable_pseudowires']) {
|
||||
|
||||
unset( $cpw_count );
|
||||
unset($cpw_exists);
|
||||
|
||||
@@ -57,4 +59,6 @@ while ($cpw = mysql_fetch_array($query)) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user