[SC.LUG] Anyone use MRTG?
damian at damosoft.co.uk
damian at damosoft.co.uk
Sat Mar 6 21:52:23 GMT 2004
Hi Guys,
I did find this for mrtg config file:
WorkDir: /var/www/html/mrtg
Target[eth0]: `perl -e '@a=split(/[:\s]+/,qx(grep eth0
/proc/net/dev));$f="%.0f";$fmt="$f\n$f\n1\neth0 traffic\n";$s=sprintf
$fmt,$a[2],$a[10];print $s;print STDERR $s;'`;
MaxBytes[eth0]: 1250000
kilo[eth0]: 1024
YLegend[eth0]: Bytes per second
ShortLegend[eth0]: B/s
Title[eth0]: Traffic Analysis
PageTop[eth0]: <h1>Stats for ws1</h1>
Timezone[eth0]: GMT
Legend1[eth0]: Incoming Traffic in Bytes per second
Legend2[eth0]: Outgoing Traffic in Bytes per second
Legend3[eth0]: Maximal 10 Minute Incoming Traffic
Legend4[eth0]: Maximal 10 Minute Outgoing Traffic
LegendI[eth0]: In:
LegendO[eth0]: Out:
But really I want bandwidth and total of data transferred, that has to be
done with SNMP?
On Sat, 6 Mar 2004, Greg Bolshaw wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Seth Kneller <seth at autismisanotherworld.com> wrote:
> > Greg Bolshaw wrote:
> > | MRTG is the best tool for the job providing the device you want to
> > | monitor supports SNMP.
> >
> > What if the device you want to monitor doesn't support SNMP? Is it
> > possible to get MRTG to produce graphs of traffic over a certain
> > interface? Has anyone done this?
>
> Yes, I've done this. The only way that MRTG can interface is using SNMP.
> If SNMP isn't already available, you'll need to setup the net-snmp[1]
> daemon.
>
> Hope that helps
> Greg
>
> [1] http://net-snmp.sourceforge.net/
>
> - --
> +---------------------------------------------------------------+
> | Greg Bolshaw LPIC | mailto:greg at linuxtechnologies.co.uk |
> | Consultant | JID: greg at jabber.linuxtechnologies.co.uk |
> | Linux Technologies | http://www.linuxtechnologies.co.uk |
> +---------------------------------------------------------------+
> | Public Jabber server: jabber.linuxtechnologies.co.uk |
> +---------------------------------------------------------------+
>
> /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
> | This e-mail has been digitally signed using PGP (Pretty Good |
> | Privacy) to guarantee authenticity. |
> | |
> | For more information, see http://www.pgpi.org/doc/overview/. |
> \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD4DBQFASkXoS94XrT3lHYkRAp8FAJiHVm4SyifjY70VsR3wRfq/kX91AJ9cXrhT
> cKkHv0+126qZtgBdQGoBKA==
> =pHNA
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> SC mailing list
> SC at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/sc
>
--
Damian Parker
Damosoft
http://www.damosoft.co.uk
http://tikiwiki.org
http://tikigod.org
More information about the SC
mailing list