feature: Add Squid application support (#6011)

This commit is contained in:
VVelox
2017-03-03 12:55:33 -06:00
committed by Neil Lathwood
parent 5805a55483
commit ab2043c634
17 changed files with 745 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
$name = 'squid';
$app_id = $app['app_id'];
$scale_min = 0;
$colours = 'mixed';
$unit_text = 'seconds';
$unitlen = 10;
$bigdescrlen = 10;
$smalldescrlen = 10;
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,
'descr' => 'cpu time',
'ds' => 'cputime',
'colour' => '582a72'
)
);
} else {
echo "file missing: $rrd_filename";
}
require 'includes/graphs/generic_v3_multiline.inc.php';