2017-03-03 12:55:33 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$name = 'squid';
|
|
|
|
$app_id = $app['app_id'];
|
|
|
|
$colours = 'mixed';
|
|
|
|
$unit_text = 'per second';
|
|
|
|
$unitlen = 10;
|
|
|
|
$bigdescrlen = 15;
|
|
|
|
$smalldescrlen = 15;
|
|
|
|
$dostack = 0;
|
|
|
|
$printtotal = 0;
|
|
|
|
$addarea = 1;
|
|
|
|
$transparency = 15;
|
|
|
|
|
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
|
|
|
|
|
2018-01-26 18:52:52 -02:00
|
|
|
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
2017-03-03 12:55:33 -06:00
|
|
|
$rrd_list = array(
|
|
|
|
array(
|
|
|
|
'filename' => $rrd_filename,
|
|
|
|
'descr' => 'requests',
|
|
|
|
'ds' => 'serverrequests',
|
|
|
|
'colour' => '582a72'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'filename' => $rrd_filename,
|
|
|
|
'descr' => 'hits',
|
|
|
|
'ds' => 'servererrors',
|
|
|
|
'colour' => '28774f'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
echo "file missing: $rrd_filename";
|
|
|
|
}
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_v3_multiline.inc.php';
|