From 6bb7fe026f26df70350d10384ec94670bf560b9c Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 21 Jul 2010 15:14:02 +0000 Subject: [PATCH] improving ipSystemStats v4/v6 stats, clean up some variables in defaults.inc.php git-svn-id: http://www.observium.org/svn/observer/trunk@1455 61d68cd4-352d-0410-923a-c4978735b2b8 --- .../graphs/device_ipSystemStats.inc.php | 18 +++--- .../graphs/device_ipSystemStats_v4.inc.php | 53 +++++++++++++++ .../graphs/device_ipSystemStats_v6.inc.php | 53 +++++++++++++++ .../device_ipSystemStats_v6_frag.inc.php | 64 +++++++++++++++++++ .../device/graphs/network/netstats.inc.php | 16 ++++- includes/defaults.inc.php | 13 ++-- includes/polling/ipSystemStats.inc.php | 60 +++++++++++++++-- includes/polling/netstats.inc.php | 4 ++ includes/polling/ports.inc.php | 2 +- 9 files changed, 257 insertions(+), 26 deletions(-) create mode 100644 html/includes/graphs/device_ipSystemStats_v4.inc.php create mode 100644 html/includes/graphs/device_ipSystemStats_v6.inc.php create mode 100644 html/includes/graphs/device_ipSystemStats_v6_frag.inc.php diff --git a/html/includes/graphs/device_ipSystemStats.inc.php b/html/includes/graphs/device_ipSystemStats.inc.php index 8300ab4b90..8fd3c3eaeb 100644 --- a/html/includes/graphs/device_ipSystemStats.inc.php +++ b/html/includes/graphs/device_ipSystemStats.inc.php @@ -20,7 +20,6 @@ $rrd_options .= " DEF:OutNoRoutes_4=$rrd_filename_4:InDiscards:AVERAGE"; $rrd_options .= " CDEF:OutNoRoutes_4_n=OutNoRoutes_4,-1,*"; - $rrd_options .= " DEF:InForwDatagrams_6=$rrd_filename_6:InForwDatagrams:AVERAGE"; $rrd_options .= " DEF:InDelivers_6=$rrd_filename_6:InDelivers:AVERAGE"; $rrd_options .= " DEF:InReceives_6=$rrd_filename_6:InReceives:AVERAGE"; @@ -35,7 +34,6 @@ $rrd_options .= " DEF:OutNoRoutes_6=$rrd_filename_6:InDiscards:AVERAGE"; $rrd_options .= " CDEF:OutNoRoutes_6_n=OutNoRoutes_6,-1,*"; - $rrd_options .= " COMMENT:'Packets/sec Current Average Maximum\\n'"; $rrd_options .= " AREA:InReceives_4#CDEB8B:'InReceives v4'"; @@ -78,14 +76,14 @@ $rrd_options .= " GPRINT:OutForwDatagrams_6:AVERAGE:%6.2lf%s"; $rrd_options .= " GPRINT:OutForwDatagrams_6:MAX:%6.2lf%s\\\\n"; -# $rrd_options .= " LINE1.25:InDelivers_4#00cc00:'InDelivers v4'"; -# $rrd_options .= " GPRINT:InDelivers_4:LAST:%6.2lf%s"; -# $rrd_options .= " GPRINT:InDelivers_4:AVERAGE:%6.2lf%s"; -# $rrd_options .= " GPRINT:InDelivers_4:MAX:%6.2lf%s\\\\n"; + $rrd_options .= " LINE1.25:InDelivers_4#00cc00:'InDelivers v4'"; + $rrd_options .= " GPRINT:InDelivers_4:LAST:%6.2lf%s"; + $rrd_options .= " GPRINT:InDelivers_4:AVERAGE:%6.2lf%s"; + $rrd_options .= " GPRINT:InDelivers_4:MAX:%6.2lf%s\\\\n"; -# $rrd_options .= " LINE1.25:InDelivers_6#3F003F:' v6'"; -# $rrd_options .= " GPRINT:InDelivers_6:LAST:%6.2lf%s"; -# $rrd_options .= " GPRINT:InDelivers_6:AVERAGE:%6.2lf%s"; -# $rrd_options .= " GPRINT:InDelivers_6:MAX:%6.2lf%s\\\\n"; + $rrd_options .= " LINE1.25:InDelivers_6#3F003F:' v6'"; + $rrd_options .= " GPRINT:InDelivers_6:LAST:%6.2lf%s"; + $rrd_options .= " GPRINT:InDelivers_6:AVERAGE:%6.2lf%s"; + $rrd_options .= " GPRINT:InDelivers_6:MAX:%6.2lf%s\\\\n"; ?> diff --git a/html/includes/graphs/device_ipSystemStats_v4.inc.php b/html/includes/graphs/device_ipSystemStats_v4.inc.php new file mode 100644 index 0000000000..294fe5441a --- /dev/null +++ b/html/includes/graphs/device_ipSystemStats_v4.inc.php @@ -0,0 +1,53 @@ + diff --git a/html/includes/graphs/device_ipSystemStats_v6.inc.php b/html/includes/graphs/device_ipSystemStats_v6.inc.php new file mode 100644 index 0000000000..eea8d69280 --- /dev/null +++ b/html/includes/graphs/device_ipSystemStats_v6.inc.php @@ -0,0 +1,53 @@ + diff --git a/html/includes/graphs/device_ipSystemStats_v6_frag.inc.php b/html/includes/graphs/device_ipSystemStats_v6_frag.inc.php new file mode 100644 index 0000000000..ed6f9e7759 --- /dev/null +++ b/html/includes/graphs/device_ipSystemStats_v6_frag.inc.php @@ -0,0 +1,64 @@ + diff --git a/html/pages/device/graphs/network/netstats.inc.php b/html/pages/device/graphs/network/netstats.inc.php index 5cb716df8c..e2845e3407 100644 --- a/html/pages/device/graphs/network/netstats.inc.php +++ b/html/pages/device/graphs/network/netstats.inc.php @@ -1,11 +1,23 @@