From 1f64c5d038dcddb390b1b4974c7c41b0c40b98ab Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 7 Jan 2010 20:27:17 +0000 Subject: [PATCH] move graphs code into separate files per OS git-svn-id: http://www.observium.org/svn/observer/trunk@617 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/graphs/os-bcm96348.inc.php | 12 ++++++++++++ html/pages/device/graphs/os-fortigate.inc.php | 9 +++++++++ html/pages/device/graphs/os-powerconnect.inc.php | 11 +++++++++++ html/pages/device/graphs/os-procurve.inc.php | 9 +++++++++ html/pages/device/graphs/os-screenos.inc.php | 11 +++++++++++ html/pages/device/graphs/os-snom.inc.php | 2 ++ 6 files changed, 54 insertions(+) create mode 100644 html/pages/device/graphs/os-bcm96348.inc.php create mode 100644 html/pages/device/graphs/os-fortigate.inc.php create mode 100644 html/pages/device/graphs/os-powerconnect.inc.php create mode 100644 html/pages/device/graphs/os-procurve.inc.php create mode 100644 html/pages/device/graphs/os-screenos.inc.php create mode 100644 html/pages/device/graphs/os-snom.inc.php diff --git a/html/pages/device/graphs/os-bcm96348.inc.php b/html/pages/device/graphs/os-bcm96348.inc.php new file mode 100644 index 000000000..b773658ee --- /dev/null +++ b/html/pages/device/graphs/os-bcm96348.inc.php @@ -0,0 +1,12 @@ + echo("
ADSL Attainable Rate
"); + $graph_type = "adsl_rate"; include ("includes/print-device-graph.php"); + echo("
"); + echo("
ADSL Signal-to-Noise Margin
"); + $graph_type = "adsl_snr"; include ("includes/print-device-graph.php"); + echo("
"); + echo("
ADSL Attenuation
"); + $graph_type = "adsl_atn"; include ("includes/print-device-graph.php"); + echo("
"); + + include("graphs/netstats.inc.php"); + include("graphs/uptime.inc.php"); diff --git a/html/pages/device/graphs/os-fortigate.inc.php b/html/pages/device/graphs/os-fortigate.inc.php new file mode 100644 index 000000000..0ac8bd5fe --- /dev/null +++ b/html/pages/device/graphs/os-fortigate.inc.php @@ -0,0 +1,9 @@ + echo("
Processor Utilisation
"); + $graph_type = "fortigate_cpu"; include ("includes/print-device-graph.php"); + echo("
Memory Usage
"); + $graph_type = "fortigate_memory"; include ("includes/print-device-graph.php"); + echo("
Firewall Sessions
"); + $graph_type = "fortigate_sessions"; include ("includes/print-device-graph.php"); + + include("graphs/netstats.inc.php"); + include("graphs/uptime.inc.php"); diff --git a/html/pages/device/graphs/os-powerconnect.inc.php b/html/pages/device/graphs/os-powerconnect.inc.php new file mode 100644 index 000000000..6571fa5cf --- /dev/null +++ b/html/pages/device/graphs/os-powerconnect.inc.php @@ -0,0 +1,11 @@ + echo("
Processor Utilisation
"); + $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); + echo("
"); + /* + echo("
Memory Usage
"); + $graph_type = "device_memory"; include ("includes/print-device-graph.php"); + echo("
"); + */ + echo("
Device Uptime
"); + $graph_type = "device_uptime"; include ("includes/print-device-graph.php"); break; + echo("
"); diff --git a/html/pages/device/graphs/os-procurve.inc.php b/html/pages/device/graphs/os-procurve.inc.php new file mode 100644 index 000000000..6089b039f --- /dev/null +++ b/html/pages/device/graphs/os-procurve.inc.php @@ -0,0 +1,9 @@ + echo("
Processor Utilisation
"); + $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); + echo("
"); + echo("
Memory Usage
"); + $graph_type = "device_memory"; include ("includes/print-device-graph.php"); + echo("
"); + echo("
Device Uptime
"); + $graph_type = "device_uptime"; include ("includes/print-device-graph.php"); break; + echo("
"); diff --git a/html/pages/device/graphs/os-screenos.inc.php b/html/pages/device/graphs/os-screenos.inc.php new file mode 100644 index 000000000..cdacbc13d --- /dev/null +++ b/html/pages/device/graphs/os-screenos.inc.php @@ -0,0 +1,11 @@ + echo("
Processor Utilisation
"); + $graph_type = "netscreen_cpu"; include ("includes/print-device-graph.php"); + echo("
Memory Usage
"); + $graph_type = "netscreen_memory"; include ("includes/print-device-graph.php"); + echo("
Firewall Sessions
"); + $graph_type = "netscreen_sessions"; include ("includes/print-device-graph.php"); + + + include("graphs/netstats.inc.php"); + include("graphs/uptime.inc.php"); + diff --git a/html/pages/device/graphs/os-snom.inc.php b/html/pages/device/graphs/os-snom.inc.php new file mode 100644 index 000000000..e13c15116 --- /dev/null +++ b/html/pages/device/graphs/os-snom.inc.php @@ -0,0 +1,2 @@ + echo("
Calls
"); + $graph_type = "snom_calls"; include ("includes/print-device-graph.php");