Setting up MRTG and Smokeping to Monitor Bandwidth Usage and Network Latency

From Alpine Linux
Revision as of 09:10, 12 March 2012 by Dubiousjim (talk | contribs) (Category:Monitoring, use {{Draft}})
Jump to: navigation, search
Underconstruction clock icon gray.svg
This material is work-in-progress ...

This page is still being developed.
(Last edited by Dubiousjim on 12 Mar 2012.)

Notes for smokeping(in progress):

Lighttpd - do not execute CGIs with interpreter
Need perl-rrd
Need perl CPAN URI::Escape
Paths within smokeping scripts (/etc/smokeping/*, smokeping.cgi, perl libs, scripts in bin)
Setup monitoring hosts

Notes for MRTG (in progress):

Deps: gd-dev, libpng-dev, zlib-dev
configure --prefix=/usr/local/mrtg-2
make && make install
/usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /path/to/work/dir' --global 'Options[_]: bits,growright' --output /path/to/config/file/mrtg.cfg snmp-community@host
Check that output folder is accessible via web server (ie /var/www/localhost or whatever you have configured)
To test: /usr/local/mrtg-2/bin/mrtg /path/to/config/file/mrtg.cfg
Once working, add to crontab to run as often as desired (ie 5 min)