Difference between revisions of "Setting up MRTG and Smokeping to Monitor Bandwidth Usage and Network Latency"

From Alpine Linux
Jump to: navigation, search
(added some jot notes from smokeping setup on Alpine 1.10)
(Propose merge)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Coming soon: tutorial for how to set up MRTG and Smokeping monitoring.
+
{{Merge|Setting up Smokeping}}
 +
{{Draft|}}
  
 
Notes for smokeping(in progress):
 
Notes for smokeping(in progress):
  
Lighttpd - do not execute CGIs with interpreter
+
Lighttpd - do not execute CGIs with interpreter<br />
Need perl-rrd
+
Need perl-rrd<br />
Need perl CPAN URI::Escape
+
Need perl CPAN URI::Escape<br />
Paths within smokeping scripts (/etc/smokeping/*, smokeping.cgi, perl libs, scripts in bin)
+
Paths within smokeping scripts (/etc/smokeping/*, smokeping.cgi, perl libs, scripts in bin)<br />
Setup monitoring hosts
+
Setup monitoring hosts<br />
 +
<br />
 +
 
 +
Notes for MRTG (in progress):
 +
 
 +
Deps: gd-dev, libpng-dev, zlib-dev<br />
 +
configure --prefix=/usr/local/mrtg-2<br />
 +
make && make install<br />
 +
/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<br />
 +
Check that output folder is accessible via web server (ie /var/www/localhost or whatever you have configured)<br />
 +
To test: /usr/local/mrtg-2/bin/mrtg /path/to/config/file/mrtg.cfg<br />
 +
Once working, add to crontab to run as often as desired (ie 5 min)<br />
 +
 
 +
[[Category:Monitoring]]

Latest revision as of 19:50, 23 March 2012

Tango-two-arrows.png
This material is proposed for merging ...

It should be merged with Setting up Smokeping. (Discuss)

Underconstruction clock icon gray.svg
This material is work-in-progress ...


(Last edited by Dubiousjim on 23 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)