Monitorix unter Debian Linux
Hier ein kleines HowTo für Monitorix unter Debian Linux.
zuerst die Abhängigkeiten installieren:
<syntaxhighlight lang=bash>
aptitude update
aptitude install rrdtool librrds-perl apache2 libwww-perl libmime-lite-perl hddtemp lm-sensors
</source>
nun die Software herunterladen und installieren:
<syntaxhighlight lang=bash>
cd /usr/src
wget http://www.monitorix.org/monitorix_2.4.1-izzy1_all.deb
dpkg -i monitorix_2.4.1-izzy1_all.deb
</source>
ODER über das repository von izzysoft:
/etc/apt/sources.list
deb http://apt.izzysoft.de/ubuntu generic universe
<syntaxhighlight lang=bash>
wget http://apt.izzysoft.de/izzysoft.asc
apt-key add izzysoft.asc
aptitude update
aptitude install monitorix
</source>
Nun ggf. die HTML Dateien in den gewünschten vhost kopieren:
<syntaxhighlight lang=bash>
mv /usr/share/monitorix /srv/httpd/vhosts/monitorixvhost/htdocs/
</source>
und diesen Pfad in der Konfigurationsdatei anpassen:
/etc/monitorix.conf
our $BASE_DIR = "/srv/httpd/vhosts/monitorixvhost/htdocs/";
nun noch den Dienst neustarten <syntaxhighlight lang=bash>/etc/init.d/monitorix restart</source> Nun sollte es unter folgender URL verfügbar sein:
- http://yourvhost/monitorix/
Monitorix und Postfix
Will man das Monitorix das Postfix-Maillog-File auswertet muss zuerst das kleine Tool pflogsumm installiert werden:
<syntaxhighlight lang=bash>aptitude install pflogsumm</source>
dann einfach im Konfigfile /etc/monitorix.conf
our $MAIL_MTA = "postfix";