Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
centos:mail_c7:mta_13 [05.03.2015 10:11. ] – [Unterprogramme graph_xxx - kumulierte Werte für die Generierung der RRD-Graphiken] django | centos:mail_c7:mta_13 [22.07.2019 15:05. ] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 878: | Zeile 878: | ||
AddHandler cgi-script .cgi | AddHandler cgi-script .cgi | ||
- | < | + | < |
- | AllowOverride None | + | AllowOverride None |
- | Options +ExecCGI | + | Options +ExecCGI |
- | DirectoryIndex mailgraph.cgi | + | DirectoryIndex mailgraph.cgi |
- | Order deny, | + | Order deny, |
- | require IP 10.0. | + | |
</ | </ | ||
ErrorLog logs/ | ErrorLog logs/ | ||
Zeile 4004: | Zeile 4004: | ||
</ | </ | ||
- | # mkdir -p / | + | # mkdir -p / |
- | Bei der **[[centos: | + | Bei der **[[centos: |
{{ : | {{ : | ||
body { width: 900px; background-color: | body { width: 900px; background-color: | ||
Zeile 8203: | Zeile 8203: | ||
=== Unterprogramm print_html | === Unterprogramm print_html | ||
- | + | Wie auch schon bei den [[centos: | |
- | * Erweiterung des Unterprogramms | + | <code perl> |
sub print_html() | sub print_html() | ||
Zeile 8266: | Zeile 8266: | ||
print "< | print "< | ||
- | | + | print "< |
- | | + | print "< |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "< |
- | | + | print "< |
- | | + | print "< |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "< |
print "< | print "< | ||
Zeile 8301: | Zeile 8301: | ||
print "< | print "< | ||
- | | + | print "< |
- | | + | print "< |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "< |
- | | + | print "< |
- | | + | print "< |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "< |
- | | + | print "< |
- | | + | print "< |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "<a href=' |
- | | + | print "< |
} | } | ||
Zeile 9609: | Zeile 9609: | ||
</ | </ | ||
- | ==== TEST/DEMO ==== | + | ==== Apache VHost anlegen ==== |
- | FIXME | + | Damit wir bequem von unserem Browser aus, die aktuellen Graphiken abfragen können, bearbeiten wir entweder die aus dem RPM stammende Konfigurationsdatei oder legen wir nun einen passenden VHost an. |
+ | # vim /etc/ | ||
+ | <file apache / | ||
+ | # | ||
+ | # mailgraph.nausch.org | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@nausch.org | ||
+ | ServerName mailgraph.nausch.org | ||
+ | ServerAlias www.mailgraph.nausch.org | ||
+ | ServerPath / | ||
+ | DocumentRoot "/ | ||
+ | AddHandler cgi-script .cgi | ||
+ | |||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI | ||
+ | DirectoryIndex mailgraph.cgi | ||
+ | require IP 10.0. | ||
+ | </ | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI | ||
+ | DirectoryIndex mailgraph.cgi | ||
+ | require IP 10.0. | ||
+ | </ | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI | ||
+ | DirectoryIndex mailgraph.cgi | ||
+ | require IP 10.0. | ||
+ | </ | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI | ||
+ | DirectoryIndex mailgraph.cgi | ||
+ | require IP 10.0. | ||
+ | </ | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI | ||
+ | DirectoryIndex mailgraph.cgi | ||
+ | require IP 10.0. | ||
+ | </ | ||
+ | |||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Bevor wir bei unserem Webserver eine Reload der Konfiguration vornehmen, testen wir unsere neue Konfigurationsdatei auf syntaktische Fehler. | ||
+ | # apachectl -t | ||
+ | |||
+ | | ||
+ | |||
+ | Da keine Fehler aufgetreten sind, aktivieren wir die neue Konfiguration durch einen Reload des Webserver-Daemon. | ||
+ | # systemctl reload postfix | ||
+ | |||
+ | ==== NGiNX vHost anlegen ==== | ||
+ | Nutzen wir als Webserver **[[centos: | ||
+ | # vim / | ||
+ | <file http / | ||
+ | listen | ||
+ | server_name | ||
+ | access_log | ||
+ | error_log | ||
+ | |||
+ | root / | ||
+ | index mailgraph.cgi; | ||
+ | |||
+ | | ||
+ | fastcgi_split_path_info ^(.+\.cgi)(/ | ||
+ | fastcgi_index mailgraph.cgi; | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | include fastcgi_params; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Den Parameter **fastcgi_pass** setzen wir im übrigen auf den Wert aus der Konfigurationsdatei // | ||
+ | |||
+ | Haben wir die Konfigurationsdatei vervollständigt, | ||
+ | # nginx -t | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | Somit können wir unsere Konfiguration nun noch aktivieren. | ||
+ | # systemctl reload nginx | ||
+ | |||
+ | ==== Webaufruf ==== | ||
+ | Rufen wir nun die definierte Webseite unserer Gesamtstatistikübersicht auf, erhalten wir nachfolgende Ansicht. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Hier können wir nun gezielt einzelne Systeme auswählen, bzw. bei einer ausgewählten Detailstatistikseite zur Summenseite hin und her wechseln. | ||
===== AWStats ===== | ===== AWStats ===== | ||
Auch mit Hilfe des Projektes/ | Auch mit Hilfe des Projektes/ | ||
Zeile 11462: | Zeile 11559: | ||
* **[[wiki: | * **[[wiki: | ||
* **[[http:// | * **[[http:// | ||
- | |||
- | |||
- | |||
- | |||