aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-10 15:49:01 +1000
committeronefang2019-12-10 15:49:01 +1000
commitaa916bc92a8a239c30b03bac06a0f0fc468a846b (patch)
tree8622a77832d232f8b275a92964fc67d4940eadd4
parentAdd RRD data collection, and a speed graph. (diff)
downloadapt-panopticon-aa916bc92a8a239c30b03bac06a0f0fc468a846b.zip
apt-panopticon-aa916bc92a8a239c30b03bac06a0f0fc468a846b.tar.gz
apt-panopticon-aa916bc92a8a239c30b03bac06a0f0fc468a846b.tar.bz2
apt-panopticon-aa916bc92a8a239c30b03bac06a0f0fc468a846b.tar.xz
Add stuff needed for those detailed graphs using apt-panopticon_cgp.
Diffstat (limited to '')
-rw-r--r--README.md31
-rwxr-xr-xapt-panopticon-report-email-web.lua3
-rw-r--r--apt-panopticron2
-rwxr-xr-xupdate_apt-panopticon16
4 files changed, 51 insertions, 1 deletions
diff --git a/README.md b/README.md
index fd7849e..b976be6 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,37 @@ installed -
43* rrdtool, may need to include lua-rrd. 43* rrdtool, may need to include lua-rrd.
44* xz, on Debian based systems it'll be in the xz-utils package. 44* xz, on Debian based systems it'll be in the xz-utils package.
45 45
46If you want to have lots of graphs, also install
47[https://sledjhamr.org/cgit/apt-panopticon_cgp/](https://sledjhamr.org/cgit/apt-panopticon_cgp/).
48
49Web installation.
50-----------------
51
52This is a suggestion for installation on a Devuan based web server.
53
54Create -
55
56/var/www/html/apt-panopticon
57
58Install apt-panopticon and apt-panopticon_cgp there, so you end up with -
59
60/var/www/html/apt-panopticon/apt-panopticon
61/var/www/html/apt-panopticon/apt-panopticon_cgp
62
63The script update_apt-panopticon is an example script for updating
64everything, including commented out commands to update the source code.
65The file apt-panopticron is an example crontab file for updating
66everything once every ten minutes. They assume your web server user is
67www-data with a group of www-data, and you have a mirror user called
68mirrors. For mirror operators, that mirrors user would be the owner of
69the mirror files. You can change these to suite yourself.
70
71Once everything is updated,
72/var/www/html/apt-panopticon/results/Report-web.html
73
74will point to the main web page, and there will be a link at the bottom of
75that pointing to the detailed graphs.
76
46Using it. 77Using it.
47--------- 78---------
48 79
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index 7d4b0fc..154aa99 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -429,8 +429,9 @@ if nil == web then C("opening mirrors file - " .. e) else
429 "pkgmaster.devuan.org is the master mirror, all the others sync to it.   " .. 429 "pkgmaster.devuan.org is the master mirror, all the others sync to it.   " ..
430 "</p>\n" 430 "</p>\n"
431 ) 431 )
432 web:write( "\n<br>\n<hr>\n\n" ..
433 web:write(APT.dumpTableHTML(m, "", "")) 432 web:write(APT.dumpTableHTML(m, "", ""))
433 web:write( "\n<br>\n<br>\n<h2>==== Graphs: ====</h2>\n" ..
434 "<img src='speed.png'>\n<br>\n<p><a href='../apt-panopticon_cgp/'>More graphs.</a></p><hr>\n\n" ..
434 "<p>The <a href='Report-email.txt'>email report</a>. &nbsp; " .. 435 "<p>The <a href='Report-email.txt'>email report</a>. &nbsp; " ..
435 "All <a href='../results'>the logs and other output</a>. &nbsp; " .. 436 "All <a href='../results'>the logs and other output</a>. &nbsp; " ..
436 "You can get the <a href='https://sledjhamr.org/cgit/apt-panopticon/about/'>source code here</a>.</p>" .. 437 "You can get the <a href='https://sledjhamr.org/cgit/apt-panopticon/about/'>source code here</a>.</p>" ..
diff --git a/apt-panopticron b/apt-panopticron
new file mode 100644
index 0000000..204a516
--- /dev/null
+++ b/apt-panopticron
@@ -0,0 +1,2 @@
1# Mirror tests every 10 minutes everyday
2*/10 * * * * www-data /var/www/html/apt-panopticon/apt-panopticon/update_apt-panopticon
diff --git a/update_apt-panopticon b/update_apt-panopticon
new file mode 100755
index 0000000..b70f4c3
--- /dev/null
+++ b/update_apt-panopticon
@@ -0,0 +1,16 @@
1#!/bin/bash
2
3cd /var/www/html/apt-panopticon/apt-panopticon_cgp
4#git pull > /dev/null
5#chown -R mirrors:www-data *
6cd /var/www/html/apt-panopticon/apt-panopticon
7#git pull > /dev/null
8#chown -R mirrors:www-data *
9
10if [ ! -f apt-panopticon.lock ] ; then
11 rm ../results; ln -s apt-panopticon/results_old ../results
12 flock -n apt-panopticon.lock ./apt-panopticon.lua && rm apt-panopticon.lock
13 rm ../results; ln -s apt-panopticon/results ../results
14fi
15
16#chown -R mirrors:www-data /var/www/html/SledjHamr/apt-panopticon/results