mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
some cipsec_flow graphing (requires db still, which will be moved to array)
git-svn-id: http://www.observium.org/svn/observer/trunk@1561 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
11
html/includes/graphs/device/cipsec_flow_bits.inc.php
Normal file
11
html/includes/graphs/device/cipsec_flow_bits.inc.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
|
||||
$rra_in = "InOctets";
|
||||
$rra_out = "OutOctets";
|
||||
|
||||
include("includes/graphs/generic_bits.inc.php");
|
||||
|
||||
|
||||
?>
|
21
html/includes/graphs/device/cipsec_flow_pkts.inc.php
Normal file
21
html/includes/graphs/device/cipsec_flow_pkts.inc.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
|
||||
$rra_in = "InPkts";
|
||||
$rra_out = "OutPkts";
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
|
||||
$colour_area_in_max = "CC88CC";
|
||||
$colour_area_out_max = "FFEFAA";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Pkts\ \ \ ";
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
16
html/includes/graphs/device/cipsec_flow_tunnels.inc.php
Normal file
16
html/includes/graphs/device/cipsec_flow_tunnels.inc.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
|
||||
$rrd_options .= " DEF:Tunnels=$rrd_filename:Tunnels:AVERAGE";
|
||||
|
||||
$rrd_options .= " COMMENT:'Tunnels Current Average Maximum\\n'";
|
||||
$rrd_options .= " LINE1.25:Tunnels#660000:'Active Tunnels'";
|
||||
$rrd_options .= " GPRINT:Tunnels:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:Tunnels:AVERAGE:\ %6.2lf%s";
|
||||
$rrd_options .= " GPRINT:Tunnels:MAX:\ %6.2lf%s\\\\n";
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user