From 82e878fd482186830b3c31d656ea29e06e2ff7f0 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 17 Jan 2012 13:37:52 +0000 Subject: [PATCH] netscaler tcp stats poller and three graph definitions git-svn-id: http://www.observium.org/svn/observer/trunk@2819 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/atmvp/packets.inc.php | 4 +- .../graphs/device/netscaler_tcp_bits.inc.php | 11 +++ .../graphs/device/netscaler_tcp_conn.inc.php | 25 +++++++ .../graphs/device/netscaler_tcp_pkts.inc.php | 21 ++++++ includes/polling/netscaler-stats.inc.php | 70 +++++++++++++++++++ includes/static-config.php | 15 +++- 6 files changed, 143 insertions(+), 3 deletions(-) create mode 100644 html/includes/graphs/device/netscaler_tcp_bits.inc.php create mode 100644 html/includes/graphs/device/netscaler_tcp_conn.inc.php create mode 100644 html/includes/graphs/device/netscaler_tcp_pkts.inc.php create mode 100644 includes/polling/netscaler-stats.inc.php diff --git a/html/includes/graphs/atmvp/packets.inc.php b/html/includes/graphs/atmvp/packets.inc.php index 2a5517ec4..34c5b8c93 100644 --- a/html/includes/graphs/atmvp/packets.inc.php +++ b/html/includes/graphs/atmvp/packets.inc.php @@ -8,8 +8,8 @@ $colour_line_in = "330033"; $colour_area_out = "FFDD88"; $colour_line_out = "FF6600"; -$colour_area_in_max = "cc88cc"; -$colour_area_out_max = "FFefaa"; +$colour_area_in_max = "CC88CC"; +$colour_area_out_max = "FFEFAA"; $graph_max = 1; $unit_text = "Packets"; diff --git a/html/includes/graphs/device/netscaler_tcp_bits.inc.php b/html/includes/graphs/device/netscaler_tcp_bits.inc.php new file mode 100644 index 000000000..36e8d4864 --- /dev/null +++ b/html/includes/graphs/device/netscaler_tcp_bits.inc.php @@ -0,0 +1,11 @@ + diff --git a/html/includes/graphs/device/netscaler_tcp_conn.inc.php b/html/includes/graphs/device/netscaler_tcp_conn.inc.php new file mode 100644 index 000000000..796ea2ff6 --- /dev/null +++ b/html/includes/graphs/device/netscaler_tcp_conn.inc.php @@ -0,0 +1,25 @@ + diff --git a/html/includes/graphs/device/netscaler_tcp_pkts.inc.php b/html/includes/graphs/device/netscaler_tcp_pkts.inc.php new file mode 100644 index 000000000..e95b000f9 --- /dev/null +++ b/html/includes/graphs/device/netscaler_tcp_pkts.inc.php @@ -0,0 +1,21 @@ + diff --git a/includes/polling/netscaler-stats.inc.php b/includes/polling/netscaler-stats.inc.php new file mode 100644 index 000000000..617b5241e --- /dev/null +++ b/includes/polling/netscaler-stats.inc.php @@ -0,0 +1,70 @@ + diff --git a/includes/static-config.php b/includes/static-config.php index 21b94bd83..d5f1feb14 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -844,7 +844,7 @@ foreach ($config['os'] as $this_os => $blah) ### Graph Types -$config['graph_sections'] = array('system', 'firewall', 'netstats', 'wireless', 'storage', 'vpdn'); +$config['graph_sections'] = array('system', 'firewall', 'netstats', 'wireless', 'storage', 'vpdn', 'load balancer'); $config['graph_types']['device']['wifi_clients']['section'] = 'wireless'; $config['graph_types']['device']['wifi_clients']['order'] = '0'; @@ -970,6 +970,19 @@ $config['graph_types']['device']['vpdn_tunnels_l2tp']['section'] = 'vpdn'; $config['graph_types']['device']['vpdn_tunnels_l2tp']['order'] = '0'; $config['graph_types']['device']['vpdn_tunnels_l2tp']['descr'] = 'VPDN L2TP Tunnels'; +$config['graph_types']['device']['netscaler_tcp_conn']['section'] = 'load balancer'; +$config['graph_types']['device']['netscaler_tcp_conn']['order'] = '0'; +$config['graph_types']['device']['netscaler_tcp_conn']['descr'] = 'TCP Connections'; + +$config['graph_types']['device']['netscaler_tcp_bits']['section'] = 'load balancer'; +$config['graph_types']['device']['netscaler_tcp_bits']['order'] = '0'; +$config['graph_types']['device']['netscaler_tcp_bits']['descr'] = 'TCP Traffic'; + +$config['graph_types']['device']['netscaler_tcp_pkts']['section'] = 'load balancer'; +$config['graph_types']['device']['netscaler_tcp_pkts']['order'] = '0'; +$config['graph_types']['device']['netscaler_tcp_pkts']['descr'] = 'TCP Packets'; + + ### Device Types