From 38ab6eda89078e8d18528b9b554c084488145dde Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 28 Oct 2009 13:52:39 +0000 Subject: [PATCH] updates and additions of graphing templates git-svn-id: http://www.observium.org/svn/observer/trunk@494 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/cpmCPU.inc.php | 26 ++++++++ html/includes/graphs/customer_bits.inc.php | 22 +++++++ .../graphs/device_memory_unix.inc.php | 64 +++++++++++++++++++ html/includes/graphs/device_unixfs.inc.php | 28 ++++++++ .../graphs/generic_multi_seperated.inc.php | 46 +++++++++++++ .../generic_multi_simplex_seperated.inc.php | 32 ++++++++++ html/includes/graphs/port_etherlike.inc.php | 35 ++++++++++ html/includes/graphs/unixfs.inc.php | 31 +++++++++ 8 files changed, 284 insertions(+) create mode 100644 html/includes/graphs/cpmCPU.inc.php create mode 100644 html/includes/graphs/customer_bits.inc.php create mode 100644 html/includes/graphs/device_memory_unix.inc.php create mode 100644 html/includes/graphs/device_unixfs.inc.php create mode 100644 html/includes/graphs/generic_multi_seperated.inc.php create mode 100644 html/includes/graphs/generic_multi_simplex_seperated.inc.php create mode 100644 html/includes/graphs/port_etherlike.inc.php create mode 100644 html/includes/graphs/unixfs.inc.php diff --git a/html/includes/graphs/cpmCPU.inc.php b/html/includes/graphs/cpmCPU.inc.php new file mode 100644 index 000000000..4ffea134c --- /dev/null +++ b/html/includes/graphs/cpmCPU.inc.php @@ -0,0 +1,26 @@ + diff --git a/html/includes/graphs/customer_bits.inc.php b/html/includes/graphs/customer_bits.inc.php new file mode 100644 index 000000000..c20d684f3 --- /dev/null +++ b/html/includes/graphs/customer_bits.inc.php @@ -0,0 +1,22 @@ + diff --git a/html/includes/graphs/device_memory_unix.inc.php b/html/includes/graphs/device_memory_unix.inc.php new file mode 100644 index 000000000..2d3ef2c9e --- /dev/null +++ b/html/includes/graphs/device_memory_unix.inc.php @@ -0,0 +1,64 @@ + diff --git a/html/includes/graphs/device_unixfs.inc.php b/html/includes/graphs/device_unixfs.inc.php new file mode 100644 index 000000000..93fbf9406 --- /dev/null +++ b/html/includes/graphs/device_unixfs.inc.php @@ -0,0 +1,28 @@ + diff --git a/html/includes/graphs/generic_multi_seperated.inc.php b/html/includes/graphs/generic_multi_seperated.inc.php new file mode 100644 index 000000000..7ded1e2fc --- /dev/null +++ b/html/includes/graphs/generic_multi_seperated.inc.php @@ -0,0 +1,46 @@ + diff --git a/html/includes/graphs/generic_multi_simplex_seperated.inc.php b/html/includes/graphs/generic_multi_simplex_seperated.inc.php new file mode 100644 index 000000000..d8d332497 --- /dev/null +++ b/html/includes/graphs/generic_multi_simplex_seperated.inc.php @@ -0,0 +1,32 @@ +DEF:".$rrd['rra'].$i."=".$rrd['filename'].":".$rrd['rra'].":AVERAGE

"); + + if(!$args['nototal']) { + $rrd_options .= " VDEF:tot".$rrd['rra'].$i."=".$rrd['rra'].$i.",TOTAL"; + } + if($i) {$stack="STACK";} + $rrd_options .= " AREA:".$rrd['rra'].$i."#" . $colour . ":'" . substr(str_pad($rrd['descr'], 18),0,18) . "':$stack"; + $rrd_options .= " GPRINT:".$rrd['rra'].$i.":LAST:%6.2lf%s$units"; + $rrd_options .= " GPRINT:".$rrd['rra'].$i."max:MAX:%6.2lf%s$units"; + if(!$nototal) { $rrd_options .= " GPRINT:tot".$rrd['rra'].$i.":%6.2lf%s$total_units"; } + $rrd_options .= " COMMENT:\\\\n"; + $i++; $iter++; + } + +?> diff --git a/html/includes/graphs/port_etherlike.inc.php b/html/includes/graphs/port_etherlike.inc.php new file mode 100644 index 000000000..b4763ed83 --- /dev/null +++ b/html/includes/graphs/port_etherlike.inc.php @@ -0,0 +1,35 @@ + diff --git a/html/includes/graphs/unixfs.inc.php b/html/includes/graphs/unixfs.inc.php new file mode 100644 index 000000000..84e79ac56 --- /dev/null +++ b/html/includes/graphs/unixfs.inc.php @@ -0,0 +1,31 @@ +