Monitorix
Monitorix ist ein Monitoringsystem das auf RRDTool basiert. Die Installation ist relativ schnell erledigt und man bekommt schnell aussagekräftige Grafiken.
Links
- pymonitorix - Anzeigeprogramm für den Desktop ohne das der Browser benutzt wird
Installation
Eintrag in /etc/apt/sources.list:
deb http://apt.izzysoft.de/ubuntu generic universe
wget http://apt.izzysoft.de/izzysoft.asc apt-key add izzysoft.asc
siehe: Installationsanleitung
aptitude update aptitude install monitorix
Apache
Wenn Apache benutzt wird in /etc/monitorix.conf:
<httpd_builtin>
enabled = n
Der Benutzer des Webservers muss die Bilder schreiben können (Standardeinstellung „nobody“):
chown www-data.www-data /usr/share/monitorix/imgs
Die Konfiguration für Apache steht in /etc/apache2/conf.d/monitorix.conf, hier sollten IPs freigeschaltet bzw. per htaccess Benutzer eingerichtet werden.
Alias /monitorix /usr/share/monitorix
ScriptAlias /monitorix-cgi /usr/share/monitorix/cgi
<Directory /usr/share/monitorix/cgi/>
DirectoryIndex monitorix.cgi
Options ExecCGI
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
# Apache rules to restrict access to Monitorix:
# Don't forget to add <username> in .htpasswd with the 'htpasswd' command.
#
#<Directory "/usr/share/monitorix">
# Options Indexes Includes FollowSymLinks
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# AllowOverride None
# AuthUserFile /etc/httpd/conf/.htpasswd
# AuthGroupFile /dev/null
# AuthName "Monitorix: Restricted access, sorry."
# AuthType Basic
# Require user <username>
# Satisfy Any
#</Directory>
Dienste neu starten
service monitorix restart service apache2 reload
Konfiguration
Die Konfiguration findet in /etc/monitorix.conf statt.
title = Monitorix auf server.tld hostname = server.tld mail_log = /var/log/mail.log