mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove broken juniper mib (J mibs suck, C implementation sucks.)
git-svn-id: http://www.observium.org/svn/observer/trunk@797 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
$oid_cmd = $config['snmpwalk'] . " -m MPLS-VPN-MIB -CI -Ln -Osqn -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " mplsVpnVrfRouteDistinguisher";
|
||||
$oids = shell_exec($oid_cmd);
|
||||
|
||||
if($debug) { echo("$oid_cmd -> $oids \n"); }
|
||||
|
||||
$oids = str_replace(".1.3.6.1.3.118.1.2.2.1.3.", "", $oids);
|
||||
$oids = str_replace(" \"", "||", $oids);
|
||||
$oids = str_replace("\"", "", $oids);
|
||||
|
@@ -317,6 +317,7 @@ function generateiflink($interface, $text=0, $type = NULL)
|
||||
$interface = ifNameDescr($interface);
|
||||
if (!$text) { $text = fixIfName($interface['label']); }
|
||||
if (isset($type)) { $interface['graph_type'] = $type; } else { $interface['graph_type'] = 'port_bits'; }
|
||||
if(!isset($interface['hostname'])) { $interface = array_merge($interface, device_by_id_cache($interface['device_id'])); }
|
||||
$class = ifclass($interface['ifOperStatus'], $interface['ifAdminStatus']);
|
||||
$graph_url = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&from=$day&to=$now&width=400&height=100&type=" . $interface['graph_type'];
|
||||
$graph_url_month = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&from=$month&to=$now&width=400&height=100&type=" . $interface['graph_type'];
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user