dur.ch/
konfiguriert
RRD-Grafiken mit Torrus und SNMP
(Weitergeleitet von Snmp)
Installation des SNMPd auf dem Router (OpenWRT)
ln -s /proc/mounts /etc/mtab # Für die Überwachung des Diskplatzes ipkg install snmpd-static
Installation von Torrus
Unter Debian mit apt-get install torrus-apache2
erledigt.
Konfiguration von Torrus
/etc/torrus/conf/torrus-siteconfig.pl
editieren:
# Torrus Site config. Put all your site specifics here. # You need to stop and start Apache server every time you change this file. @Torrus::Global::xmlAlwaysIncludeFirst = ( 'defaults.xml', 'site-global.xml' ); %Torrus::Global::treeConfig = ( 'main' => { 'description' => 'The main tree', 'info' => 'some tree', 'xmlfiles' => [qw(routers.xml)], 'run' => { 'collector' => 1, 'monitor' => 0 } } );
# Customizable look in the HTML page top $Torrus::Renderer::companyName = 'dur.ch'; $Torrus::Renderer::companyURL = 'http://dur.ch'; $Torrus::Renderer::siteInfo = `hostname`; $Torrus::ApacheHandler::authorizeUsers = 0; # Kein Login notwendig 1;
Router eintragen und XML generieren mit:
torrus genddx --host=10.0.75.1 torrus devdiscover --in=routers.ddx --verbose torrus compilexml --tree=main --verbose
Apache restarten und http://hostname/torrus/ aufrufen. Dort sollten jetzt die Grafiken abrufbar sein.