mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add split multicast/broadcast graphing for linux/ios/iosxe/iosxr and global toggle for polling if it (adds load)
git-svn-id: http://www.observium.org/svn/observer/trunk@1288 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -76,6 +76,10 @@ $config['show_overview_tab'] = true;
|
||||
|
||||
$config['overview_show_sysDescr'] = true;
|
||||
|
||||
## Poller Modules
|
||||
|
||||
$config['enable_port_Xbcmc'] = 1; # Enable ifXEntry broadcast/multicast
|
||||
|
||||
### Ignores & Allows
|
||||
|
||||
$config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",
|
||||
|
||||
@@ -151,13 +151,36 @@
|
||||
RRA:MAX:0.5:288:797");
|
||||
}
|
||||
|
||||
$ifx_rrd = $host_rrd . "/ifx-" . safename($port['ifIndex'] . ".rrd");
|
||||
$ifx_rrd_cmd = $config['rrdtool'] . " create $ifx_rrd -s 300 \
|
||||
DS:InBroadcastPkts:DERIVE:600:0:12500000000 \
|
||||
DS:OutBroadcastPkts:DERIVE:600:0:12500000000 \
|
||||
DS:InMulticastPkts:DERIVE:600:0:12500000000 \
|
||||
DS:OutMulticastPkts:DERIVE:600:0:12500000000 \
|
||||
RRA:AVERAGE:0.5:1:600 \
|
||||
RRA:AVERAGE:0.5:6:700 \
|
||||
RRA:AVERAGE:0.5:24:775 \
|
||||
RRA:AVERAGE:0.5:288:797 \
|
||||
RRA:MAX:0.5:1:600 \
|
||||
RRA:MAX:0.5:6:700 \
|
||||
RRA:MAX:0.5:24:775 \
|
||||
RRA:MAX:0.5:288:797";
|
||||
|
||||
|
||||
foreach ($stat_oids as $oid) { /// Copy values from array to global variables and force numeric.
|
||||
$$oid = $this_port[$oid];
|
||||
if(!is_numeric($$oid)) { $$oid = "0"; }
|
||||
}
|
||||
|
||||
$woo = "$polled:$ifInOctets:$ifOutOctets:$ifInErrors:$ifOutErrors:$ifInUcastPkts:$ifOutUcastPkts:$ifInNUcastPkts:$ifOutNUcastPkts";
|
||||
$ret = rrdtool_update("$rrdfile", $woo);
|
||||
$if_rrd_update = "$polled:$ifInOctets:$ifOutOctets:$ifInErrors:$ifOutErrors:$ifInUcastPkts:$ifOutUcastPkts:$ifInNUcastPkts:$ifOutNUcastPkts";
|
||||
$ret = rrdtool_update("$rrdfile", $if_rrd_update);
|
||||
|
||||
|
||||
if($config['enable_port_Xbcmc'] && $config['os'][$device['os']]['ifXmcbc']) {
|
||||
if(!is_file($ifx_rrd)) { shell_exec($ifx_rrd_cmd); }
|
||||
$ifx_rrd_update = "$polled:$ifHCInBroadcastPkts:$ifHCOutBroadcastPkts:$ifHCInMulticastPkts:$ifHCOutMulticastPkts";
|
||||
$ret = rrdtool_update($ifx_rrd, $ifx_rrd_update);
|
||||
}
|
||||
|
||||
/// End Update IF-MIB
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ $config['os']['default']['overtext'] = "CPU & Memory Usage";
|
||||
|
||||
$config['os']['linux']['group'] = "unix";
|
||||
$config['os']['linux']['text'] = "Linux";
|
||||
$config['os']['linux']['ifXmcbc'] = 1;
|
||||
|
||||
$config['os']['freebsd']['group'] = "unix";
|
||||
$config['os']['freebsd']['text'] = "FreeBSD";
|
||||
@@ -43,14 +44,17 @@ $config['os']['opensolaris']['text'] = "Sun OpenSolaris";
|
||||
$config['os']['ios']['group'] = "ios";
|
||||
$config['os']['ios']['text'] = "Cisco IOS";
|
||||
$config['os']['ios']['type'] = "network";
|
||||
$config['os']['ios']['ifXmcbc'] = 1;
|
||||
|
||||
$config['os']['iosxe']['group'] = "ios";
|
||||
$config['os']['iosxe']['text'] = "Cisco IOS-XE";
|
||||
$config['os']['iosxe']['type'] = "network";
|
||||
$config['os']['iosxe']['ifXmcbc'] = 1;
|
||||
|
||||
$config['os']['iosxr']['group'] = "ios";
|
||||
$config['os']['iosxr']['text'] = "Cisco IOS-XR";
|
||||
$config['os']['iosxr']['type'] = "network";
|
||||
$config['os']['iosxr']['ifXmcbc'] = 1;
|
||||
|
||||
$config['os']['asa']['group'] = "ios";
|
||||
$config['os']['asa']['text'] = "Cisco ASA";
|
||||
|
||||
Reference in New Issue
Block a user