IfgraphOnSuse

From BHHenry
Revision as of 17:12, 5 August 2006 by Ben (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • ifgraph sourceforge page
  • The latest version of ifgraph is 0.4.10
  • extract to /srv/www/htdocs/ifgraph-0.4.10/
  • create /srv/www/htdoc/ifgraph-0.4.10/rrd directory
  • edit ifgraph.conf

[global] rrdtool = /usr/bin/rrdtool rrddir = /srv/www/htdocs/ifgraph-0.4.10/rrd graphdir = /srv/www/htdocs/ifgraph-0.4.10 template = /srv/www/htdocs/ifgraph-0.4.10/templates/en imgformat=PNG

host = mono.ugca.com community = public port =161 max=100M dimension=550x200 colors=back#000000,font#FFFFFF,shadea#212121,canvas#232323,mgrid#FF0000,out#FFFFFF options=noerror hbeat=600 retry=2 timeout=5

[m0n0wall-wan] host=mono.ugca.com community=public port=161 interface=2 max=100M dimension=550x200 title=In/Out data for m0n0wall WAN interface colors=back#000000,font#FFFFFF,shadea#212121,canvas#232323,mgrid#FF0000,out#FFFFFF options=noerror ylegend=kbits per second legends=kbits entering our network,kbits leaving our network shortlegend=kbits/sec hbeat=600 retry=2 timeout=5 step = 300 periods = -1day, -1week, -1month, -1year

[m0n0wall-lan] host=mono.ugca.com community=public port=161 interface=1 max=100M dimension=550x200 title=In/Out data for m0n0wall LAN interface colors=back#000000,font#FFFFFF,shadea#212121,canvas#232323,mgrid#FF0000,out#FFFFFF options=noerror ylegend=kbits per second legends=kbits entering our LAN network,kbits leaving our LAN network shortlegend=kbits/sec hbeat=600 retry=2 timeout=5 step = 300 periods = -1day, -1week, -1month, -1year

  • rrdtool & perl need to be installed
  • INSTALL file has instructions for running find-if.pl
  • edit /etc/crontab

  • * * * * root /srv/www/htdocs/ifgraph-0.4.10/ifgraph.pl -c /srv/www/htdocs/ifgraph-0.4.10/ifgraph.conf > /dev/null
  • /5 * * * * root /srv/www/htdocs/ifgraph-0.4.10/makegraph.pl -c /srv/www/htdocs/ifgraph-0.4.10/ifgraph.conf > /dev/null

  • this should probably be changed to use the wwwrun user rather than root.
  • edit /etc/apache2/httpd.conf

add: Alias /ifgraph "/srv/www/htdocs/ifgraph-0.4.10/"

  • restart apache service (can use yast for this)