----- Original Message -----
From: "Rodolfo J. Paiz" <rpaiz@xxxxxxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
Sent: Monday, October 13, 2003 10:39
PM
Subject: SNMP + MRTG... WTF?
> Hey, all:
>
> I have set out to learn how to install MRTG, but it's proving harder than I
> thought to find instructions. I know that I have to set up SNMP first (yes,
> ucd-snmp and ucd-snmp-utils are installed), but I cannot figure out how.
> After that I know I have to configure MRTG, but I cannot figure out how.
>
> Googling has not helped, the LDP has no HOWTO with either the letters
> "mrtg" or "snmp" in the title, every man page I can find is unhelpful, as
> is the author's website. Can anyone, PLEASE, point me to an $!@#!% FM? I'll
> happily R it, when I can find it!
>
> Cheers,
>
>
> --
> Rodolfo J. Paiz
> rpaiz@xxxxxxxxxxxxxx
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>
> I have set out to learn how to install MRTG, but it's proving harder than I
> thought to find instructions. I know that I have to set up SNMP first (yes,
> ucd-snmp and ucd-snmp-utils are installed), but I cannot figure out how.
> After that I know I have to configure MRTG, but I cannot figure out how.
>
> Googling has not helped, the LDP has no HOWTO with either the letters
> "mrtg" or "snmp" in the title, every man page I can find is unhelpful, as
> is the author's website. Can anyone, PLEASE, point me to an $!@#!% FM? I'll
> happily R it, when I can find it!
>
> Cheers,
>
>
> --
> Rodolfo J. Paiz
> rpaiz@xxxxxxxxxxxxxx
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
Rodolfo,
My MRTG Config file: ((Edited for my comm strings
-- MYCOMMSTRING is substituted))
<snip>
WorkDir: /var/www/html/mrtg
Options[_]: bits,growright
Options[_]: bits,growright
######################################################################
# System: www.perfectnetusa.com
# Description: Linux www.perfectnetusa.com 2.4.18-18.8.0 #1 Wed Nov 13 23:10:57 EST 2002 i586
# Contact: Brett Franck <bfranck@xxxxxxxxxxxxxxxxx>
# Location: Chicago IL
######################################################################
# System: www.perfectnetusa.com
# Description: Linux www.perfectnetusa.com 2.4.18-18.8.0 #1 Wed Nov 13 23:10:57 EST 2002 i586
# Contact: Brett Franck <bfranck@xxxxxxxxxxxxxxxxx>
# Location: Chicago IL
######################################################################
### Interface 2 >> Descr: 'eth0' | Name: '' |
Ip: '192.168.1.50' | Eth: '00-50-22-91-b9-29' ###
Target[r1]:
2:MYCOMMSTRING@xxxxxxxxxxxx:
SetEnv[r1]: MRTG_INT_IP="192.168.1.50" MRTG_INT_DESCR="eth0"
MaxBytes[r1]: 1250000
Title[r1]: MRTG Stats for PerfectNetUSA.Com
PageTop[r1]: <H1>Traffic Analysis for WAN Interface -- PerfectNetUSA.Com</H1>
<TABLE>
<TR><TD>System:</TD> <TD>Perfect Net USA Inc in Chicago IL</TD></TR>
<TR><TD>Description:</TD><TD>Linux version 2.4.20-20.8 (Red Hat Linux 8.0 3.2-7) on i586 (450MHZ Pentium III w/256MG RAM)</TD></TR>
<TR><TD>Contact:</TD> <TD>Brett Franck <bfranck@xxxxxxxxxxxxxxxxx></TD></TR>
<TR><TD>Interface Name:</TD> <TD>Ethernet 1 (WAN/ADSL)</TD></TR>
<TR><TD>Max Speed:</TD> <TD>768 Kbits/s</TD></TR>
</TABLE>
</snip>
SetEnv[r1]: MRTG_INT_IP="192.168.1.50" MRTG_INT_DESCR="eth0"
MaxBytes[r1]: 1250000
Title[r1]: MRTG Stats for PerfectNetUSA.Com
PageTop[r1]: <H1>Traffic Analysis for WAN Interface -- PerfectNetUSA.Com</H1>
<TABLE>
<TR><TD>System:</TD> <TD>Perfect Net USA Inc in Chicago IL</TD></TR>
<TR><TD>Description:</TD><TD>Linux version 2.4.20-20.8 (Red Hat Linux 8.0 3.2-7) on i586 (450MHZ Pentium III w/256MG RAM)</TD></TR>
<TR><TD>Contact:</TD> <TD>Brett Franck <bfranck@xxxxxxxxxxxxxxxxx></TD></TR>
<TR><TD>Interface Name:</TD> <TD>Ethernet 1 (WAN/ADSL)</TD></TR>
<TR><TD>Max Speed:</TD> <TD>768 Kbits/s</TD></TR>
</TABLE>
</snip>
There is a tool to make this.......mrtg
cfgmaker
I used this command and then edited the mrtg.cfg
file to my HTML tastes......
/usr/bin/cfgmaker --global 'WorkDir:
/var/www/html/mrtg' --global 'Options[_]: bits,growright' --output
/etc/mrtg/mrtg.cfg MYCOMMSTRING@192.168.1.50
My SNMP config file: ((Edited for my comm strings
-- mycommstring is substituted))
<snip>
com2sec local
192.168.1.0/24 MYCOMMSTRING
com2sec mynetwork 192.168.1.0/24 MYCOMMSTRING2
com2sec mynetwork 192.168.1.0/24 MYCOMMSTRING2
group MyRWGroup
v2c local
group MyROGroup v1 mynetwork
view all included .1 80
group MyROGroup v1 mynetwork
view all included .1 80
access MyROGroup ""
any noauth
exact all none
none
access MyRWGroup "" any noauth exact all all all
access MyRWGroup "" any noauth exact all all all
I do not allow my router to pass SNMP traffic out
my WAN interface, but I still setup the SNMP comm strings as non public and
private.....safer...paranoid??? Don't care...safer...
:-)
Brett