diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 931a5c9512..9a63044681 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -2042,6 +2042,50 @@ systemctl reload snmpd 7. You're now ready to enable the application in LibreNMS. +## Privoxy + +For this to work, the following log items need enabled for Privoxy. + +``` +debug 2 # show each connection status +debug 512 # Common Log Format +debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why. +debug 4096 # Startup banner and warnings +debug 8192 # Non-fatal errors +``` + +### SNMP Extend + +1. Download the extend and make sure it is executable. +``` +wget https://github.com/librenms/librenms-agent/raw/master/snmp/privoxy -O /etc/snmp/privoxy +chmod +x /etc/snmp/privoxy +``` + +2. Install the depdenencies. +``` +# FreeBSD +pkg install p5-File-ReadBackwards p5-Time-Piece p5-JSON p5-IPC-Run3 p5-Gzip-Faster p5-MIME-Base64 +# Debian +apt-get install cpanminus zlib1g +cpanm File::ReadBackwards Time::Piece JSON IPC::Run3 MIME::Base64 Gzip::Faster +``` + +3. Add the extend to snmpd.conf and restart snmpd. +``` +extend privoxy /etc/snmp/privoxy +``` + +If your logfile is not at `/var/log/privoxy/logfile`, that may be +changed via the `-f` option. + +If `privoxy-log-parser.pl` is not found in your standard `$PATH` +setting, you may will need up call the extend via `/usr/bin/env` with +a `$PATH` set to something that includes it. + +Once that is done, just wait for the server to be rediscovered or just +enable it manually. + ## Pwrstatd Pwrstatd (commonly known as powerpanel) is an application/service available from CyberPower to monitor their PSUs over USB. It is currently capable of reading the status of only one PSU connected via USB at a time. The powerpanel software is available here: diff --git a/includes/html/graphs/application/privoxy_block_percent.inc.php b/includes/html/graphs/application/privoxy_block_percent.inc.php new file mode 100644 index 0000000000..fbaf6718cb --- /dev/null +++ b/includes/html/graphs/application/privoxy_block_percent.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_blocks.inc.php b/includes/html/graphs/application/privoxy_blocks.inc.php new file mode 100644 index 0000000000..f02f2c3964 --- /dev/null +++ b/includes/html/graphs/application/privoxy_blocks.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_bytes_to_client.inc.php b/includes/html/graphs/application/privoxy_bytes_to_client.inc.php new file mode 100644 index 0000000000..40d217b9a0 --- /dev/null +++ b/includes/html/graphs/application/privoxy_bytes_to_client.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_client_cons.inc.php b/includes/html/graphs/application/privoxy_client_cons.inc.php new file mode 100644 index 0000000000..3de26d817d --- /dev/null +++ b/includes/html/graphs/application/privoxy_client_cons.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_client_requests.inc.php b/includes/html/graphs/application/privoxy_client_requests.inc.php new file mode 100644 index 0000000000..18d54a2fbb --- /dev/null +++ b/includes/html/graphs/application/privoxy_client_requests.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_con_failures.inc.php b/includes/html/graphs/application/privoxy_con_failures.inc.php new file mode 100644 index 0000000000..2c6aa1d086 --- /dev/null +++ b/includes/html/graphs/application/privoxy_con_failures.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_con_timeouts.inc.php b/includes/html/graphs/application/privoxy_con_timeouts.inc.php new file mode 100644 index 0000000000..369c373853 --- /dev/null +++ b/includes/html/graphs/application/privoxy_con_timeouts.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_crunches.inc.php b/includes/html/graphs/application/privoxy_crunches.inc.php new file mode 100644 index 0000000000..8b3e75af83 --- /dev/null +++ b/includes/html/graphs/application/privoxy_crunches.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_empty_resps.inc.php b/includes/html/graphs/application/privoxy_empty_resps.inc.php new file mode 100644 index 0000000000..b90e13a0d3 --- /dev/null +++ b/includes/html/graphs/application/privoxy_empty_resps.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_empty_resps_new.inc.php b/includes/html/graphs/application/privoxy_empty_resps_new.inc.php new file mode 100644 index 0000000000..f5d842e295 --- /dev/null +++ b/includes/html/graphs/application/privoxy_empty_resps_new.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_empty_resps_reuse.inc.php b/includes/html/graphs/application/privoxy_empty_resps_reuse.inc.php new file mode 100644 index 0000000000..0b6637b6e2 --- /dev/null +++ b/includes/html/graphs/application/privoxy_empty_resps_reuse.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_fast_redirs.inc.php b/includes/html/graphs/application/privoxy_fast_redirs.inc.php new file mode 100644 index 0000000000..60cb53659b --- /dev/null +++ b/includes/html/graphs/application/privoxy_fast_redirs.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_imp_accounted.inc.php b/includes/html/graphs/application/privoxy_imp_accounted.inc.php new file mode 100644 index 0000000000..d0df0e5619 --- /dev/null +++ b/includes/html/graphs/application/privoxy_imp_accounted.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_max_reqs.inc.php b/includes/html/graphs/application/privoxy_max_reqs.inc.php new file mode 100644 index 0000000000..05640cdde6 --- /dev/null +++ b/includes/html/graphs/application/privoxy_max_reqs.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_nog_conns.inc.php b/includes/html/graphs/application/privoxy_nog_conns.inc.php new file mode 100644 index 0000000000..39a31897ff --- /dev/null +++ b/includes/html/graphs/application/privoxy_nog_conns.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_out_requests.inc.php b/includes/html/graphs/application/privoxy_out_requests.inc.php new file mode 100644 index 0000000000..3ae3220539 --- /dev/null +++ b/includes/html/graphs/application/privoxy_out_requests.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req.inc.php b/includes/html/graphs/application/privoxy_req.inc.php new file mode 100644 index 0000000000..0e3e007398 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req.inc.php @@ -0,0 +1,64 @@ +app_id]); + +$rrd_list = []; +if (Rrd::checkRrdExists($rrd_filename)) { + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'CONNECT', + 'ds' => 'req_connect', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'DELETE', + 'ds' => 'req_delete', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'GET', + 'ds' => 'req_get', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'HEAD', + 'ds' => 'req_head', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'OPTIONS', + 'ds' => 'req_options', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'PATCH', + 'ds' => 'req_patch', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'POST', + 'ds' => 'req_post', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'PUT', + 'ds' => 'req_put', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => 'TRACE', + 'ds' => 'req_trace', + ]; +} else { + d_echo('RRD "' . $rrd_filename . '" not found'); +} + +require 'includes/html/graphs/generic_multi_line.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_connect.inc.php b/includes/html/graphs/application/privoxy_req_connect.inc.php new file mode 100644 index 0000000000..dba0534075 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_connect.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_delete.inc.php b/includes/html/graphs/application/privoxy_req_delete.inc.php new file mode 100644 index 0000000000..161c114a0d --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_delete.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_get.inc.php b/includes/html/graphs/application/privoxy_req_get.inc.php new file mode 100644 index 0000000000..bb4d9d8c19 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_get.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_head.inc.php b/includes/html/graphs/application/privoxy_req_head.inc.php new file mode 100644 index 0000000000..67629d5cf1 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_head.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_options.inc.php b/includes/html/graphs/application/privoxy_req_options.inc.php new file mode 100644 index 0000000000..992b41219e --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_options.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_patch.inc.php b/includes/html/graphs/application/privoxy_req_patch.inc.php new file mode 100644 index 0000000000..b355100885 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_patch.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_post.inc.php b/includes/html/graphs/application/privoxy_req_post.inc.php new file mode 100644 index 0000000000..18dcfc0e78 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_post.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_put.inc.php b/includes/html/graphs/application/privoxy_req_put.inc.php new file mode 100644 index 0000000000..d15d2e5cd4 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_put.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_req_trace.inc.php b/includes/html/graphs/application/privoxy_req_trace.inc.php new file mode 100644 index 0000000000..097ffc4127 --- /dev/null +++ b/includes/html/graphs/application/privoxy_req_trace.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_1xx.inc.php b/includes/html/graphs/application/privoxy_resp_1xx.inc.php new file mode 100644 index 0000000000..334d487a74 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_1xx.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_200.inc.php b/includes/html/graphs/application/privoxy_resp_200.inc.php new file mode 100644 index 0000000000..4f63c2e49d --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_200.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_2xx.inc.php b/includes/html/graphs/application/privoxy_resp_2xx.inc.php new file mode 100644 index 0000000000..d34f3fc0ac --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_2xx.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_2xx_other.inc.php b/includes/html/graphs/application/privoxy_resp_2xx_other.inc.php new file mode 100644 index 0000000000..2032b1dcc2 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_2xx_other.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_301.inc.php b/includes/html/graphs/application/privoxy_resp_301.inc.php new file mode 100644 index 0000000000..b32bb85cf9 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_301.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_302.inc.php b/includes/html/graphs/application/privoxy_resp_302.inc.php new file mode 100644 index 0000000000..7270b7fd42 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_302.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_303.inc.php b/includes/html/graphs/application/privoxy_resp_303.inc.php new file mode 100644 index 0000000000..59aa0b96d8 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_303.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_3xx.inc.php b/includes/html/graphs/application/privoxy_resp_3xx.inc.php new file mode 100644 index 0000000000..4fba038c64 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_3xx.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_3xx_other.inc.php b/includes/html/graphs/application/privoxy_resp_3xx_other.inc.php new file mode 100644 index 0000000000..4b47898db8 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_3xx_other.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_403.inc.php b/includes/html/graphs/application/privoxy_resp_403.inc.php new file mode 100644 index 0000000000..24a42c96e1 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_403.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_404.inc.php b/includes/html/graphs/application/privoxy_resp_404.inc.php new file mode 100644 index 0000000000..210466c070 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_404.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_451.inc.php b/includes/html/graphs/application/privoxy_resp_451.inc.php new file mode 100644 index 0000000000..3517003d5b --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_451.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_4xx.inc.php b/includes/html/graphs/application/privoxy_resp_4xx.inc.php new file mode 100644 index 0000000000..031e780b17 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_4xx.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_4xx_other.inc.php b/includes/html/graphs/application/privoxy_resp_4xx_other.inc.php new file mode 100644 index 0000000000..39594c4451 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_4xx_other.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_500.inc.php b/includes/html/graphs/application/privoxy_resp_500.inc.php new file mode 100644 index 0000000000..609e3f3d01 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_500.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_502.inc.php b/includes/html/graphs/application/privoxy_resp_502.inc.php new file mode 100644 index 0000000000..fe568efeac --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_502.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_503.inc.php b/includes/html/graphs/application/privoxy_resp_503.inc.php new file mode 100644 index 0000000000..d67fe49f17 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_503.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_504.inc.php b/includes/html/graphs/application/privoxy_resp_504.inc.php new file mode 100644 index 0000000000..afd8cf8f89 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_504.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_5xx.inc.php b/includes/html/graphs/application/privoxy_resp_5xx.inc.php new file mode 100644 index 0000000000..9342427672 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_5xx.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_5xx_other.inc.php b/includes/html/graphs/application/privoxy_resp_5xx_other.inc.php new file mode 100644 index 0000000000..9c888a2a1d --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_5xx_other.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_resp_xxx.inc.php b/includes/html/graphs/application/privoxy_resp_xxx.inc.php new file mode 100644 index 0000000000..519f8138c2 --- /dev/null +++ b/includes/html/graphs/application/privoxy_resp_xxx.inc.php @@ -0,0 +1,44 @@ +app_id]); + +$rrd_list = []; +if (Rrd::checkRrdExists($rrd_filename)) { + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => '1xx', + 'ds' => 'resp_1xx', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => '2xx', + 'ds' => 'resp_2xx', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => '3xx', + 'ds' => 'resp_3xx', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => '4xx', + 'ds' => 'resp_4xx', + ]; + $rrd_list[] = [ + 'filename' => $rrd_filename, + 'descr' => '5xx', + 'ds' => 'resp_5xx', + ]; +} else { + d_echo('RRD "' . $rrd_filename . '" not found'); +} + +require 'includes/html/graphs/generic_multi_line.inc.php'; diff --git a/includes/html/graphs/application/privoxy_reused_server_cons.inc.php b/includes/html/graphs/application/privoxy_reused_server_cons.inc.php new file mode 100644 index 0000000000..c4268220d5 --- /dev/null +++ b/includes/html/graphs/application/privoxy_reused_server_cons.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ska_offers.inc.php b/includes/html/graphs/application/privoxy_ska_offers.inc.php new file mode 100644 index 0000000000..48fa237006 --- /dev/null +++ b/includes/html/graphs/application/privoxy_ska_offers.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ubd_np_per.inc.php b/includes/html/graphs/application/privoxy_ubd_np_per.inc.php new file mode 100644 index 0000000000..b48c683ccb --- /dev/null +++ b/includes/html/graphs/application/privoxy_ubd_np_per.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ubd_per.inc.php b/includes/html/graphs/application/privoxy_ubd_per.inc.php new file mode 100644 index 0000000000..9142653057 --- /dev/null +++ b/includes/html/graphs/application/privoxy_ubd_per.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_unique_bdomains.inc.php b/includes/html/graphs/application/privoxy_unique_bdomains.inc.php new file mode 100644 index 0000000000..5b3447d5dc --- /dev/null +++ b/includes/html/graphs/application/privoxy_unique_bdomains.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_unique_bdomains_np.inc.php b/includes/html/graphs/application/privoxy_unique_bdomains_np.inc.php new file mode 100644 index 0000000000..001551113d --- /dev/null +++ b/includes/html/graphs/application/privoxy_unique_bdomains_np.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_unique_domains.inc.php b/includes/html/graphs/application/privoxy_unique_domains.inc.php new file mode 100644 index 0000000000..dacf3708e2 --- /dev/null +++ b/includes/html/graphs/application/privoxy_unique_domains.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_unique_domains_np.inc.php b/includes/html/graphs/application/privoxy_unique_domains_np.inc.php new file mode 100644 index 0000000000..01aa555a14 --- /dev/null +++ b/includes/html/graphs/application/privoxy_unique_domains_np.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ver.inc.php b/includes/html/graphs/application/privoxy_ver.inc.php new file mode 100644 index 0000000000..7670064aaa --- /dev/null +++ b/includes/html/graphs/application/privoxy_ver.inc.php @@ -0,0 +1,39 @@ +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'; diff --git a/includes/html/graphs/application/privoxy_ver_1_0.inc.php b/includes/html/graphs/application/privoxy_ver_1_0.inc.php new file mode 100644 index 0000000000..eb8ed6be9b --- /dev/null +++ b/includes/html/graphs/application/privoxy_ver_1_0.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ver_1_1.inc.php b/includes/html/graphs/application/privoxy_ver_1_1.inc.php new file mode 100644 index 0000000000..99ac273fdb --- /dev/null +++ b/includes/html/graphs/application/privoxy_ver_1_1.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ver_2.inc.php b/includes/html/graphs/application/privoxy_ver_2.inc.php new file mode 100644 index 0000000000..0884f7c4ab --- /dev/null +++ b/includes/html/graphs/application/privoxy_ver_2.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/graphs/application/privoxy_ver_3.inc.php b/includes/html/graphs/application/privoxy_ver_3.inc.php new file mode 100644 index 0000000000..7fb3953f1c --- /dev/null +++ b/includes/html/graphs/application/privoxy_ver_3.inc.php @@ -0,0 +1,13 @@ +app_type, $app->app_id]); + +if (! Rrd::checkRrdExists($filename)) { + d_echo('RRD "' . $filename . '" not found'); +} + +require 'includes/html/graphs/generic_stats.inc.php'; diff --git a/includes/html/pages/apps.inc.php b/includes/html/pages/apps.inc.php index af2195d504..8f9ff3ec4f 100644 --- a/includes/html/pages/apps.inc.php +++ b/includes/html/pages/apps.inc.php @@ -470,6 +470,16 @@ $graphs['linux_softnet_stat'] = [ 'received_rps', 'budget', ]; +$graphs['privoxy'] = [ + 'client_requests', + 'blocks', + 'crunches', + 'unique_bdomains', + 'bytes_to_client', + 'req', + 'resp_xxx', + 'ver', +]; echo '