aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/guifi-snpservices/files/pkg-message.in
blob: 9a485071132a951b66d6fe0a44edf80e45aa0ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

POST-INSTALL CONFIGURATION FOR GUIFI SNPSERVICES
------------------------------------------------

1) Install and/or configure a webserver of your choice to serve
   php files from %%WWWDIR%%/ (you also might have to
   increase your webserver's upstream timeout for certain requests

2) Edit %%WWWDIR%%/common/config.php.template and set
   $SNPGraphServerId to your service's ID (note, it's the *service*,
   NOT the "server" ID)

3) setup a cronjob to keep your graphs and stats up to date; for 
   example:

*/30 * * * * root if [ -x %%WWWDIR%%/graphs ]; then cd %%WWWDIR%%/graphs; fi; if [ -x %%PREFIX%%/bin/php ] && [ -r %%WWWDIR%%/graphs/mrtgcsv2mrtgcfg.php ]; then env LANG=C %%PREFIX%%/bin/php mrtgcsv2mrtgcfg.php >> /var/log/snpservices_mrtgcfg.log 2>&1; fi
*/5 * * * * root if [ -x %%PREFIX%%/bin/mrtg ] && [ -r /var/tmp/snpservices/data/mrtg.cfg ]; then env LANG=C %%PREFIX%%/bin/mrtg /var/tmp/snpservices/data/mrtg.cfg --lock-file /var/tmp/mrtg/lockfile_guifi >> /var/log/snpservices_mrtg.log 2>&1; fi

4) consider logrotating /var/log/snpservices_*.log

For more information, see various guifi.net doc pages, and related:
   
   https://guifi.net/en/node/72593
   http://es.wiki.guifi.net/wiki/Servidor_de_gr%C3%A1ficas
   http://es.wiki.guifi.net/wiki/Servidor_de_gr%C3%A1ficas_1
   http://es.wiki.guifi.net/wiki/Servidor_de_gr%C3%A1ficas_2
   http://www3.uji.es/~vrubert/guifi_linux/graph.html#slide1
   http://es.wiki.guifi.net/wiki/Monitor
   http://guifi.net/ca/node/9071

------------------------------------------------