mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
f84fca697c
* add privoxy * various style fixes * cleanup option bar * save metrics for privoxy now * add instructions for privoxy * add privoxy test data * regen the test data * add a few missing depends to the instructions * add apps.inc.php entry for privoxy * note the required log settings for privoxy * style fix
40 lines
901 B
PHP
40 lines
901 B
PHP
<?php
|
|
|
|
$name = 'privoxy';
|
|
$unit_text = 'HTTP Versions';
|
|
$colours = 'rainbow';
|
|
$dostack = 0;
|
|
$printtotal = 0;
|
|
$addarea = 1;
|
|
$transparency = 15;
|
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id]);
|
|
|
|
$rrd_list = [];
|
|
if (Rrd::checkRrdExists($rrd_filename)) {
|
|
$rrd_list[] = [
|
|
'filename' => $rrd_filename,
|
|
'descr' => '1.0',
|
|
'ds' => 'ver_1_0',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $rrd_filename,
|
|
'descr' => '1.1',
|
|
'ds' => 'ver_1_1',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $rrd_filename,
|
|
'descr' => '2',
|
|
'ds' => 'ver_2',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $rrd_filename,
|
|
'descr' => '3',
|
|
'ds' => 'ver_3',
|
|
];
|
|
} else {
|
|
d_echo('RRD "' . $rrd_filename . '" not found');
|
|
}
|
|
|
|
require 'includes/html/graphs/generic_multi_line.inc.php';
|