Zum Inhalt springen

Monitorix unter Debian Linux: Unterschied zwischen den Versionen

Aus LHlab Wiki
K Textersetzung - „<source“ durch „<syntaxhighlight“
K Textersetzung - „</source>“ durch „</syntaxhighlight>“
 
Zeile 4: Zeile 4:
aptitude update
aptitude update
aptitude install rrdtool librrds-perl apache2 libwww-perl libmime-lite-perl hddtemp lm-sensors
aptitude install rrdtool librrds-perl apache2 libwww-perl libmime-lite-perl hddtemp lm-sensors
</source>
</syntaxhighlight>
nun die Software herunterladen und installieren:
nun die Software herunterladen und installieren:
* http://www.monitorix.org
* http://www.monitorix.org
Zeile 11: Zeile 11:
wget http://www.monitorix.org/monitorix_2.4.1-izzy1_all.deb
wget http://www.monitorix.org/monitorix_2.4.1-izzy1_all.deb
dpkg -i monitorix_2.4.1-izzy1_all.deb
dpkg -i monitorix_2.4.1-izzy1_all.deb
</source>
</syntaxhighlight>
'''ODER über das repository von izzysoft:'''<br>
'''ODER über das repository von izzysoft:'''<br>
<code>/etc/apt/sources.list</code>
<code>/etc/apt/sources.list</code>
Zeile 22: Zeile 22:
aptitude update
aptitude update
aptitude install monitorix
aptitude install monitorix
</source>
</syntaxhighlight>
Nun ggf. die HTML Dateien in den gewünschten vhost kopieren:
Nun ggf. die HTML Dateien in den gewünschten vhost kopieren:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
mv /usr/share/monitorix /srv/httpd/vhosts/monitorixvhost/htdocs/
mv /usr/share/monitorix /srv/httpd/vhosts/monitorixvhost/htdocs/
</source>
</syntaxhighlight>
und diesen Pfad in der Konfigurationsdatei anpassen:<br>
und diesen Pfad in der Konfigurationsdatei anpassen:<br>
<code>/etc/monitorix.conf</code>
<code>/etc/monitorix.conf</code>
Zeile 33: Zeile 33:
</pre>
</pre>
nun noch den Dienst neustarten
nun noch den Dienst neustarten
<syntaxhighlight lang=bash>/etc/init.d/monitorix restart</source>
<syntaxhighlight lang=bash>/etc/init.d/monitorix restart</syntaxhighlight>
Nun sollte es unter folgender URL verfügbar sein:
Nun sollte es unter folgender URL verfügbar sein:
* <nowiki>http://yourvhost/monitorix/</nowiki>
* <nowiki>http://yourvhost/monitorix/</nowiki>
Zeile 39: Zeile 39:
=== Monitorix und Postfix ===
=== Monitorix und Postfix ===
Will man das Monitorix das Postfix-Maillog-File auswertet muss zuerst das kleine Tool <code>pflogsumm</code> installiert werden:
Will man das Monitorix das Postfix-Maillog-File auswertet muss zuerst das kleine Tool <code>pflogsumm</code> installiert werden:
<syntaxhighlight lang=bash>aptitude install pflogsumm</source>
<syntaxhighlight lang=bash>aptitude install pflogsumm</syntaxhighlight>
dann einfach im Konfigfile <code>/etc/monitorix.conf</code>
dann einfach im Konfigfile <code>/etc/monitorix.conf</code>
<pre>
<pre>

Aktuelle Version vom 1. Januar 2021, 21:20 Uhr

Hier ein kleines HowTo für Monitorix unter Debian Linux.
zuerst die Abhängigkeiten installieren:

aptitude update
aptitude install rrdtool librrds-perl apache2 libwww-perl libmime-lite-perl hddtemp lm-sensors

nun die Software herunterladen und installieren:

cd /usr/src
wget http://www.monitorix.org/monitorix_2.4.1-izzy1_all.deb
dpkg -i monitorix_2.4.1-izzy1_all.deb

ODER über das repository von izzysoft:
/etc/apt/sources.list

deb http://apt.izzysoft.de/ubuntu generic universe
wget http://apt.izzysoft.de/izzysoft.asc
apt-key add izzysoft.asc
aptitude update
aptitude install monitorix

Nun ggf. die HTML Dateien in den gewünschten vhost kopieren:

mv /usr/share/monitorix /srv/httpd/vhosts/monitorixvhost/htdocs/

und diesen Pfad in der Konfigurationsdatei anpassen:
/etc/monitorix.conf

our $BASE_DIR = "/srv/httpd/vhosts/monitorixvhost/htdocs/";

nun noch den Dienst neustarten

/etc/init.d/monitorix restart

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:

aptitude install pflogsumm

dann einfach im Konfigfile /etc/monitorix.conf

our $MAIL_MTA = "postfix";