mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply "Squiz" code style on old (pre-2014) files
This commit is contained in:
@@ -1,53 +1,91 @@
|
||||
<?php // vim:fenc=utf-8:filetype=php:ts=4
|
||||
<?php
|
||||
/**
|
||||
* Configuration file for Collectd graph browser
|
||||
*/
|
||||
|
||||
// Array of paths when collectd's rrdtool plugin writes RRDs
|
||||
$config['datadirs'] = array($config['collectd_dir']);
|
||||
$config['datadirs'] = array($config['collectd_dir']);
|
||||
// Width of graph to be generated by rrdgraph
|
||||
if(isset($_GET['width'])) {
|
||||
$config['rrd_width'] = $_GET['width'];
|
||||
} else {
|
||||
$config['rrd_width'] = 270;
|
||||
if (isset($_GET['width'])) {
|
||||
$config['rrd_width'] = $_GET['width'];
|
||||
}
|
||||
else {
|
||||
$config['rrd_width'] = 270;
|
||||
}
|
||||
|
||||
// Height of graph to be generated by rrdgraph
|
||||
if(isset($_GET['height'])) {
|
||||
$config['rrd_height'] = $_GET['height'];
|
||||
} else {
|
||||
$config['rrd_height'] = 120;
|
||||
if (isset($_GET['height'])) {
|
||||
$config['rrd_height'] = $_GET['height'];
|
||||
}
|
||||
else {
|
||||
$config['rrd_height'] = 120;
|
||||
}
|
||||
|
||||
// List of supported timespans (used for period drop-down list)
|
||||
$config['timespan'] = array(
|
||||
array('name'=>'hour', 'label'=>'past hour', 'seconds'=>3600),
|
||||
array('name'=>'day', 'label'=>'past day', 'seconds'=>86400),
|
||||
array('name'=>'week', 'label'=>'past week', 'seconds'=>604800),
|
||||
array('name'=>'month', 'label'=>'past month', 'seconds'=>2678400),
|
||||
array('name'=>'year', 'label'=>'past year', 'seconds'=>31622400));
|
||||
$config['timespan'] = array(
|
||||
array(
|
||||
'name' => 'hour',
|
||||
'label' => 'past hour',
|
||||
'seconds' => 3600,
|
||||
),
|
||||
array(
|
||||
'name' => 'day',
|
||||
'label' => 'past day',
|
||||
'seconds' => 86400,
|
||||
),
|
||||
array(
|
||||
'name' => 'week',
|
||||
'label' => 'past week',
|
||||
'seconds' => 604800,
|
||||
),
|
||||
array(
|
||||
'name' => 'month',
|
||||
'label' => 'past month',
|
||||
'seconds' => 2678400,
|
||||
),
|
||||
array(
|
||||
'name' => 'year',
|
||||
'label' => 'past year',
|
||||
'seconds' => 31622400,
|
||||
),
|
||||
);
|
||||
// Interval at which values are collectd (currently ignored)
|
||||
$config['rrd_interval'] = 10;
|
||||
$config['rrd_interval'] = 10;
|
||||
// Average rows/rra (currently ignored)
|
||||
$config['rrd_rows'] = 2400;
|
||||
$config['rrd_rows'] = 2400;
|
||||
// Additional options to pass to rrdgraph
|
||||
#$config['rrd_opts'] = (isset($config['rrdgraph_defaults']) ? $config['rrdgraph_defaults'] : '');
|
||||
#$config['rrd_opts'] = array('-E', "-c", "SHADEA#a5a5a5", "-c", "SHADEB#a5a5a5", "-c", "FONT#000000", "-c", "CANVAS#FFFFFF", "-c", "GRID#aaaaaa",
|
||||
# "-c", "MGRID#FFAAAA", "-c", "FRAME#3e3e3e", "-c", "ARROW#5e5e5e", "-R", "normal");
|
||||
// $config['rrd_opts'] = (isset($config['rrdgraph_defaults']) ? $config['rrdgraph_defaults'] : '');
|
||||
// $config['rrd_opts'] = array('-E', "-c", "SHADEA#a5a5a5", "-c", "SHADEB#a5a5a5", "-c", "FONT#000000", "-c", "CANVAS#FFFFFF", "-c", "GRID#aaaaaa",
|
||||
// "-c", "MGRID#FFAAAA", "-c", "FRAME#3e3e3e", "-c", "ARROW#5e5e5e", "-R", "normal");
|
||||
// Predefined set of colors for use by collectd_draw_rrd()
|
||||
$config['rrd_colors'] = array(
|
||||
'h_1'=>'F7B7B7', 'f_1'=>'FF0000', // Red
|
||||
'h_2'=>'B7EFB7', 'f_2'=>'00E000', // Green
|
||||
'h_3'=>'B7B7F7', 'f_3'=>'0000FF', // Blue
|
||||
'h_4'=>'F3DFB7', 'f_4'=>'F0A000', // Yellow
|
||||
'h_5'=>'B7DFF7', 'f_5'=>'00A0FF', // Cyan
|
||||
'h_6'=>'DFB7F7', 'f_6'=>'A000FF', // Magenta
|
||||
'h_7'=>'FFC782', 'f_7'=>'FF8C00', // Orange
|
||||
'h_8'=>'DCFF96', 'f_8'=>'AAFF00', // Lime
|
||||
'h_9'=>'83FFCD', 'f_9'=>'00FF99',
|
||||
'h_10'=>'81D9FF', 'f_10'=>'00B2FF',
|
||||
'h_11'=>'FF89F5', 'f_11'=>'FF00EA',
|
||||
'h_12'=>'FF89AE', 'f_12'=>'FF0051',
|
||||
'h_13'=>'BBBBBB', 'f_13'=>'555555',
|
||||
);
|
||||
$config['rrd_colors'] = array(
|
||||
'h_1' => 'F7B7B7',
|
||||
'f_1' => 'FF0000', // Red
|
||||
'h_2' => 'B7EFB7',
|
||||
'f_2' => '00E000', // Green
|
||||
'h_3' => 'B7B7F7',
|
||||
'f_3' => '0000FF', // Blue
|
||||
'h_4' => 'F3DFB7',
|
||||
'f_4' => 'F0A000', // Yellow
|
||||
'h_5' => 'B7DFF7',
|
||||
'f_5' => '00A0FF', // Cyan
|
||||
'h_6' => 'DFB7F7',
|
||||
'f_6' => 'A000FF', // Magenta
|
||||
'h_7' => 'FFC782',
|
||||
'f_7' => 'FF8C00', // Orange
|
||||
'h_8' => 'DCFF96',
|
||||
'f_8' => 'AAFF00', // Lime
|
||||
'h_9' => '83FFCD',
|
||||
'f_9' => '00FF99',
|
||||
'h_10' => '81D9FF',
|
||||
'f_10' => '00B2FF',
|
||||
'h_11' => 'FF89F5',
|
||||
'f_11' => 'FF00EA',
|
||||
'h_12' => 'FF89AE',
|
||||
'f_12' => 'FF0051',
|
||||
'h_13' => 'BBBBBB',
|
||||
'f_13' => '555555',
|
||||
);
|
||||
/*
|
||||
* URL to collectd's unix socket (unixsock plugin)
|
||||
* enabled: 'unix:///var/run/collectd/collectd-unixsock'
|
||||
@@ -58,11 +96,9 @@ $config['collectd_sock'] = null;
|
||||
* Path to TTF font file to use in error images
|
||||
* (fallback when file does not exist is GD fixed font)
|
||||
*/
|
||||
$config['error_font'] = '/usr/share/fonts/corefonts/arial.ttf';
|
||||
$config['error_font'] = '/usr/share/fonts/corefonts/arial.ttf';
|
||||
|
||||
/*
|
||||
* Constant defining full path to rrdtool
|
||||
*/
|
||||
define('RRDTOOL', $config['rrdtool']);
|
||||
|
||||
?>
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/mem.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/mem.rrd';
|
||||
|
||||
$rrd_options .= " -b 1024";
|
||||
$rrd_options .= ' -b 1024';
|
||||
|
||||
$rrd_options .= " DEF:atotalswap=$rrd_filename:totalswap:AVERAGE";
|
||||
$rrd_options .= " DEF:aavailswap=$rrd_filename:availswap:AVERAGE";
|
||||
@@ -16,51 +16,49 @@ $rrd_options .= " DEF:atotalfree=$rrd_filename:totalfree:AVERAGE";
|
||||
$rrd_options .= " DEF:ashared=$rrd_filename:shared:AVERAGE";
|
||||
$rrd_options .= " DEF:abuffered=$rrd_filename:buffered:AVERAGE";
|
||||
$rrd_options .= " DEF:acached=$rrd_filename:cached:AVERAGE";
|
||||
$rrd_options .= " CDEF:totalswap=atotalswap,1024,*";
|
||||
$rrd_options .= " CDEF:availswap=aavailswap,1024,*";
|
||||
$rrd_options .= " CDEF:totalreal=atotalreal,1024,*";
|
||||
$rrd_options .= " CDEF:availreal=aavailreal,1024,*";
|
||||
$rrd_options .= " CDEF:totalfree=atotalfree,1024,*";
|
||||
$rrd_options .= " CDEF:shared=ashared,1024,*";
|
||||
$rrd_options .= " CDEF:buffered=abuffered,1024,*";
|
||||
$rrd_options .= " CDEF:cached=acached,1024,*";
|
||||
$rrd_options .= " CDEF:usedreal=totalreal,availreal,-";
|
||||
$rrd_options .= " CDEF:usedswap=totalswap,availswap,-";
|
||||
$rrd_options .= " CDEF:cusedswap=usedswap,-1,*";
|
||||
$rrd_options .= " CDEF:cdeftot=availreal,shared,buffered,usedreal,cached,usedswap,+,+,+,+,+";
|
||||
$rrd_options .= ' CDEF:totalswap=atotalswap,1024,*';
|
||||
$rrd_options .= ' CDEF:availswap=aavailswap,1024,*';
|
||||
$rrd_options .= ' CDEF:totalreal=atotalreal,1024,*';
|
||||
$rrd_options .= ' CDEF:availreal=aavailreal,1024,*';
|
||||
$rrd_options .= ' CDEF:totalfree=atotalfree,1024,*';
|
||||
$rrd_options .= ' CDEF:shared=ashared,1024,*';
|
||||
$rrd_options .= ' CDEF:buffered=abuffered,1024,*';
|
||||
$rrd_options .= ' CDEF:cached=acached,1024,*';
|
||||
$rrd_options .= ' CDEF:usedreal=totalreal,availreal,-';
|
||||
$rrd_options .= ' CDEF:usedswap=totalswap,availswap,-';
|
||||
$rrd_options .= ' CDEF:cusedswap=usedswap,-1,*';
|
||||
$rrd_options .= ' CDEF:cdeftot=availreal,shared,buffered,usedreal,cached,usedswap,+,+,+,+,+';
|
||||
$rrd_options .= " COMMENT:'Bytes Current Average Maximum\\n'";
|
||||
$rrd_options .= " LINE1:usedreal#d0b080:";
|
||||
$rrd_options .= " AREA:usedreal#f0e0a0:used";
|
||||
$rrd_options .= " GPRINT:usedreal:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedreal:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' LINE1:usedreal#d0b080:';
|
||||
$rrd_options .= ' AREA:usedreal#f0e0a0:used';
|
||||
$rrd_options .= ' GPRINT:usedreal:LAST:\ \ \ %7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:usedreal:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:usedreal:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " STACK:availreal#e5e5e5:free";
|
||||
$rrd_options .= " GPRINT:availreal:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:availreal:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' STACK:availreal#e5e5e5:free';
|
||||
$rrd_options .= ' GPRINT:availreal:LAST:\ \ \ %7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:availreal:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:availreal:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " LINE1:usedreal#d0b080:";
|
||||
$rrd_options .= " AREA:shared#afeced::";
|
||||
$rrd_options .= " AREA:buffered#cc0000::STACK";
|
||||
$rrd_options .= " AREA:cached#ffaa66::STACK";
|
||||
$rrd_options .= " LINE1.25:shared#008fea:shared";
|
||||
$rrd_options .= " GPRINT:shared:LAST:\ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:shared:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' LINE1:usedreal#d0b080:';
|
||||
$rrd_options .= ' AREA:shared#afeced::';
|
||||
$rrd_options .= ' AREA:buffered#cc0000::STACK';
|
||||
$rrd_options .= ' AREA:cached#ffaa66::STACK';
|
||||
$rrd_options .= ' LINE1.25:shared#008fea:shared';
|
||||
$rrd_options .= ' GPRINT:shared:LAST:\ %7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:shared:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:shared:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " LINE1.25:buffered#ff1a00:buffers:STACK";
|
||||
$rrd_options .= " GPRINT:buffered:LAST:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:buffered:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' LINE1.25:buffered#ff1a00:buffers:STACK';
|
||||
$rrd_options .= ' GPRINT:buffered:LAST:%7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:buffered:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:buffered:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " LINE1.25:cached#ea8f00:cached:STACK";
|
||||
$rrd_options .= " GPRINT:cached:LAST:\ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:cached:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' LINE1.25:cached#ea8f00:cached:STACK';
|
||||
$rrd_options .= ' GPRINT:cached:LAST:\ %7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:cached:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:cached:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " LINE1:totalreal#050505:";
|
||||
$rrd_options .= " AREA:cusedswap#C3D9FF:swap";
|
||||
$rrd_options .= " LINE1.25:cusedswap#356AA0:";
|
||||
$rrd_options .= " GPRINT:usedswap:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedswap:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= ' LINE1:totalreal#050505:';
|
||||
$rrd_options .= ' AREA:cusedswap#C3D9FF:swap';
|
||||
$rrd_options .= ' LINE1.25:cusedswap#356AA0:';
|
||||
$rrd_options .= ' GPRINT:usedswap:LAST:\ \ \ %7.2lf%sB';
|
||||
$rrd_options .= ' GPRINT:usedswap:AVERAGE:%7.2lf%sB';
|
||||
$rrd_options .= " GPRINT:usedswap:MAX:%7.2lf%sB\\\\n";
|
||||
$rrd_options .= " LINE1:totalreal#050505:total";
|
||||
$rrd_options .= " GPRINT:totalreal:AVERAGE:\ \ %7.2lf%sB";
|
||||
|
||||
?>
|
||||
$rrd_options .= ' LINE1:totalreal#050505:total';
|
||||
$rrd_options .= ' GPRINT:totalreal:AVERAGE:\ \ %7.2lf%sB';
|
||||
|
@@ -1,17 +1,13 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$ap = accesspoint_by_id($vars['id']);
|
||||
if (is_numeric($vars['id'])) {
|
||||
$ap = accesspoint_by_id($vars['id']);
|
||||
|
||||
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id']))) {
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: AP :: " . htmlentities($ap['name']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
$title = generate_device_link($device);
|
||||
$title .= ' :: AP :: '.htmlentities($ap['name']);
|
||||
$auth = true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,25 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Interference";
|
||||
$rrd_list[0]['ds'] = "interference";
|
||||
$rrd_list[0]['descr'] = 'Interference';
|
||||
$rrd_list[0]['ds'] = 'interference';
|
||||
|
||||
$unit_text = "Int";
|
||||
$unit_text = 'Int';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,25 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Num Clients";
|
||||
$rrd_list[0]['ds'] = "numasoclients";
|
||||
$rrd_list[0]['descr'] = 'Num Clients';
|
||||
$rrd_list[0]['ds'] = 'numasoclients';
|
||||
|
||||
$unit_text = "Clients";
|
||||
$unit_text = 'Clients';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,26 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "MonBSSIDs";
|
||||
$rrd_list[0]['ds'] = "nummonbssid";
|
||||
$rrd_list[0]['descr'] = 'MonBSSIDs';
|
||||
$rrd_list[0]['ds'] = 'nummonbssid';
|
||||
|
||||
$unit_text = "BSSIDs";
|
||||
$unit_text = 'BSSIDs';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
@@ -1,25 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Mon Clients";
|
||||
$rrd_list[0]['ds'] = "nummonclients";
|
||||
$rrd_list[0]['descr'] = 'Mon Clients';
|
||||
$rrd_list[0]['ds'] = 'nummonclients';
|
||||
|
||||
$unit_text = "Clients";
|
||||
$unit_text = 'Clients';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,25 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "radioutil";
|
||||
$rrd_list[0]['ds'] = "radioutil";
|
||||
$rrd_list[0]['descr'] = 'radioutil';
|
||||
$rrd_list[0]['ds'] = 'radioutil';
|
||||
|
||||
$unit_text = "Percent";
|
||||
$unit_text = 'Percent';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,26 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "txpow";
|
||||
$rrd_list[0]['ds'] = "txpow";
|
||||
$rrd_list[0]['descr'] = 'txpow';
|
||||
$rrd_list[0]['ds'] = 'txpow';
|
||||
|
||||
$unit_text = "dBm";
|
||||
$unit_text = 'dBm';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
@@ -1,33 +1,31 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/altiga-ssl.rrd.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/altiga-ssl.rrd.rrd';
|
||||
|
||||
$rrd_options .= " DEF:TotalSessions=$rrd_filename:TotalSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:ActiveSessions=$rrd_filename:ActiveSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:MaxSessions=$rrd_filename:MaxSessions:AVERAGE";
|
||||
$rrd_options .= " CDEF:a=1min,100,/";
|
||||
$rrd_options .= " CDEF:b=5min,100,/";
|
||||
$rrd_options .= " CDEF:c=15min,100,/";
|
||||
$rrd_options .= " CDEF:cdefd=a,b,c,+,+";
|
||||
$rrd_options .= ' CDEF:a=1min,100,/';
|
||||
$rrd_options .= ' CDEF:b=5min,100,/';
|
||||
$rrd_options .= ' CDEF:c=15min,100,/';
|
||||
$rrd_options .= ' CDEF:cdefd=a,b,c,+,+';
|
||||
$rrd_options .= " COMMENT:Load\ Average\ \ Current\ \ \ \ Average\ \ \ \ Maximum\\\\n";
|
||||
$rrd_options .= " AREA:a#ffeeaa:1\ Min:";
|
||||
$rrd_options .= " LINE1:a#c5aa00:";
|
||||
$rrd_options .= " GPRINT:a:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:a:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= ' AREA:a#ffeeaa:1\ Min:';
|
||||
$rrd_options .= ' LINE1:a#c5aa00:';
|
||||
$rrd_options .= ' GPRINT:a:LAST:\ \ \ \ %7.2lf';
|
||||
$rrd_options .= ' GPRINT:a:AVERAGE:\ \ %7.2lf';
|
||||
$rrd_options .= " GPRINT:a:MAX:\ \ %7.2lf\\\\n";
|
||||
$rrd_options .= " LINE1.25:b#ea8f00:5\ Min:";
|
||||
$rrd_options .= " GPRINT:b:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:b:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= ' LINE1.25:b#ea8f00:5\ Min:';
|
||||
$rrd_options .= ' GPRINT:b:LAST:\ \ \ \ %7.2lf';
|
||||
$rrd_options .= ' GPRINT:b:AVERAGE:\ \ %7.2lf';
|
||||
$rrd_options .= " GPRINT:b:MAX:\ \ %7.2lf\\\\n";
|
||||
$rrd_options .= " LINE1.25:c#cc0000:15\ Min";
|
||||
$rrd_options .= " GPRINT:c:LAST:\ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:c:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= ' LINE1.25:c#cc0000:15\ Min';
|
||||
$rrd_options .= ' GPRINT:c:LAST:\ \ \ %7.2lf';
|
||||
$rrd_options .= ' GPRINT:c:AVERAGE:\ \ %7.2lf';
|
||||
$rrd_options .= " GPRINT:c:MAX:\ \ %7.2lf\\\\n";
|
||||
|
||||
?>
|
@@ -1,12 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']) && ($auth || application_permitted($vars['id'])))
|
||||
{
|
||||
$app = get_application_by_id($vars['id']);
|
||||
$device = device_by_id_cache($app['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= $graph_subtype;
|
||||
$auth = TRUE;
|
||||
if (is_numeric($vars['id']) && ($auth || application_permitted($vars['id']))) {
|
||||
$app = get_application_by_id($vars['id']);
|
||||
$device = device_by_id_cache($app['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= $graph_subtype;
|
||||
$auth = true;
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,37 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-drbd-".$app['app_instance'].".rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-drbd-'.$app['app_instance'].'.rrd';
|
||||
|
||||
$array = array(
|
||||
'lo' => 'Local I/O',
|
||||
'pe' => 'Pending',
|
||||
'ua' => 'UnAcked',
|
||||
'ap' => 'App Pending',
|
||||
);
|
||||
'lo' => 'Local I/O',
|
||||
'pe' => 'Pending',
|
||||
'ua' => 'UnAcked',
|
||||
'ap' => 'App Pending',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "";
|
||||
$unit_text = '';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,36 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$unit_text = 'Messages/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mailscannerV2-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'msg_rejected' => array('descr' => 'Rejected'),
|
||||
'msg_relay' => array('descr' => 'Relayed'),
|
||||
'msg_waiting' => array('descr' => 'Waiting'),
|
||||
);
|
||||
'msg_rejected' => array('descr' => 'Rejected'),
|
||||
'msg_relay' => array('descr' => 'Relayed'),
|
||||
'msg_waiting' => array('descr' => 'Waiting'),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (is_file($rrd_filename)) {
|
||||
$max_colours = count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $vars) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,27 +1,24 @@
|
||||
<?php
|
||||
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
$ds_in = "msg_recv";
|
||||
$ds_out = "msg_sent";
|
||||
$ds_in = 'msg_recv';
|
||||
$ds_out = 'msg_sent';
|
||||
|
||||
$graph_titel .= "::messages";
|
||||
$unit_text = "Messages/sec";
|
||||
$graph_titel .= '::messages';
|
||||
$unit_text = 'Messages/sec';
|
||||
|
||||
$colour_line_in = "008800FF";
|
||||
$colour_line_out = "000088FF";
|
||||
$colour_area_in = "CEFFCE66";
|
||||
$colour_area_out = "CECEFF66";
|
||||
$colour_area_in_max = "CC88CC";
|
||||
$colour_area_out_max = "FFEFAA";
|
||||
$colour_line_in = '008800FF';
|
||||
$colour_line_out = '000088FF';
|
||||
$colour_area_in = 'CEFFCE66';
|
||||
$colour_area_out = 'CECEFF66';
|
||||
$colour_area_in_max = 'CC88CC';
|
||||
$colour_area_out_max = 'FFEFAA';
|
||||
|
||||
$mailscanner_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$mailscanner_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mailscannerV2-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mailscanner_rrd))
|
||||
{
|
||||
$rrd_filename = $mailscanner_rrd;
|
||||
if (is_file($mailscanner_rrd)) {
|
||||
$rrd_filename = $mailscanner_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,30 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$unit_text = 'Messages/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mailscannerV2-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'spam' => array('descr' => 'Spam', 'colour' => 'FF8800'),
|
||||
'virus' => array('descr' => 'Virus', 'colour' => 'FF0000')
|
||||
);
|
||||
'spam' => array(
|
||||
'descr' => 'Spam',
|
||||
'colour' => 'FF8800',
|
||||
),
|
||||
'virus' => array(
|
||||
'descr' => 'Virus',
|
||||
'colour' => 'FF0000',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
$rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-memcached-".$app['app_id'].".rrd";
|
||||
if (is_file($rrd))
|
||||
{
|
||||
$rrd_filename = $rrd;
|
||||
$rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-memcached-'.$app['app_id'].'.rrd';
|
||||
if (is_file($rrd)) {
|
||||
$rrd_filename = $rrd;
|
||||
}
|
||||
?>
|
||||
|
@@ -1,25 +1,23 @@
|
||||
<?php
|
||||
|
||||
include("memcached.inc.php");
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'memcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
$ds_in = "cmd_set";
|
||||
$ds_out = "cmd_get";
|
||||
$ds_in = 'cmd_set';
|
||||
$ds_out = 'cmd_get';
|
||||
|
||||
$in_text = "Set";
|
||||
$out_text = "Get";
|
||||
$in_text = 'Set';
|
||||
$out_text = 'Get';
|
||||
|
||||
$graph_title .= ":: Commands";
|
||||
$unit_text = "Commands";
|
||||
$colour_line_in = "008800FF";
|
||||
$colour_line_out = "000088FF";
|
||||
$colour_area_in = "bEFFbEAA";
|
||||
$colour_area_out = "bEbEFFAA";
|
||||
$colour_area_in_max = "CC88CC";
|
||||
$colour_area_out_max = "FFEFAA";
|
||||
$graph_title .= ':: Commands';
|
||||
$unit_text = 'Commands';
|
||||
$colour_line_in = '008800FF';
|
||||
$colour_line_out = '000088FF';
|
||||
$colour_area_in = 'bEFFbEAA';
|
||||
$colour_area_out = 'bEbEFFAA';
|
||||
$colour_area_in_max = 'CC88CC';
|
||||
$colour_area_out_max = 'FFEFAA';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,34 +1,41 @@
|
||||
<?php
|
||||
|
||||
include("memcached.inc.php");
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'memcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Packets/sec";
|
||||
$array = array(
|
||||
'limit_maxbytes' => array('descr' => 'Capacity', 'colour' => '555555'),
|
||||
'bytes' => array('descr' => 'Used', 'colour' => 'cc0000', 'areacolour' => 'ff999955'),
|
||||
);
|
||||
$scale_min = 0;
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = 'Packets/sec';
|
||||
$array = array(
|
||||
'limit_maxbytes' => array(
|
||||
'descr' => 'Capacity',
|
||||
'colour' => '555555',
|
||||
),
|
||||
'bytes' => array(
|
||||
'descr' => 'Used',
|
||||
'colour' => 'cc0000',
|
||||
'areacolour' => 'ff999955',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
if (!empty($vars['areacolour'])) { $rrd_list[$i]['areacolour'] = $vars['areacolour']; }
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
if (!empty($vars['areacolour'])) {
|
||||
$rrd_list[$i]['areacolour'] = $vars['areacolour'];
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,33 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("memcached.inc.php");
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'memcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Items";
|
||||
$array = array(
|
||||
'curr_items' => array('descr' => 'Items', 'colour' => '555555'),
|
||||
);
|
||||
$scale_min = 0;
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = 'Items';
|
||||
$array = array(
|
||||
'curr_items' => array(
|
||||
'descr' => 'Items',
|
||||
'colour' => '555555',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
if (!empty($vars['areacolour'])) { $rrd_list[$i]['areacolour'] = $vars['areacolour']; }
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
if (!empty($vars['areacolour'])) {
|
||||
$rrd_list[$i]['areacolour'] = $vars['areacolour'];
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,20 +1,18 @@
|
||||
<?php
|
||||
|
||||
include("memcached.inc.php");
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'memcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$device = device_by_id_cache($vars['id']);
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "threads";
|
||||
$colour_area = "F6F6F6";
|
||||
$colour_line = "555555";
|
||||
$colour_area_max = "FFEE99";
|
||||
#$graph_max = 100;
|
||||
$unit_text = "Threads";
|
||||
$ds = 'threads';
|
||||
$colour_area = 'F6F6F6';
|
||||
$colour_line = '555555';
|
||||
$colour_area_max = 'FFEE99';
|
||||
// $graph_max = 100;
|
||||
$unit_text = 'Threads';
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,18 +1,16 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
include("memcached.inc.php");
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'memcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$device = device_by_id_cache($vars['id']);
|
||||
|
||||
$rrd_options .= " DEF:uptime=".$rrd_filename.":uptime:AVERAGE";
|
||||
$rrd_options .= " CDEF:cuptime=uptime,86400,/";
|
||||
$rrd_options .= ' DEF:uptime='.$rrd_filename.':uptime:AVERAGE';
|
||||
$rrd_options .= ' CDEF:cuptime=uptime,86400,/';
|
||||
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
|
||||
$rrd_options .= " AREA:cuptime#EEEEEE:Uptime";
|
||||
$rrd_options .= " LINE1.25:cuptime#36393D:";
|
||||
$rrd_options .= " GPRINT:cuptime:LAST:%6.2lf GPRINT:cuptime:AVERAGE:%6.2lf";
|
||||
$rrd_options .= ' AREA:cuptime#EEEEEE:Uptime';
|
||||
$rrd_options .= ' LINE1.25:cuptime#36393D:';
|
||||
$rrd_options .= ' GPRINT:cuptime:LAST:%6.2lf GPRINT:cuptime:AVERAGE:%6.2lf';
|
||||
$rrd_options .= " GPRINT:cuptime:MAX:%6.2lf 'GPRINT:cuptime:AVERAGE:%6.2lf\\n'";
|
||||
|
||||
?>
|
||||
|
@@ -1,37 +1,63 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('CDe' => array('descr' => 'Delete', 'colour' => '22FF22'),
|
||||
'CIt' => array('descr' => 'Insert', 'colour' => '0022FF'),
|
||||
'CISt' => array('descr' => 'Insert Select', 'colour' => 'FF0000'),
|
||||
'CLd' => array('descr' => 'Load Data', 'colour' => '00AAAA'),
|
||||
'CRe' => array('descr' => 'Replace', 'colour' => 'FF00FF'),
|
||||
'CRSt' => array('descr' => 'Replace Select', 'colour' => 'FFA500'),
|
||||
'CSt' => array('descr' => 'Select', 'colour' => 'CC0000'),
|
||||
'CUe' => array('descr' => 'Update', 'colour' => '0000CC'),
|
||||
'CUMi' => array('descr' => 'Update Multiple', 'colour' => '0080C0'),
|
||||
);
|
||||
$array = array(
|
||||
'CDe' => array(
|
||||
'descr' => 'Delete',
|
||||
'colour' => '22FF22',
|
||||
),
|
||||
'CIt' => array(
|
||||
'descr' => 'Insert',
|
||||
'colour' => '0022FF',
|
||||
),
|
||||
'CISt' => array(
|
||||
'descr' => 'Insert Select',
|
||||
'colour' => 'FF0000',
|
||||
),
|
||||
'CLd' => array(
|
||||
'descr' => 'Load Data',
|
||||
'colour' => '00AAAA',
|
||||
),
|
||||
'CRe' => array(
|
||||
'descr' => 'Replace',
|
||||
'colour' => 'FF00FF',
|
||||
),
|
||||
'CRSt' => array(
|
||||
'descr' => 'Replace Select',
|
||||
'colour' => 'FFA500',
|
||||
),
|
||||
'CSt' => array(
|
||||
'descr' => 'Select',
|
||||
'colour' => 'CC0000',
|
||||
),
|
||||
'CUe' => array(
|
||||
'descr' => 'Update',
|
||||
'colour' => '0000CC',
|
||||
),
|
||||
'CUMi' => array(
|
||||
'descr' => 'Update Multiple',
|
||||
'colour' => '0080C0',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
# $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
// $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Commands";
|
||||
$unit_text = 'Commands';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,36 +1,54 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('MaCs' => array('descr' => 'Max Connections', 'colour' => '22FF22'),
|
||||
'MUCs' => array('descr' => 'Max Used Connections', 'colour' => '0022FF'),
|
||||
'ACs' => array('descr' => 'Aborted Clients', 'colour' => 'FF0000'),
|
||||
'AdCs' => array('descr' => 'Aborted Connects', 'colour' => '0080C0'),
|
||||
'TCd' => array('descr' => 'Threads Connected', 'colour' => 'FF0000'),
|
||||
'Cs' => array('descr' => 'New Connections', 'colour' => '0080C0'),
|
||||
);
|
||||
$array = array(
|
||||
'MaCs' => array(
|
||||
'descr' => 'Max Connections',
|
||||
'colour' => '22FF22',
|
||||
),
|
||||
'MUCs' => array(
|
||||
'descr' => 'Max Used Connections',
|
||||
'colour' => '0022FF',
|
||||
),
|
||||
'ACs' => array(
|
||||
'descr' => 'Aborted Clients',
|
||||
'colour' => 'FF0000',
|
||||
),
|
||||
'AdCs' => array(
|
||||
'descr' => 'Aborted Connects',
|
||||
'colour' => '0080C0',
|
||||
),
|
||||
'TCd' => array(
|
||||
'descr' => 'Threads Connected',
|
||||
'colour' => 'FF0000',
|
||||
),
|
||||
'Cs' => array(
|
||||
'descr' => 'New Connections',
|
||||
'colour' => '0080C0',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
# $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
// $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections";
|
||||
$unit_text = 'Connections';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,32 +1,32 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('TOC' => array('descr' => 'Table Cache'),
|
||||
'OFs' => array('descr' => 'Open Files'),
|
||||
'OTs' => array('descr' => 'Open Tables'),
|
||||
'OdTs' => array('descr' => 'Opened Tables'),
|
||||
);
|
||||
$array = array(
|
||||
'TOC' => array('descr' => 'Table Cache'),
|
||||
'OFs' => array('descr' => 'Open Files'),
|
||||
'OTs' => array('descr' => 'Open Tables'),
|
||||
'OdTs' => array('descr' => 'Opened Tables'),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
# $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
// $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "";
|
||||
$unit_text = '';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,36 +1,37 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBPse' => 'Buffer Pool Size',
|
||||
'IBPDBp' => 'Database Pages',
|
||||
'IBPFe' => 'Free Pages',
|
||||
'IBPMps' => 'Modified Pages',
|
||||
);
|
||||
$array = array(
|
||||
'IBPse' => 'Buffer Pool Size',
|
||||
'IBPDBp' => 'Database Pages',
|
||||
'IBPFe' => 'Free Pages',
|
||||
'IBPMps' => 'Modified Pages',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Commands";
|
||||
$unit_text = 'Commands';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,36 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBRd' => 'Pages Read',
|
||||
'IBCd' => 'Pages Created',
|
||||
'IBWr' => 'Pages Written',
|
||||
);
|
||||
$array = array(
|
||||
'IBRd' => 'Pages Read',
|
||||
'IBCd' => 'Pages Created',
|
||||
'IBWr' => 'Pages Written',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "activity";
|
||||
$unit_text = 'activity';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,36 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBIIs' => 'Inserts',
|
||||
'IBIMRd' => 'Merged Records',
|
||||
'IBIMs' => 'Merges',
|
||||
);
|
||||
$array = array(
|
||||
'IBIIs' => 'Inserts',
|
||||
'IBIMRd' => 'Merged Records',
|
||||
'IBIMs' => 'Merges',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "";
|
||||
$unit_text = '';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
$mysql_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBIRd:AVERAGE ';
|
||||
@@ -35,5 +34,3 @@ $rrd_options .= 'LINE1:d#00AAAA:"File syncs " ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\\n" ';
|
||||
|
||||
?>
|
||||
|
@@ -1,39 +1,40 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBILog' => 'AIO Log',
|
||||
'IBISc' => 'AIO Sync',
|
||||
'IBIFLg' => 'Buf Pool Flush',
|
||||
'IBFBl' => 'Log Flushes',
|
||||
'IBIIAo' => 'Insert Buf AIO Read',
|
||||
'IBIAd' => 'Normal AIO Read',
|
||||
'IBIAe' => 'Normal AIO Writes',
|
||||
);
|
||||
$array = array(
|
||||
'IBILog' => 'AIO Log',
|
||||
'IBISc' => 'AIO Sync',
|
||||
'IBIFLg' => 'Buf Pool Flush',
|
||||
'IBFBl' => 'Log Flushes',
|
||||
'IBIIAo' => 'Insert Buf AIO Read',
|
||||
'IBIAd' => 'Normal AIO Read',
|
||||
'IBIAe' => 'Normal AIO Writes',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "";
|
||||
$unit_text = '';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
$mysql_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IDBLBSe:AVERAGE ';
|
||||
@@ -29,5 +28,3 @@ $rrd_options .= 'LINE1:c#0022FF:"KB Written " ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\\n" ';
|
||||
|
||||
?>
|
||||
|
@@ -1,36 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IDBRDd' => 'Deletes',
|
||||
'IDBRId' => 'Inserts',
|
||||
'IDBRRd' => 'Reads',
|
||||
'IDBRUd' => 'Updates',
|
||||
);
|
||||
$array = array(
|
||||
'IDBRDd' => 'Deletes',
|
||||
'IDBRId' => 'Inserts',
|
||||
'IDBRRd' => 'Reads',
|
||||
'IDBRUd' => 'Updates',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Rows";
|
||||
$unit_text = 'Rows';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBSRs' => 'Spin Rounds',
|
||||
'IBSWs' => 'Spin Waits',
|
||||
'IBOWs' => 'OS Waits',
|
||||
);
|
||||
$array = array(
|
||||
'IBSRs' => 'Spin Rounds',
|
||||
'IBSWs' => 'Spin Waits',
|
||||
'IBOWs' => 'OS Waits',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Semaphores";
|
||||
$unit_text = 'Semaphores';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,33 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('IBTNx' => 'Transactions created',
|
||||
);
|
||||
$array = array('IBTNx' => 'Transactions created');
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "transactions";
|
||||
$unit_text = 'transactions';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,36 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array( 'KRRs' => 'read requests',
|
||||
'KRs' => 'reads',
|
||||
'KWR' => 'write requests',
|
||||
'KWs' => 'writes',
|
||||
);
|
||||
$array = array(
|
||||
'KRRs' => 'read requests',
|
||||
'KRs' => 'reads',
|
||||
'KWR' => 'write requests',
|
||||
'KWs' => 'writes',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Keys";
|
||||
$unit_text = 'Keys';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,19 +1,16 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
$mysql_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$multiplier = 8;
|
||||
|
||||
$ds_in = "BRd";
|
||||
$ds_out = "BSt";
|
||||
$ds_in = 'BRd';
|
||||
$ds_out = 'BSt';
|
||||
|
||||
include("includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_data.inc.php';
|
||||
|
@@ -1,38 +1,52 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
$mysql_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$array = array('QCQICe' => array('descr' => 'Queries in cache', 'colour' => '22FF22'),
|
||||
'QCHs' => array('descr' => 'Cache hits', 'colour' => '0022FF'),
|
||||
'QCIs' => array('descr' => 'Inserts', 'colour' => 'FF0000'),
|
||||
'QCNCd' => array('descr' => 'Not cached', 'colour' => '00AAAA'),
|
||||
'QCLMPs' => array('descr' => 'Low-memory prunes', 'colour' => 'FF00FF'),
|
||||
);
|
||||
$array = array(
|
||||
'QCQICe' => array(
|
||||
'descr' => 'Queries in cache',
|
||||
'colour' => '22FF22',
|
||||
),
|
||||
'QCHs' => array(
|
||||
'descr' => 'Cache hits',
|
||||
'colour' => '0022FF',
|
||||
),
|
||||
'QCIs' => array(
|
||||
'descr' => 'Inserts',
|
||||
'colour' => 'FF0000',
|
||||
),
|
||||
'QCNCd' => array(
|
||||
'descr' => 'Not cached',
|
||||
'colour' => '00AAAA',
|
||||
),
|
||||
'QCLMPs' => array(
|
||||
'descr' => 'Low-memory prunes',
|
||||
'colour' => 'FF00FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
# $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
// $rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Commands";
|
||||
$unit_text = 'Commands';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,34 +1,35 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array( 'QCs' => 'Cache size',
|
||||
'QCeFy' => 'Free mem',
|
||||
);
|
||||
$array = array(
|
||||
'QCs' => 'Cache size',
|
||||
'QCeFy' => 'Free mem',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
$unit_text = 'Bytes';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,37 +1,38 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array( 'SFJn' => 'Full Join',
|
||||
'SFRJn' => 'Full Range',
|
||||
'SRe' => 'Range',
|
||||
'SRCk' => 'Range Check',
|
||||
'SSn' => 'Scan',
|
||||
);
|
||||
$array = array(
|
||||
'SFJn' => 'Full Join',
|
||||
'SFRJn' => 'Full Range',
|
||||
'SRe' => 'Range',
|
||||
'SRCk' => 'Range Check',
|
||||
'SSn' => 'Scan',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Queries";
|
||||
$unit_text = 'Queries';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,34 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array(
|
||||
'SQs' => 'Slow queries',
|
||||
);
|
||||
$array = array('SQs' => 'Slow queries');
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Queries";
|
||||
$unit_text = 'Queries';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,37 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array(
|
||||
'SRows' => 'Rows Sorted',
|
||||
'SRange' => 'Range',
|
||||
'SMPs' => 'Merge Passes',
|
||||
'SScan' => 'Scan',
|
||||
);
|
||||
'SRows' => 'Rows Sorted',
|
||||
'SRange' => 'Range',
|
||||
'SMPs' => 'Merge Passes',
|
||||
'SScan' => 'Scan',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "";
|
||||
$unit_text = '';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,51 +1,51 @@
|
||||
<?php
|
||||
|
||||
include('includes/graphs/common.inc.php');
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'-status.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'-status.rrd';
|
||||
|
||||
$array = array(
|
||||
'State_closing_tables' => 'd2',
|
||||
'State_copying_to_tmp_table' => 'd3',
|
||||
'State_end' => 'd4',
|
||||
'State_freeing_items' => 'd5',
|
||||
'State_init' => 'd6',
|
||||
'State_locked' => 'd7',
|
||||
'State_login' => 'd8',
|
||||
'State_preparing' => 'd9',
|
||||
'State_reading_from_net' => 'da',
|
||||
'State_sending_data' => 'db',
|
||||
'State_sorting_result' => 'dc',
|
||||
'State_statistics' => 'dd',
|
||||
'State_updating' => 'de',
|
||||
'State_writing_to_net' => 'df',
|
||||
'State_none' => 'dg',
|
||||
'State_other' => 'dh'
|
||||
'State_closing_tables' => 'd2',
|
||||
'State_copying_to_tmp_table' => 'd3',
|
||||
'State_end' => 'd4',
|
||||
'State_freeing_items' => 'd5',
|
||||
'State_init' => 'd6',
|
||||
'State_locked' => 'd7',
|
||||
'State_login' => 'd8',
|
||||
'State_preparing' => 'd9',
|
||||
'State_reading_from_net' => 'da',
|
||||
'State_sending_data' => 'db',
|
||||
'State_sorting_result' => 'dc',
|
||||
'State_statistics' => 'dd',
|
||||
'State_updating' => 'de',
|
||||
'State_writing_to_net' => 'df',
|
||||
'State_none' => 'dg',
|
||||
'State_other' => 'dh',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $vars => $ds)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $vars => $ds) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['descr'] = str_replace('_', ' ', $rrd_list[$i]['descr']);
|
||||
$rrd_list[$i]['descr'] = str_replace('State ', '', $rrd_list[$i]['descr']);
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['descr'] = str_replace("_", " ", $rrd_list[$i]['descr']);
|
||||
$rrd_list[$i]['descr'] = str_replace("State ", "", $rrd_list[$i]['descr']);
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "activity";
|
||||
$unit_text = 'activity';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,35 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array(
|
||||
'TLIe' => 'immed',
|
||||
'TLWd' => 'waited',
|
||||
);
|
||||
'TLIe' => 'immed',
|
||||
'TLWd' => 'waited',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Table locks";
|
||||
$unit_text = 'Table locks';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,36 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array(
|
||||
'CTMPDTs' => 'disk tables',
|
||||
'CTMPTs' => 'tables',
|
||||
'CTMPFs' => 'files',
|
||||
);
|
||||
'CTMPDTs' => 'disk tables',
|
||||
'CTMPTs' => 'tables',
|
||||
'CTMPFs' => 'files',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars)) {
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
}
|
||||
else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Temp";
|
||||
$unit_text = 'Temp';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -2,33 +2,45 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-nginx-".$app['app_id'].".rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-nginx-'.$app['app_id'].'.rrd';
|
||||
|
||||
$array = array('Reading' => array('descr' => 'Reading', 'colour' => '750F7DFF'),
|
||||
'Writing' => array('descr' => 'Writing', 'colour' => '00FF00FF'),
|
||||
'Waiting' => array('descr' => 'Waiting', 'colour' => '4444FFFF'),
|
||||
'Active' => array('descr' => 'Starting', 'colour' => '157419FF'),
|
||||
);
|
||||
$array = array(
|
||||
'Reading' => array(
|
||||
'descr' => 'Reading',
|
||||
'colour' => '750F7DFF',
|
||||
),
|
||||
'Writing' => array(
|
||||
'descr' => 'Writing',
|
||||
'colour' => '00FF00FF',
|
||||
),
|
||||
'Waiting' => array(
|
||||
'descr' => 'Waiting',
|
||||
'colour' => '4444FFFF',
|
||||
),
|
||||
'Active' => array(
|
||||
'descr' => 'Starting',
|
||||
'colour' => '157419FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Workers";
|
||||
$unit_text = 'Workers';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,25 +1,22 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-nginx-".$app['app_id'].".rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-nginx-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
if (is_file($rrd_filename)) {
|
||||
$rrd_options .= ' -b 1000 ';
|
||||
$rrd_options .= ' -l 0 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':Requests:AVERAGE';
|
||||
|
||||
$rrd_options .= " -b 1000 ";
|
||||
$rrd_options .= " -l 0 ";
|
||||
$rrd_options .= " DEF:a=".$rrd_filename.":Requests:AVERAGE";
|
||||
$rrd_options .= " COMMENT:'Requests Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " COMMENT:'Requests Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " AREA:a#98FB98";
|
||||
$rrd_options .= " LINE1.5:a#006400:'Requests '";
|
||||
$rrd_options .= " GPRINT:a:LAST:'%6.2lf %s'";
|
||||
$rrd_options .= " GPRINT:a:AVERAGE:'%6.2lf %s'";
|
||||
$rrd_options .= " GPRINT:a:MAX:'%6.2lf %s\\n'";
|
||||
} else {
|
||||
$error_msg = "Missing RRD";
|
||||
$rrd_options .= ' AREA:a#98FB98';
|
||||
$rrd_options .= " LINE1.5:a#006400:'Requests '";
|
||||
$rrd_options .= " GPRINT:a:LAST:'%6.2lf %s'";
|
||||
$rrd_options .= " GPRINT:a:AVERAGE:'%6.2lf %s'";
|
||||
$rrd_options .= " GPRINT:a:MAX:'%6.2lf %s\\n'";
|
||||
}
|
||||
else {
|
||||
$error_msg = 'Missing RRD';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "frequency";
|
||||
$colour_area = "F6F6F6";
|
||||
$colour_line = "B3D0DB";
|
||||
$colour_area_max = "FFEE99";
|
||||
$ds = 'frequency';
|
||||
$colour_area = 'F6F6F6';
|
||||
$colour_line = 'B3D0DB';
|
||||
$colour_area_max = 'FFEE99';
|
||||
$graph_max = 100;
|
||||
$unit_text = "Frequency";
|
||||
$ntpclient_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpclient-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Frequency';
|
||||
$ntpclient_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpclient-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($ntpclient_rrd))
|
||||
{
|
||||
$rrd_filename = $ntpclient_rrd;
|
||||
if (is_file($ntpclient_rrd)) {
|
||||
$rrd_filename = $ntpclient_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,34 +1,31 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Milliseconds";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpclient-".$app['app_id'].".rrd";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Milliseconds';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpclient-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'offset' => array('descr' => 'Offset'),
|
||||
'jitter' => array('descr' => 'Jitter'),
|
||||
'noise' => array('descr' => 'Noise'),
|
||||
'stability' => array('descr' => 'Stability')
|
||||
);
|
||||
'offset' => array('descr' => 'Offset'),
|
||||
'jitter' => array('descr' => 'Jitter'),
|
||||
'noise' => array('descr' => 'Noise'),
|
||||
'stability' => array('descr' => 'Stability'),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,35 +1,30 @@
|
||||
<?php
|
||||
|
||||
// $units = "b";
|
||||
// $total_units = "B";
|
||||
// $colours_in = "greens";
|
||||
//$multiplier = "0";
|
||||
// $colours_out = "blues";
|
||||
// $units = "b";
|
||||
// $total_units = "B";
|
||||
// $colours_in = "greens";
|
||||
// $multiplier = "0";
|
||||
// $colours_out = "blues";
|
||||
$nototal = 1;
|
||||
|
||||
$nototal = 1;
|
||||
$ds_in = 'packets_recv';
|
||||
$ds_out = 'packets_sent';
|
||||
|
||||
$ds_in = "packets_recv";
|
||||
$ds_out = "packets_sent";
|
||||
$graph_title .= '::packets';
|
||||
$unit_text = 'Packets';
|
||||
|
||||
$graph_title .= "::packets";
|
||||
$unit_text = "Packets";
|
||||
$colour_line_in = '330033';
|
||||
$colour_line_out = 'FF6600';
|
||||
$colour_area_in = 'AA66AA';
|
||||
$colour_area_out = 'FFDD88';
|
||||
$colour_area_in_max = 'CC88CC';
|
||||
$colour_area_out_max = 'FFEFAA';
|
||||
|
||||
$colour_line_in = "330033";
|
||||
$colour_line_out = "FF6600";
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_area_in_max = "CC88CC";
|
||||
$colour_area_out_max = "FFEFAA";
|
||||
$ntpdserver_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
|
||||
$ntpdserver_rrd = $config['rrd_dir'] . "/". $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
|
||||
if (is_file($ntpdserver_rrd))
|
||||
{
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
if (is_file($ntpdserver_rrd)) {
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
}
|
||||
|
||||
// include("includes/graphs/generic_bits.inc.php");
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
// include("includes/graphs/generic_bits.inc.php");
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,34 +1,31 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Buffer";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Buffer';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'buffer_recv' => array('descr' => 'Received'),
|
||||
'buffer_used' => array('descr' => 'Used'),
|
||||
'buffer_free' => array('descr' => 'Free')
|
||||
);
|
||||
'buffer_recv' => array('descr' => 'Received'),
|
||||
'buffer_used' => array('descr' => 'Used'),
|
||||
'buffer_free' => array('descr' => 'Free'),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "frequency";
|
||||
$colour_area = "F6F6F6";
|
||||
$colour_line = "B3D0DB";
|
||||
$colour_area_max = "FFEE99";
|
||||
$ds = 'frequency';
|
||||
$colour_area = 'F6F6F6';
|
||||
$colour_line = 'B3D0DB';
|
||||
$colour_area_max = 'FFEE99';
|
||||
$graph_max = 100;
|
||||
$unit_text = "Frequency";
|
||||
$ntpdserver_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Frequency';
|
||||
$ntpdserver_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($ntpdserver_rrd))
|
||||
{
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
if (is_file($ntpdserver_rrd)) {
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,34 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Packets";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Packets';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'packets_drop' => array('descr' => 'Dropped', 'colour' => '880000FF'),
|
||||
'packets_ignore' => array('descr' => 'Ignored', 'colour' => 'FF8800FF')
|
||||
);
|
||||
'packets_drop' => array(
|
||||
'descr' => 'Dropped',
|
||||
'colour' => '880000FF',
|
||||
),
|
||||
'packets_ignore' => array(
|
||||
'descr' => 'Ignored',
|
||||
'colour' => 'FF8800FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
// include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
// include("includes/graphs/generic_multi_line.inc.php");
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,34 +1,31 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Milliseconds";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Milliseconds';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'offset' => array('descr' => 'Offset'),
|
||||
'jitter' => array('descr' => 'Jitter'),
|
||||
'noise' => array('descr' => 'Noise'),
|
||||
'stability' => array('descr' => 'Stability')
|
||||
);
|
||||
'offset' => array('descr' => 'Offset'),
|
||||
'jitter' => array('descr' => 'Jitter'),
|
||||
'noise' => array('descr' => 'Noise'),
|
||||
'stability' => array('descr' => 'Stability'),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "stratum";
|
||||
$colour_area = "FFCECE";
|
||||
$colour_line = "880000";
|
||||
$colour_area_max = "FFCCCC";
|
||||
$ds = 'stratum';
|
||||
$colour_area = 'FFCECE';
|
||||
$colour_line = '880000';
|
||||
$colour_area_max = 'FFCCCC';
|
||||
$graph_max = 0;
|
||||
$unit_text = "Stratum";
|
||||
$ntpdserver_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Stratum';
|
||||
$ntpdserver_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($ntpdserver_rrd))
|
||||
{
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
if (is_file($ntpdserver_rrd)) {
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,40 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "uptime";
|
||||
//$colour_area = "CEFFCE";
|
||||
//$colour_line = "008800";
|
||||
$colour_area = "EEEEEE";
|
||||
$colour_line = "36393D";
|
||||
$colour_area_max = "FFEE99";
|
||||
$scale_min = 0;
|
||||
$ds = 'uptime';
|
||||
// $colour_area = "CEFFCE";
|
||||
// $colour_line = "008800";
|
||||
$colour_area = 'EEEEEE';
|
||||
$colour_line = '36393D';
|
||||
$colour_area_max = 'FFEE99';
|
||||
$graph_max = 0;
|
||||
$unit_text = "Seconds";
|
||||
$ntpdserver_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-ntpdserver-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Seconds';
|
||||
$ntpdserver_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-ntpdserver-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($ntpdserver_rrd))
|
||||
{
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
if (is_file($ntpdserver_rrd)) {
|
||||
$rrd_filename = $ntpdserver_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_options .= " DEF:uptime=".$rrd_filename.":uptime:AVERAGE";
|
||||
$rrd_options .= " CDEF:cuptime=uptime,86400,/";
|
||||
$rrd_options .= ' DEF:uptime='.$rrd_filename.':uptime:AVERAGE';
|
||||
$rrd_options .= ' CDEF:cuptime=uptime,86400,/';
|
||||
|
||||
if ($width<224)
|
||||
{
|
||||
$rrd_options .= " 'COMMENT:Days Cur Min Max Avg\\n'";
|
||||
} else {
|
||||
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
|
||||
if ($width < 224) {
|
||||
$rrd_options .= " 'COMMENT:Days Cur Min Max Avg\\n'";
|
||||
}
|
||||
else {
|
||||
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
|
||||
}
|
||||
|
||||
$rrd_options .= " AREA:cuptime#".$colour_area.":";
|
||||
$rrd_options .= " LINE1.25:cuptime#".$colour_line.":Uptime";
|
||||
$rrd_options .= " GPRINT:cuptime:LAST:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:MAX:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf\\n";
|
||||
|
||||
?>
|
||||
$rrd_options .= ' AREA:cuptime#'.$colour_area.':';
|
||||
$rrd_options .= ' LINE1.25:cuptime#'.$colour_line.':Uptime';
|
||||
$rrd_options .= ' GPRINT:cuptime:LAST:%6.2lf';
|
||||
$rrd_options .= ' GPRINT:cuptime:AVERAGE:%6.2lf';
|
||||
$rrd_options .= ' GPRINT:cuptime:MAX:%6.2lf';
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf\\n";
|
||||
|
@@ -1,34 +1,40 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "red";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$colours = 'red';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'corruptPackets' => array('descr' => 'Corrupt', 'colour' => 'FF8800FF'),
|
||||
'servfailPackets' => array('descr' => 'Failed', 'colour' => 'FF0000FF'),
|
||||
'q_timedout' => array('descr' => 'Timedout', 'colour' => 'FFFF00FF'),
|
||||
);
|
||||
'corruptPackets' => array(
|
||||
'descr' => 'Corrupt',
|
||||
'colour' => 'FF8800FF',
|
||||
),
|
||||
'servfailPackets' => array(
|
||||
'descr' => 'Failed',
|
||||
'colour' => 'FF0000FF',
|
||||
),
|
||||
'q_timedout' => array(
|
||||
'descr' => 'Timedout',
|
||||
'colour' => 'FFFF00FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "latency";
|
||||
$colour_area = "F6F6F6";
|
||||
$colour_line = "B3D0DB";
|
||||
$colour_area_max = "FFEE99";
|
||||
$ds = 'latency';
|
||||
$colour_area = 'F6F6F6';
|
||||
$colour_line = 'B3D0DB';
|
||||
$colour_area_max = 'FFEE99';
|
||||
$graph_max = 100;
|
||||
$unit_text = "Latency";
|
||||
$powerdns_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Latency';
|
||||
$powerdns_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($powerdns_rrd))
|
||||
{
|
||||
$rrd_filename = $powerdns_rrd;
|
||||
if (is_file($powerdns_rrd)) {
|
||||
$rrd_filename = $powerdns_rrd;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,34 +1,40 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "blue";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$colours = 'blue';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'pc_hit' => array('descr' => 'Hits', 'colour' => '008800FF'),
|
||||
'pc_miss' => array('descr' => 'Misses', 'colour' => '880000FF'),
|
||||
'pc_size' => array('descr' => 'Size', 'colour' => '006699FF'),
|
||||
);
|
||||
'pc_hit' => array(
|
||||
'descr' => 'Hits',
|
||||
'colour' => '008800FF',
|
||||
),
|
||||
'pc_miss' => array(
|
||||
'descr' => 'Misses',
|
||||
'colour' => '880000FF',
|
||||
),
|
||||
'pc_size' => array(
|
||||
'descr' => 'Size',
|
||||
'colour' => '006699FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,44 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'q_tcpAnswers' => array('descr' => 'TCP Answers', 'colour' => '008800FF'),
|
||||
'q_tcpQueries' => array('descr' => 'TCP Queries', 'colour' => '00FF00FF'),
|
||||
'q_udpAnswers' => array('descr' => 'UDP Answers', 'colour' => '336699FF'),
|
||||
'q_udpQueries' => array('descr' => 'UDP Queries', 'colour' => '6699CCFF'),
|
||||
);
|
||||
'q_tcpAnswers' => array(
|
||||
'descr' => 'TCP Answers',
|
||||
'colour' => '008800FF',
|
||||
),
|
||||
'q_tcpQueries' => array(
|
||||
'descr' => 'TCP Queries',
|
||||
'colour' => '00FF00FF',
|
||||
),
|
||||
'q_udpAnswers' => array(
|
||||
'descr' => 'UDP Answers',
|
||||
'colour' => '336699FF',
|
||||
),
|
||||
'q_udpQueries' => array(
|
||||
'descr' => 'UDP Queries',
|
||||
'colour' => '6699CCFF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,35 +1,44 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$colours = 'mixed';
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'q_udp4Answers' => array('descr' => 'UDP4 Answers', 'colour' => '00008888'),
|
||||
'q_udp4Queries' => array('descr' => 'UDP4 Queries', 'colour' => '000088FF'),
|
||||
'q_udp6Answers' => array('descr' => 'UDP6 Answers', 'colour' => '88000088'),
|
||||
'q_udp6Queries' => array('descr' => 'UDP6 Queries', 'colour' => '880000FF'),
|
||||
);
|
||||
'q_udp4Answers' => array(
|
||||
'descr' => 'UDP4 Answers',
|
||||
'colour' => '00008888',
|
||||
),
|
||||
'q_udp4Queries' => array(
|
||||
'descr' => 'UDP4 Queries',
|
||||
'colour' => '000088FF',
|
||||
),
|
||||
'q_udp6Answers' => array(
|
||||
'descr' => 'UDP6 Answers',
|
||||
'colour' => '88000088',
|
||||
),
|
||||
'q_udp6Queries' => array(
|
||||
'descr' => 'UDP6 Queries',
|
||||
'colour' => '880000FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -1,33 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'qc_miss' => array('descr' => 'Misses', 'colour' => '750F7DFF'),
|
||||
'qc_hit' => array('descr' => 'Hits', 'colour' => '00FF00FF'),
|
||||
);
|
||||
'qc_miss' => array(
|
||||
'descr' => 'Misses',
|
||||
'colour' => '750F7DFF',
|
||||
),
|
||||
'qc_hit' => array(
|
||||
'descr' => 'Hits',
|
||||
'colour' => '00FF00FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,33 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 0;
|
||||
$unit_text = "Packets/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-powerdns-".$app['app_id'].".rrd";
|
||||
$unit_text = 'Packets/sec';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-powerdns-'.$app['app_id'].'.rrd';
|
||||
$array = array(
|
||||
'rec_questions' => array('descr' => 'Questions', 'colour' => '6699CCFF'),
|
||||
'rec_answers' => array('descr' => 'Answers', 'colour' => '336699FF'),
|
||||
);
|
||||
'rec_questions' => array(
|
||||
'descr' => 'Questions',
|
||||
'colour' => '6699CCFF',
|
||||
),
|
||||
'rec_answers' => array(
|
||||
'descr' => 'Answers',
|
||||
'colour' => '336699FF',
|
||||
),
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $vars) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $vars['colour'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "file missing: $file";
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
@@ -1,27 +1,25 @@
|
||||
<?php
|
||||
|
||||
$units = "b";
|
||||
$total_units = "B";
|
||||
$colours_in = "greens";
|
||||
//$multiplier = "0";
|
||||
$colours_out = "blues";
|
||||
$units = 'b';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
// $multiplier = "0";
|
||||
$colours_out = 'blues';
|
||||
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
$ds_in = "traf_in";
|
||||
$ds_out = "traf_out";
|
||||
$ds_in = 'traf_in';
|
||||
$ds_out = 'traf_out';
|
||||
|
||||
$graph_title .= "::bits";
|
||||
$graph_title .= '::bits';
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "CDEB8B";
|
||||
$colour_area_out = "C3D9FF";
|
||||
$colour_line_in = '006600';
|
||||
$colour_line_out = '000099';
|
||||
$colour_area_in = 'CDEB8B';
|
||||
$colour_area_out = 'C3D9FF';
|
||||
|
||||
$rrddir = $config['rrd_dir']."/".$device['hostname'];
|
||||
$hostname = (isset($_GET['hostname']) ? $_GET['hostname'] : "unkown");
|
||||
$rrd_filename = $rrddir."/app-shoutcast-".$app['app_id']."-".$hostname.".rrd";
|
||||
$rrddir = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
$hostname = (isset($_GET['hostname']) ? $_GET['hostname'] : 'unkown');
|
||||
$rrd_filename = $rrddir.'/app-shoutcast-'.$app['app_id'].'-'.$hostname.'.rrd';
|
||||
|
||||
include("includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_data.inc.php';
|
||||
|
@@ -2,55 +2,49 @@
|
||||
|
||||
$device = device_by_id_cache($vars['id']);
|
||||
|
||||
$units = "b";
|
||||
$total_units = "B";
|
||||
$colours_in = "greens";
|
||||
$multiplier = "8";
|
||||
$colours_out = "blues";
|
||||
$units = 'b';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = '8';
|
||||
$colours_out = 'blues';
|
||||
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
$ds_in = "traf_in";
|
||||
$ds_out = "traf_out";
|
||||
$ds_in = 'traf_in';
|
||||
$ds_out = 'traf_out';
|
||||
|
||||
$graph_title = "Traffic Statistic";
|
||||
$graph_title = 'Traffic Statistic';
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "CDEB8B";
|
||||
$colour_area_out = "C3D9FF";
|
||||
$colour_line_in = '006600';
|
||||
$colour_line_out = '000099';
|
||||
$colour_area_in = 'CDEB8B';
|
||||
$colour_area_out = 'C3D9FF';
|
||||
|
||||
$rrddir = $config['rrd_dir']."/".$device['hostname'];
|
||||
$files = array();
|
||||
$i = 0;
|
||||
$rrddir = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
$files = array();
|
||||
$i = 0;
|
||||
|
||||
if ($handle = opendir($rrddir))
|
||||
{
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
if ($file != "." && $file != "..")
|
||||
if ($handle = opendir($rrddir)) {
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
if (eregi("app-shoutcast-".$app['app_id'], $file))
|
||||
{
|
||||
array_push($files, $file);
|
||||
}
|
||||
if ($file != '.' && $file != '..') {
|
||||
if (eregi('app-shoutcast-'.$app['app_id'], $file)) {
|
||||
array_push($files, $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($files as $id => $file)
|
||||
{
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
$rrd_filenames[] = $rrddir."/".$file;
|
||||
$rrd_list[$i]['filename'] = $rrddir."/".$file;
|
||||
$rrd_list[$i]['descr'] = $host.":".$port;
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
foreach ($files as $id => $file) {
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
$rrd_filenames[] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['filename'] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['descr'] = $host.':'.$port;
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_bits_separated.inc.php';
|
||||
|
@@ -2,103 +2,106 @@
|
||||
|
||||
$device = device_by_id_cache($vars['id']);
|
||||
|
||||
//$colour = "random";
|
||||
$unit_text = "ShoutCast Server";
|
||||
$total_text = "Total of all ShoutCast Servers";
|
||||
// $colour = "random";
|
||||
$unit_text = 'ShoutCast Server';
|
||||
$total_text = 'Total of all ShoutCast Servers';
|
||||
$nototal = 0;
|
||||
|
||||
$rrddir = $config['rrd_dir']."/".$device['hostname'];
|
||||
$files = array();
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$rrddir = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
$files = array();
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if ($handle = opendir($rrddir))
|
||||
{
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
if ($file != "." && $file != "..")
|
||||
if ($handle = opendir($rrddir)) {
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
if (eregi("app-shoutcast-".$app['app_id'], $file))
|
||||
{
|
||||
array_push($files, $file);
|
||||
}
|
||||
if ($file != '.' && $file != '..') {
|
||||
if (eregi('app-shoutcast-'.$app['app_id'], $file)) {
|
||||
array_push($files, $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($files as $id => $file)
|
||||
{
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
$rrd_filenames[] = $rrddir."/".$file;
|
||||
$rrd_list[$i]['filename'] = $rrddir."/".$file;
|
||||
$rrd_list[$i]['descr'] = $host.":".$port;
|
||||
$rrd_list[$i]['colour'] = $colour;
|
||||
$i++;
|
||||
foreach ($files as $id => $file) {
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
$rrd_filenames[] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['filename'] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['descr'] = $host.':'.$port;
|
||||
$rrd_list[$i]['colour'] = $colour;
|
||||
$i++;
|
||||
}
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
if ($width > "500")
|
||||
{
|
||||
$descr_len = 38;
|
||||
} else {
|
||||
$descr_len = 8;
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
if ($width > '500') {
|
||||
$descr_len = 38;
|
||||
}
|
||||
else {
|
||||
$descr_len = 8;
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
}
|
||||
|
||||
if ($width > "500")
|
||||
{
|
||||
$rrd_options .= " COMMENT:\"".substr(str_pad($unit_text, $descr_len+2), 0, $descr_len+2)." Current Unique Average Peak\\n\"";
|
||||
} else {
|
||||
$rrd_options .= " COMMENT:\"".substr(str_pad($unit_text, $descr_len+5), 0, $descr_len+5)." Now Unique Average Peak\\n\"";
|
||||
if ($width > '500') {
|
||||
$rrd_options .= ' COMMENT:"'.substr(str_pad($unit_text, ($descr_len + 2)), 0, ($descr_len + 2))." Current Unique Average Peak\\n\"";
|
||||
}
|
||||
else {
|
||||
$rrd_options .= ' COMMENT:"'.substr(str_pad($unit_text, ($descr_len + 5)), 0, ($descr_len + 5))." Now Unique Average Peak\\n\"";
|
||||
}
|
||||
|
||||
foreach ($rrd_list as $rrd)
|
||||
{
|
||||
$colours = (isset($rrd['colour']) ? $rrd['colour'] : "default");
|
||||
$strlen = ((strlen($rrd['descr'])<$descr_len) ? ($descr_len - strlen($rrd['descr'])) : "0");
|
||||
$descr = (isset($rrd['descr']) ? rrdtool_escape($rrd['descr'], $desc_len+$strlen) : "Unkown");
|
||||
for ($z=0; $z<$strlen; $z++) { $descr .= " "; }
|
||||
if ($i) { $stack = "STACK"; }
|
||||
foreach ($rrd_list as $rrd) {
|
||||
$colours = (isset($rrd['colour']) ? $rrd['colour'] : 'default');
|
||||
$strlen = ((strlen($rrd['descr']) < $descr_len) ? ($descr_len - strlen($rrd['descr'])) : '0');
|
||||
$descr = (isset($rrd['descr']) ? rrdtool_escape($rrd['descr'], ($desc_len + $strlen)) : 'Unkown');
|
||||
for ($z = 0; $z < $strlen;
|
||||
$z++) {
|
||||
$descr .= ' ';
|
||||
}
|
||||
|
||||
if ($i) {
|
||||
$stack = 'STACK';
|
||||
}
|
||||
|
||||
$colour = $config['graph_colours'][$colours][$x];
|
||||
$rrd_options .= " DEF:cur".$x."=".$rrd['filename'].":current:AVERAGE";
|
||||
$rrd_options .= " DEF:peak".$x."=".$rrd['filename'].":peak:MAX";
|
||||
$rrd_options .= " DEF:unique".$x."=".$rrd['filename'].":unique:AVERAGE";
|
||||
$rrd_options .= " VDEF:avg".$x."=cur".$x.",AVERAGE";
|
||||
$rrd_options .= " AREA:cur".$x."#".$colour.":\"".$descr."\":$stack";
|
||||
$rrd_options .= " GPRINT:cur".$x.":LAST:\"%6.2lf\"";
|
||||
$rrd_options .= " GPRINT:unique".$x.":LAST:\"%6.2lf%s\"";
|
||||
$rrd_options .= " GPRINT:avg".$x.":\"%6.2lf\"";
|
||||
$rrd_options .= " GPRINT:peak".$x.":LAST:\"%6.2lf\"";
|
||||
$rrd_options .= ' DEF:cur'.$x.'='.$rrd['filename'].':current:AVERAGE';
|
||||
$rrd_options .= ' DEF:peak'.$x.'='.$rrd['filename'].':peak:MAX';
|
||||
$rrd_options .= ' DEF:unique'.$x.'='.$rrd['filename'].':unique:AVERAGE';
|
||||
$rrd_options .= ' VDEF:avg'.$x.'=cur'.$x.',AVERAGE';
|
||||
$rrd_options .= ' AREA:cur'.$x.'#'.$colour.':"'.$descr."\":$stack";
|
||||
$rrd_options .= ' GPRINT:cur'.$x.':LAST:"%6.2lf"';
|
||||
$rrd_options .= ' GPRINT:unique'.$x.':LAST:"%6.2lf%s"';
|
||||
$rrd_options .= ' GPRINT:avg'.$x.':"%6.2lf"';
|
||||
$rrd_options .= ' GPRINT:peak'.$x.':LAST:"%6.2lf"';
|
||||
$rrd_options .= " COMMENT:\"\\n\"";
|
||||
if ($x)
|
||||
{
|
||||
$totcur .= ",cur".$x.",+";
|
||||
$totpeak .= ",peak".$x.",+";
|
||||
$totunique .= ",unique".$x.",+";
|
||||
if ($x) {
|
||||
$totcur .= ',cur'.$x.',+';
|
||||
$totpeak .= ',peak'.$x.',+';
|
||||
$totunique .= ',unique'.$x.',+';
|
||||
}
|
||||
$x = (($x<count($config['graph_colours'][$colours])-1) ? $x+1 : 0);
|
||||
//$x++;
|
||||
}
|
||||
|
||||
if (!$nototal)
|
||||
{
|
||||
$strlen = ((strlen($total_text)<$descr_len) ? ($descr_len - strlen($total_text)) : "0");
|
||||
$descr = (isset($total_text) ? rrdtool_escape($total_text, $desc_len+$strlen) : "Total");
|
||||
$colour = $config['graph_colours'][$colours][$x];
|
||||
for ($z=0; $z<$strlen; $z++) { $descr .= " "; }
|
||||
$rrd_options .= " CDEF:totcur=cur0".$totcur;
|
||||
$rrd_options .= " CDEF:totunique=unique0".$totunique;
|
||||
$rrd_options .= " CDEF:totpeak=peak0".$totpeak;
|
||||
$rrd_options .= " VDEF:totavg=totcur,AVERAGE";
|
||||
$rrd_options .= " LINE2:totcur#".$colour.":\"".$descr."\"";
|
||||
$rrd_options .= " GPRINT:totcur:LAST:\"%6.2lf\"";
|
||||
$rrd_options .= " GPRINT:totunique:LAST:\"%6.2lf%s\"";
|
||||
$rrd_options .= " GPRINT:totavg:\"%6.2lf\"";
|
||||
$rrd_options .= " GPRINT:totpeak:LAST:\"%6.2lf\"";
|
||||
$rrd_options .= " COMMENT:\"\\n\"";
|
||||
}
|
||||
$x = (($x < count($config['graph_colours'][$colours]) - 1) ? $x + 1 : 0);
|
||||
// $x++;
|
||||
}//end foreach
|
||||
|
||||
?>
|
||||
if (!$nototal) {
|
||||
$strlen = ((strlen($total_text) < $descr_len) ? ($descr_len - strlen($total_text)) : '0');
|
||||
$descr = (isset($total_text) ? rrdtool_escape($total_text, ($desc_len + $strlen)) : 'Total');
|
||||
$colour = $config['graph_colours'][$colours][$x];
|
||||
for ($z = 0; $z < $strlen;
|
||||
$z++) {
|
||||
$descr .= ' ';
|
||||
}
|
||||
|
||||
$rrd_options .= ' CDEF:totcur=cur0'.$totcur;
|
||||
$rrd_options .= ' CDEF:totunique=unique0'.$totunique;
|
||||
$rrd_options .= ' CDEF:totpeak=peak0'.$totpeak;
|
||||
$rrd_options .= ' VDEF:totavg=totcur,AVERAGE';
|
||||
$rrd_options .= ' LINE2:totcur#'.$colour.':"'.$descr.'"';
|
||||
$rrd_options .= ' GPRINT:totcur:LAST:"%6.2lf"';
|
||||
$rrd_options .= ' GPRINT:totunique:LAST:"%6.2lf%s"';
|
||||
$rrd_options .= ' GPRINT:totavg:"%6.2lf"';
|
||||
$rrd_options .= ' GPRINT:totpeak:LAST:"%6.2lf"';
|
||||
$rrd_options .= " COMMENT:\"\\n\"";
|
||||
}
|
||||
|
@@ -1,45 +1,43 @@
|
||||
<?php
|
||||
|
||||
$rrddir = $config['rrd_dir']."/".$device['hostname'];
|
||||
$hostname = (isset($_GET['hostname']) ? $_GET['hostname'] : "unkown");
|
||||
$rrd_filename = $rrddir."/app-shoutcast-".$app['app_id']."-".$hostname.".rrd";
|
||||
$rrddir = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
$hostname = (isset($_GET['hostname']) ? $_GET['hostname'] : 'unkown');
|
||||
$rrd_filename = $rrddir.'/app-shoutcast-'.$app['app_id'].'-'.$hostname.'.rrd';
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_options .= " DEF:cur=".$rrd_filename.":current:AVERAGE";
|
||||
$rrd_options .= " DEF:max=".$rrd_filename.":max:MAX";
|
||||
//$rrd_options .= " DEF:bit=".$rrd_filename.":bitrate:LAST";
|
||||
$rrd_options .= " DEF:bit=".$rrd_filename.":bitrate:MAX";
|
||||
$rrd_options .= " DEF:peak=".$rrd_filename.":peak:MAX";
|
||||
$rrd_options .= " DEF:unique=".$rrd_filename.":unique:AVERAGE";
|
||||
$rrd_options .= " DEF:status=".$rrd_filename.":status:AVERAGE";
|
||||
$rrd_options .= " CDEF:peakm=peak,1,-";
|
||||
$rrd_options .= " VDEF:avg=cur,AVERAGE";
|
||||
$rrd_options .= " VDEF:peakh=peakm,MAXIMUM";
|
||||
$rrd_options .= " CDEF:bitrate=bit,8,*";
|
||||
$rrd_options .= " CDEF:server=status,UN,1,0,IF";
|
||||
$rrd_options .= " CDEF:server_offline=status,1,LT,1,UNKN,IF";
|
||||
$rrd_options .= " CDEF:stream=max,UN,1,0,IF";
|
||||
$rrd_options .= " CDEF:stream_offline=max,1,LT,1,UNKN,IF";
|
||||
$rrd_options .= " AREA:cur#63C2FEFF:\"Current Listeners\"";
|
||||
$rrd_options .= ' DEF:cur='.$rrd_filename.':current:AVERAGE';
|
||||
$rrd_options .= ' DEF:max='.$rrd_filename.':max:MAX';
|
||||
// $rrd_options .= " DEF:bit=".$rrd_filename.":bitrate:LAST";
|
||||
$rrd_options .= ' DEF:bit='.$rrd_filename.':bitrate:MAX';
|
||||
$rrd_options .= ' DEF:peak='.$rrd_filename.':peak:MAX';
|
||||
$rrd_options .= ' DEF:unique='.$rrd_filename.':unique:AVERAGE';
|
||||
$rrd_options .= ' DEF:status='.$rrd_filename.':status:AVERAGE';
|
||||
$rrd_options .= ' CDEF:peakm=peak,1,-';
|
||||
$rrd_options .= ' VDEF:avg=cur,AVERAGE';
|
||||
$rrd_options .= ' VDEF:peakh=peakm,MAXIMUM';
|
||||
$rrd_options .= ' CDEF:bitrate=bit,8,*';
|
||||
$rrd_options .= ' CDEF:server=status,UN,1,0,IF';
|
||||
$rrd_options .= ' CDEF:server_offline=status,1,LT,1,UNKN,IF';
|
||||
$rrd_options .= ' CDEF:stream=max,UN,1,0,IF';
|
||||
$rrd_options .= ' CDEF:stream_offline=max,1,LT,1,UNKN,IF';
|
||||
$rrd_options .= ' AREA:cur#63C2FEFF:"Current Listeners"';
|
||||
|
||||
if ($width >= 355)
|
||||
{
|
||||
$rrd_options .= " GPRINT:cur:LAST:\"\:%8.2lf\"";
|
||||
$rrd_options .= " GPRINT:max:LAST:\"from%8.2lf\"";
|
||||
$rrd_options .= " GPRINT:bitrate:LAST:\"(bitrate\:%8.2lf%s\"";
|
||||
$rrd_options .= " COMMENT:\")\\n\"";
|
||||
} else {
|
||||
$rrd_options .= " GPRINT:cur:LAST:\"\:%8.2lf\\n\"";
|
||||
if ($width >= 355) {
|
||||
$rrd_options .= ' GPRINT:cur:LAST:"\:%8.2lf"';
|
||||
$rrd_options .= ' GPRINT:max:LAST:"from%8.2lf"';
|
||||
$rrd_options .= ' GPRINT:bitrate:LAST:"(bitrate\:%8.2lf%s"';
|
||||
$rrd_options .= " COMMENT:\")\\n\"";
|
||||
}
|
||||
else {
|
||||
$rrd_options .= " GPRINT:cur:LAST:\"\:%8.2lf\\n\"";
|
||||
}
|
||||
|
||||
$rrd_options .= " AREA:unique#AADEFEFF:\"Unique Listeners \"";
|
||||
$rrd_options .= ' AREA:unique#AADEFEFF:"Unique Listeners "';
|
||||
$rrd_options .= " GPRINT:unique:LAST:\"\:%8.2lf%s\\n\"";
|
||||
$rrd_options .= " HRULE:avg#FF9000FF:\"Average Listeners\"";
|
||||
$rrd_options .= ' HRULE:avg#FF9000FF:"Average Listeners"';
|
||||
$rrd_options .= " GPRINT:avg:\"\:%8.2lf\\n\"";
|
||||
$rrd_options .= " LINE1:peak#C000FFFF:\"Peak Listeners \"";
|
||||
$rrd_options .= ' LINE1:peak#C000FFFF:"Peak Listeners "';
|
||||
$rrd_options .= " GPRINT:peak:LAST:\"\:%8.2lf\\n\"";
|
||||
$rrd_options .= " TICK:stream_offline#B4FF00FF:1.0:\"Streaming client offline\\n\"";
|
||||
$rrd_options .= " TICK:server_offline".$warn_colour_b."FF:1.0:\"Streaming server offline\"";
|
||||
|
||||
?>
|
||||
$rrd_options .= ' TICK:server_offline'.$warn_colour_b.'FF:1.0:"Streaming server offline"';
|
||||
|
@@ -1,18 +1,17 @@
|
||||
<?php
|
||||
|
||||
if ($_GET['id'] && is_numeric($_GET['id'])) { $atm_vp_id = $_GET['id']; }
|
||||
|
||||
$vp = dbFetchRow("SELECT * FROM `juniAtmVp` as J, `ports` AS I, `devices` AS D WHERE J.juniAtmVp_id = ? AND I.port_id = J.port_id AND I.device_id = D.device_id", array($atm_vp_id));
|
||||
|
||||
if ($auth || port_permitted($vp['port_id']))
|
||||
{
|
||||
$port = $vp;
|
||||
$device = device_by_id_cache($port['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Port ".generate_port_link($port);
|
||||
$title .= " :: VP ".$vp['vp_id'];
|
||||
$auth = TRUE;
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $vp['hostname'] . "/" . safename("vp-" . $vp['ifIndex'] . "-".$vp['vp_id'].".rrd");
|
||||
if ($_GET['id'] && is_numeric($_GET['id'])) {
|
||||
$atm_vp_id = $_GET['id'];
|
||||
}
|
||||
|
||||
?>
|
||||
$vp = dbFetchRow('SELECT * FROM `juniAtmVp` as J, `ports` AS I, `devices` AS D WHERE J.juniAtmVp_id = ? AND I.port_id = J.port_id AND I.device_id = D.device_id', array($atm_vp_id));
|
||||
|
||||
if ($auth || port_permitted($vp['port_id'])) {
|
||||
$port = $vp;
|
||||
$device = device_by_id_cache($port['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= ' :: Port '.generate_port_link($port);
|
||||
$title .= ' :: VP '.$vp['vp_id'];
|
||||
$auth = true;
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$vp['hostname'].'/'.safename('vp-'.$vp['ifIndex'].'-'.$vp['vp_id'].'.rrd');
|
||||
}
|
||||
|
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "inpacketoctets";
|
||||
$ds_out = "outpacketoctets";
|
||||
$ds_in = 'inpacketoctets';
|
||||
$ds_out = 'outpacketoctets';
|
||||
|
||||
include("includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_data.inc.php';
|
||||
|
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "incells";
|
||||
$ds_out = "outcells";
|
||||
$ds_in = 'incells';
|
||||
$ds_out = 'outcells';
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
$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";
|
||||
$colour_area_in_max = 'cc88cc';
|
||||
$colour_area_out_max = 'FFefaa';
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Cells";
|
||||
$unit_text = 'Cells';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,20 +1,18 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "inpacketerrors";
|
||||
$ds_out = "outpacketerrors";
|
||||
$ds_in = 'inpacketerrors';
|
||||
$ds_out = 'outpacketerrors';
|
||||
|
||||
$colour_area_in = "FF3300";
|
||||
$colour_line_in = "FF0000";
|
||||
$colour_area_out = "FF6633";
|
||||
$colour_line_out = "CC3300";
|
||||
$colour_area_in = 'FF3300';
|
||||
$colour_line_in = 'FF0000';
|
||||
$colour_area_out = 'FF6633';
|
||||
$colour_line_out = 'CC3300';
|
||||
|
||||
$colour_area_in_max = "FF6633";
|
||||
$colour_area_out_max = "FF9966";
|
||||
$colour_area_in_max = 'FF6633';
|
||||
$colour_area_out_max = 'FF9966';
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Errors";
|
||||
$unit_text = 'Errors';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "inpackets";
|
||||
$ds_out = "outpackets";
|
||||
$ds_in = 'inpackets';
|
||||
$ds_out = 'outpackets';
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
$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";
|
||||
$colour_area_in_max = 'CC88CC';
|
||||
$colour_area_out_max = 'FFEFAA';
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Packets";
|
||||
$unit_text = 'Packets';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,18 +1,13 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
if (is_numeric($vars['id'])) {
|
||||
$data = dbFetchRow('SELECT * FROM bgpPeers WHERE bgpPeer_id = ?', array($vars['id']));
|
||||
|
||||
$data = dbFetchRow("SELECT * FROM bgpPeers WHERE bgpPeer_id = ?", array($vars['id']));
|
||||
if (is_numeric($data['device_id']) && ($auth || device_permitted($data['device_id']))) {
|
||||
$device = device_by_id_cache($data['device_id']);
|
||||
|
||||
if (is_numeric($data['device_id']) && ($auth || device_permitted($data['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($data['device_id']);
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: BGP :: " . htmlentities($data['bgp_peerid']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
$title = generate_device_link($device);
|
||||
$title .= ' :: BGP :: '.htmlentities($data['bgp_peerid']);
|
||||
$auth = true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,18 +1,16 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$ds = "AcceptedPrefixes";
|
||||
$ds = 'AcceptedPrefixes';
|
||||
|
||||
$colour_area = "AA66AA";
|
||||
$colour_line = "FFDD88";
|
||||
$colour_area = 'AA66AA';
|
||||
$colour_line = 'FFDD88';
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
$colour_area_max = 'FFEE99';
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Prefixes";
|
||||
$unit_text = 'Prefixes';
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv4.multicast.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv4.multicast.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv4.unicast.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv4.unicast.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv4.vpn.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv4.vpn.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv6.multicast.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv6.multicast.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv6.unicast.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv6.unicast.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/". safename("cbgp-" . $data['bgpPeerIdentifier'] . ".ipv6.vpn.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cbgp-'.$data['bgpPeerIdentifier'].'.ipv6.vpn.rrd');
|
||||
|
||||
include("includes/graphs/bgp/prefixes.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/bgp/prefixes.inc.php';
|
||||
|
@@ -1,24 +1,22 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("bgp-" . $data['bgpPeerIdentifier'] . ".rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('bgp-'.$data['bgpPeerIdentifier'].'.rrd');
|
||||
|
||||
$ds_in = "bgpPeerInUpdates";
|
||||
$ds_out = "bgpPeerOutUpdates";
|
||||
$ds_in = 'bgpPeerInUpdates';
|
||||
$ds_out = 'bgpPeerOutUpdates';
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FF6600";
|
||||
$colour_line_out = "FFDD88";
|
||||
$colour_area_in = 'AA66AA';
|
||||
$colour_line_in = '330033';
|
||||
$colour_area_out = 'FF6600';
|
||||
$colour_line_out = 'FFDD88';
|
||||
|
||||
$colour_area_in_max = "FFEE99";
|
||||
$colour_area_out_max = "FF7711";
|
||||
$colour_area_in_max = 'FFEE99';
|
||||
$colour_area_out_max = 'FF7711';
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Updates";
|
||||
$unit_text = 'Updates';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,21 +1,17 @@
|
||||
<?php
|
||||
|
||||
// Authorises bill viewing and sets $ports as reference to mysql query containing ports for this bill
|
||||
require '../includes/billing.php';
|
||||
|
||||
include("../includes/billing.php");
|
||||
if (is_numeric($_GET['id']) && ($auth || bill_permitted($_GET['id']))) {
|
||||
$bill = dbFetchRow('SELECT * FROM `bills` WHERE bill_id = ?', array($_GET['id']));
|
||||
|
||||
if (is_numeric($_GET['id']) && ($auth || bill_permitted($_GET['id'])))
|
||||
{
|
||||
$bill = dbFetchRow("SELECT * FROM `bills` WHERE bill_id = ?", array($_GET['id']));
|
||||
$datefrom = date('YmdHis', $_GET['from']);
|
||||
$dateto = date('YmdHis', $_GET['to']);
|
||||
|
||||
$datefrom = date('YmdHis', $_GET['from']);
|
||||
$dateto = date('YmdHis', $_GET['to']);
|
||||
$rates = getRates($_GET['id'], $datefrom, $dateto);
|
||||
|
||||
$rates = getRates($_GET['id'], $datefrom, $dateto);
|
||||
$ports = dbFetchRows('SELECT * FROM `bill_ports` AS B, `ports` AS P, `devices` AS D WHERE B.bill_id = ? AND P.port_id = B.port_id AND D.device_id = P.device_id', array($_GET['id']));
|
||||
|
||||
$ports = dbFetchRows("SELECT * FROM `bill_ports` AS B, `ports` AS P, `devices` AS D WHERE B.bill_id = ? AND P.port_id = B.port_id AND D.device_id = P.device_id", array($_GET['id']));
|
||||
|
||||
$auth = TRUE;
|
||||
$auth = true;
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,41 +1,36 @@
|
||||
<?php
|
||||
|
||||
// Generate a list of ports and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$i = 0;
|
||||
|
||||
foreach ($ports as $port)
|
||||
{
|
||||
if (is_file($config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd")))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
||||
$rrd_list[$i]['descr'] = $port['ifDescr'];
|
||||
$i++;
|
||||
}
|
||||
foreach ($ports as $port) {
|
||||
if (is_file($config['rrd_dir'].'/'.$port['hostname'].'/port-'.safename($port['ifIndex'].'.rrd'))) {
|
||||
$rrd_list[$i]['filename'] = $config['rrd_dir'].'/'.$port['hostname'].'/port-'.safename($port['ifIndex'].'.rrd');
|
||||
$rrd_list[$i]['descr'] = $port['ifDescr'];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
$units='bps';
|
||||
$total_units='B';
|
||||
$colours_in='greens';
|
||||
$multiplier = "8";
|
||||
$units = 'bps';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = '8';
|
||||
$colours_out = 'blues';
|
||||
|
||||
$nototal = 1;
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
$ds_in = 'INOCTETS';
|
||||
$ds_out = 'OUTOCTETS';
|
||||
|
||||
#print_r($rates);
|
||||
|
||||
if($bill['bill_type'] == "cdr") {
|
||||
$custom_graph = " COMMENT:'\\r' ";
|
||||
$custom_graph .= " HRULE:" . $rates['rate_95th'] . "#cc0000:'95th %ile \: ".formatRates($rates['rate_95th'])." (".$rates['dir_95th'].") (CDR\: ".formatRates($bill['bill_cdr']).")'";
|
||||
$custom_graph .= " HRULE:" . $rates['rate_95th'] * -1 . "#cc0000";
|
||||
} elseif($bill['bill_type'] == "quota") {
|
||||
$custom_graph = " COMMENT:'\\r' ";
|
||||
$custom_graph .= " HRULE:" . $rates['rate_average'] . "#cc0000:'Usage \: ".format_bytes_billing($rates['total_data'])." (".formatRates($rates['rate_average']).")'";
|
||||
$custom_graph .= " HRULE:" . $rates['rate_average'] * -1 . "#cc0000";
|
||||
// print_r($rates);
|
||||
if ($bill['bill_type'] == 'cdr') {
|
||||
$custom_graph = " COMMENT:'\\r' ";
|
||||
$custom_graph .= ' HRULE:'.$rates['rate_95th']."#cc0000:'95th %ile \: ".formatRates($rates['rate_95th']).' ('.$rates['dir_95th'].') (CDR\: '.formatRates($bill['bill_cdr']).")'";
|
||||
$custom_graph .= ' HRULE:'.($rates['rate_95th'] * -1).'#cc0000';
|
||||
}
|
||||
else if ($bill['bill_type'] == 'quota') {
|
||||
$custom_graph = " COMMENT:'\\r' ";
|
||||
$custom_graph .= ' HRULE:'.$rates['rate_average']."#cc0000:'Usage \: ".format_bytes_billing($rates['total_data']).' ('.formatRates($rates['rate_average']).")'";
|
||||
$custom_graph .= ' HRULE:'.($rates['rate_average'] * -1).'#cc0000';
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_bits_separated.inc.php';
|
||||
|
@@ -1,18 +1,14 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/device/auth.inc.php");
|
||||
require 'includes/graphs/device/auth.inc.php';
|
||||
|
||||
if ($auth && is_numeric($_GET['mod']) && is_numeric($_GET['chan']))
|
||||
{
|
||||
if ($auth && is_numeric($_GET['mod']) && is_numeric($_GET['chan'])) {
|
||||
$entity = dbFetchRow('SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?', array($device['device_id'], $_GET['mod']));
|
||||
|
||||
$entity = dbFetchRow("SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?", array($device['device_id'], $_GET['mod']));
|
||||
$title .= ' :: '.$entity['entPhysicalName'];
|
||||
$title .= ' :: Fabric '.$_GET['chan'];
|
||||
|
||||
$title .= " :: ".$entity['entPhysicalName'];
|
||||
$title .= " :: Fabric ".$_GET['chan'];
|
||||
$graph_title = shorthost($device['hostname']).'::'.$entity['entPhysicalName'].'::Fabric'.$_GET['chan'];
|
||||
|
||||
$graph_title = shorthost($device['hostname']) . "::" . $entity['entPhysicalName']. "::Fabric".$_GET['chan'];
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/c6kxbar-" . safename($_GET['mod']. "-".$_GET['chan']. ".rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/c6kxbar-'.safename($_GET['mod'].'-'.$_GET['chan'].'.rrd');
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "inutil";
|
||||
$ds_out = "oututil";
|
||||
$ds_in = 'inutil';
|
||||
$ds_out = 'oututil';
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
$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";
|
||||
$colour_area_in_max = 'cc88cc';
|
||||
$colour_area_out_max = 'FFefaa';
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Percent";
|
||||
$unit_text = 'Percent';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,19 +1,15 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$cef = dbFetchRow("SELECT * FROM `cef_switching` AS C, `devices` AS D WHERE C.cef_switching_id = ? AND C.device_id = D.device_id", array($vars['id']));
|
||||
if (is_numeric($vars['id'])) {
|
||||
$cef = dbFetchRow('SELECT * FROM `cef_switching` AS C, `devices` AS D WHERE C.cef_switching_id = ? AND C.device_id = D.device_id', array($vars['id']));
|
||||
|
||||
if (is_numeric($cef['device_id']) && ($auth || device_permitted($cef['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($cef['device_id']);
|
||||
if (is_numeric($cef['device_id']) && ($auth || device_permitted($cef['device_id']))) {
|
||||
$device = device_by_id_cache($cef['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("cefswitching-".$cef['entPhysicalIndex']."-".$cef['afi']."-".$cef['cef_index'].".rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('cefswitching-'.$cef['entPhysicalIndex'].'-'.$cef['afi'].'-'.$cef['cef_index'].'.rrd');
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: CEF Switching :: " . htmlentities($cef['cef_descr']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
$title = generate_device_link($device);
|
||||
$title .= ' :: CEF Switching :: '.htmlentities($cef['cef_descr']);
|
||||
$auth = true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,28 +1,26 @@
|
||||
<?php
|
||||
|
||||
// Cycle through dot3stats OIDs and build list of RRAs to pass to multi simplex grapher
|
||||
$oids = array(
|
||||
'drop',
|
||||
'punt',
|
||||
'hostpunt',
|
||||
);
|
||||
$i = 0;
|
||||
|
||||
$oids = array('drop', 'punt', 'hostpunt');
|
||||
$i = 0;
|
||||
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$oid = str_replace("dot3Stats", "", $oid);
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $oid;
|
||||
$rrd_list[$i]['ds'] = $oid_ds;
|
||||
$i++;
|
||||
}
|
||||
if (is_file($rrd_filename)) {
|
||||
foreach ($oids as $oid) {
|
||||
$oid = str_replace('dot3Stats', '', $oid);
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $oid;
|
||||
$rrd_list[$i]['ds'] = $oid_ds;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
#} else { echo("file missing: $file"); }
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$unit_text = "Errors";
|
||||
$unit_text = 'Errors';
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|
||||
|
@@ -2,27 +2,25 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
require "includes/graphs/common.inc.php";
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$agent_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/agent.rrd";
|
||||
$agent_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/agent.rrd';
|
||||
|
||||
if (is_file($agent_rrd)) {
|
||||
$rrd_filename = $agent_rrd;
|
||||
}
|
||||
|
||||
$ds = "time";
|
||||
$ds = 'time';
|
||||
|
||||
$colour_area = "EEEEEE";
|
||||
$colour_line = "36393D";
|
||||
$colour_area = 'EEEEEE';
|
||||
$colour_line = '36393D';
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
$colour_area_max = 'FFEE99';
|
||||
|
||||
$graph_max = 1;
|
||||
$multiplier = 1000;
|
||||
$multiplier_action = "/";
|
||||
$graph_max = 1;
|
||||
$multiplier = 1000;
|
||||
$multiplier_action = '/';
|
||||
|
||||
$unit_text = "Seconds";
|
||||
$unit_text = 'Seconds';
|
||||
|
||||
require "includes/graphs/generic_simplex.inc.php";
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,22 +1,20 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/aruba-controller.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/aruba-controller.rrd';
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Number of APs";
|
||||
$rrd_list[0]['ds'] = "NUMAPS";
|
||||
$rrd_list[0]['descr'] = 'Number of APs';
|
||||
$rrd_list[0]['ds'] = 'NUMAPS';
|
||||
|
||||
$unit_text = "APs";
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$unit_text = 'APs';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$nototal = 1;
|
||||
$scale_min = '0';
|
||||
$nototal = 1;
|
||||
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
?>
|
||||
|
@@ -1,26 +1,21 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/aruba-controller.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/aruba-controller.rrd';
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Clients";
|
||||
$rrd_list[0]['ds'] = "NUMCLIENTS";
|
||||
$rrd_list[0]['descr'] = 'Clients';
|
||||
$rrd_list[0]['ds'] = 'NUMCLIENTS';
|
||||
|
||||
$unit_text = "Clients";
|
||||
$unit_text = 'Clients';
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
if ($rrd_list) {
|
||||
include 'includes/graphs/generic_multi_line.inc.php';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
@@ -1,10 +1,8 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/cipsec_flow.rrd';
|
||||
|
||||
$ds_in = "InOctets";
|
||||
$ds_out = "OutOctets";
|
||||
$ds_in = 'InOctets';
|
||||
$ds_out = 'OutOctets';
|
||||
|
||||
include("includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_data.inc.php';
|
||||
|
@@ -1,21 +1,19 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/cipsec_flow.rrd';
|
||||
|
||||
$ds_in = "InPkts";
|
||||
$ds_out = "OutPkts";
|
||||
$ds_in = 'InPkts';
|
||||
$ds_out = 'OutPkts';
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
$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";
|
||||
$colour_area_in_max = 'CC88CC';
|
||||
$colour_area_out_max = 'FFEFAA';
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Pkts ";
|
||||
$unit_text = 'Pkts ';
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_duplex.inc.php';
|
||||
|
@@ -1,15 +1,13 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
$ds = "Tunnels";
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
$colour_area_max = "aaaaacc";
|
||||
$scale_min = 0;
|
||||
$unit_text = "Active Tunnels";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/cipsec_flow.rrd';
|
||||
$ds = 'Tunnels';
|
||||
$colour_area = '9999cc';
|
||||
$colour_line = '0000cc';
|
||||
$colour_area_max = 'aaaaacc';
|
||||
$scale_min = 0;
|
||||
$unit_text = 'Active Tunnels';
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_min = '0';
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cras_sessions.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/cras_sessions.rrd';
|
||||
|
||||
$rrd_options .= " DEF:email=$rrd_filename:email:AVERAGE";
|
||||
$rrd_options .= " DEF:ipsec=$rrd_filename:ipsec:AVERAGE";
|
||||
@@ -12,7 +12,7 @@ $rrd_options .= " DEF:l2l=$rrd_filename:l2l:AVERAGE";
|
||||
$rrd_options .= " DEF:lb=$rrd_filename:lb:AVERAGE";
|
||||
$rrd_options .= " DEF:svc=$rrd_filename:svc:AVERAGE";
|
||||
$rrd_options .= " DEF:webvpn=$rrd_filename:webvpn:AVERAGE";
|
||||
$rrd_options .= " CDEF:webvpn_only=webvpn,svc,-";
|
||||
$rrd_options .= ' CDEF:webvpn_only=webvpn,svc,-';
|
||||
|
||||
$rrd_options .= " COMMENT:'Sessions Current Average Maximum\\n'";
|
||||
|
||||
@@ -32,18 +32,16 @@ $rrd_options .= " GPRINT:ipsec:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:ipsec:MAX:' %6.2lf%s\\\\n'";
|
||||
|
||||
$rrd_options .= " AREA:l2l#aaaa00:'Lan-to-Lan ':STACK";
|
||||
$rrd_options .= " GPRINT:l2l:LAST:%6.2lf%s";
|
||||
$rrd_options .= ' GPRINT:l2l:LAST:%6.2lf%s';
|
||||
$rrd_options .= " GPRINT:l2l:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:l2l:MAX:' %6.2lf%s\\\\n'";
|
||||
|
||||
$rrd_options .= " AREA:email#0000aa:'Email ':STACK";
|
||||
$rrd_options .= " GPRINT:email:LAST:%6.2lf%s";
|
||||
$rrd_options .= ' GPRINT:email:LAST:%6.2lf%s';
|
||||
$rrd_options .= " GPRINT:email:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:email:MAX:' %6.2lf%s\\\\n'";
|
||||
|
||||
$rrd_options .= " AREA:lb#aa00aa:'Load Balancer ':STACK";
|
||||
$rrd_options .= " GPRINT:lb:LAST:%6.2lf%s";
|
||||
$rrd_options .= ' GPRINT:lb:LAST:%6.2lf%s';
|
||||
$rrd_options .= " GPRINT:lb:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:lb:MAX:' %6.2lf%s\\\\n'";
|
||||
|
||||
?>
|
||||
|
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$class = "current";
|
||||
$unit = "A";
|
||||
$unit_long = "Ampere";
|
||||
$class = 'current';
|
||||
$unit = 'A';
|
||||
$unit_long = 'Ampere';
|
||||
|
||||
include("includes/graphs/device/sensor.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/device/sensor.inc.php';
|
||||
|
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$class = "dBm";
|
||||
$unit = "dBm";
|
||||
$unit_long = "dBm";
|
||||
$class = 'dBm';
|
||||
$unit = 'dBm';
|
||||
$unit_long = 'dBm';
|
||||
|
||||
include("includes/graphs/device/sensor.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/device/sensor.inc.php';
|
||||
|
@@ -1,5 +1,3 @@
|
||||
<?php
|
||||
|
||||
include("diskio_ops.inc.php");
|
||||
|
||||
?>
|
||||
require 'diskio_ops.inc.php';
|
||||
|
@@ -2,17 +2,13 @@
|
||||
|
||||
$i = 1;
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ucd_diskio` AS U, `devices` AS D WHERE D.device_id = ? AND U.device_id = D.device_id", array($device['device_id'])) as $disk)
|
||||
{
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $disk['hostname'] . "/ucd_diskio-" . safename($disk['diskio_descr'] . ".rrd");
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $disk['diskio_descr'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
foreach (dbFetchRows('SELECT * FROM `ucd_diskio` AS U, `devices` AS D WHERE D.device_id = ? AND U.device_id = D.device_id', array($device['device_id'])) as $disk) {
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$disk['hostname'].'/ucd_diskio-'.safename($disk['diskio_descr'].'.rrd');
|
||||
if (is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $disk['diskio_descr'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$class = "fanspeed";
|
||||
$unit = "";
|
||||
$unit_long = "RPM";
|
||||
$class = 'fanspeed';
|
||||
$unit = '';
|
||||
$unit_long = 'RPM';
|
||||
|
||||
include("includes/graphs/device/sensor.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/device/sensor.inc.php';
|
||||
|
@@ -1,20 +1,18 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("fortigate_cpu.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('fortigate_cpu.rrd');
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$ds = "LOAD";
|
||||
$ds = 'LOAD';
|
||||
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
$colour_area = '9999cc';
|
||||
$colour_line = '0000cc';
|
||||
|
||||
$colour_area_max = "9999cc";
|
||||
$colour_area_max = '9999cc';
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "% CPU";
|
||||
$unit_text = '% CPU';
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,20 +1,18 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("fortigate_sessions.rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('fortigate_sessions.rrd');
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$ds = "sessions";
|
||||
$ds = 'sessions';
|
||||
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
$colour_area = '9999cc';
|
||||
$colour_line = '0000cc';
|
||||
|
||||
$colour_area_max = "9999cc";
|
||||
$colour_area_max = '9999cc';
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Sessions";
|
||||
$unit_text = 'Sessions';
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$class = "frequency";
|
||||
$unit = "Hz";
|
||||
$unit_long = "Hertz";
|
||||
$class = 'frequency';
|
||||
$unit = 'Hz';
|
||||
$unit_long = 'Hertz';
|
||||
|
||||
include("includes/graphs/device/sensor.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/device/sensor.inc.php';
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user