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,43 @@
<?php
$name = 'squid';
$app_id = $app['app_id'];
$scale_min = 0;
$colours = 'mixed';
$unit_text = '';
$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));
if (is_file($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,
'descr' => 'requests',
'ds' => 'protoclienthttpreq',
'colour' => '582a72'
),
array(
'filename' => $rrd_filename,
'descr' => 'hits',
'ds' => 'httphits',
'colour' => '28774f'
),
array(
'filename' => $rrd_filename,
'descr' => 'errs to clnt',
'ds' => 'httperrors',
'colour' => '28536c'
)
);
} else {
echo "file missing: $rrd_filename";
}
require 'includes/graphs/generic_v3_multiline.inc.php';