Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Specific Hardware Topics > Networking, Telephony & Internet

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 25th August 2003, 6:50 PM   #1
Draemad Thread Starter
Member
 
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
Default MRTG configuration

Does anybody have a good guide to setting up mrtg?

I am trying to set it up to monitor my dlink dsl 504 modem/router. dlink claims it supports snmp, so I am assuming I can configure mrtg to do this.

Is it possible?
__________________
.
Draemad is offline   Reply With Quote

Join OCAU to remove this ad!
Old 25th August 2003, 8:35 PM   #2
Sm00thY
Member
 
Sm00thY's Avatar
 
Join Date: Feb 2002
Location: hills.perth.wa.au
Posts: 451
Default

mrtg.planetmirror.com and http://people.ee.ethz.ch/~oetiker/webtools/mrtg/ would be good places to start. Plenty of mirrors and docs around to use.

I started to try and change a few settings on IPCop (yes I'm possibly changing firewall camps) to do with MRTG graphing but there are not a lot of options with the graphs themselves. The preferred option seems to be to use RRDtool with MRTG.

I'm looking at -->trying<-- my hand at putting ipac-ng graphs on IPCop 1.3.0 (which I believe is what is going on the next version of IPCop?).

Sorry, no tips to help you directly, but hopefully some links that might be useful?
Sm00thY is offline   Reply With Quote
Old 25th August 2003, 9:29 PM   #3
Rogue
Old Member
 
Rogue's Avatar
 
Join Date: Dec 2001
Location: Kellyville NSW
Posts: 3,679
Default

There are plenty of HOW-TO files out there for actually installing MRTG on your system. I'll assume that you can at least get it installed. The big challenge is normally writing the config file, so to help you there...

Here is my ADSL.cfg file.
Code:
WorkDir: /home/e-smith/files/ibays/mrtg/html/adsl
IconDir: /mrtg
#LoadMIBs: /etc/mrtg/MIBs/dsl500.mib
Options[_]: growright,bits, nopercent

Target[mar-down]: .1.3.6.1.4.1.171.11.30.2.28.0&.1.3.6.1.4.1.171.11.30.2.26.0:pu
blic@10.0.0.138
Title[mar-down]: Downstream margin and attenuation
RouterUptime[mar-down]: public@10.0.0.138
MaxBytes[mar-down]: 50
Options[mar-down]: gauge, growright, nopercent
YLegend[mar-down]: Decibels
ShortLegend[mar-down]: dB
Legend1[mar-down]: Margin
Legend2[mar-down]: Attenuation
Legend3[mar-down]: Maximal 5 Minute Margin
Legend4[mar-down]: Maximal 5 Minute Attenuation
LegendI[mar-down]: &nbsp;Margin:
LegendO[mar-down]: &nbsp;Attenuation:
PageTop[mar-down]: <H1>Downstream Margin and Attenuation</H1>

Target[mar-up]: .1.3.6.1.4.1.171.11.30.2.27.0&.1.3.6.1.4.1.171.11.30.2.25.0:publ
ic@10.0.0.138
Title[mar-up]: Upstream margin and attenuation
RouterUptime[mar-up]: public@10.0.0.138
MaxBytes[mar-up]: 50
Options[mar-up]: gauge, growright, nopercent
YLegend[mar-up]: Decibels
ShortLegend[mar-up]: dB
Legend1[mar-up]: Margin
Legend2[mar-up]: Attenuation
Legend3[mar-up]: Maximal 5 Minute Margin
Legend4[mar-up]: Maximal 5 Minute Attenuation
LegendI[mar-up]: &nbsp;Margin:
LegendO[mar-up]: &nbsp;Attenuation:
PageTop[mar-up]: <H1>Upstream Margin and Attenuation</H1>

Target[kb-sum]: .1.3.6.1.2.1.2.2.1.10.19&.1.3.6.1.2.1.2.2.1.16.19:public@10.0.0.
138 / 1024
Title[kb-sum]: Octets Progressive Total
#RouterUptime[kb-sum]: public@10.0.0.138
MaxBytes[kb-sum]: 100000000
kMG[kb-sum]: k,M,G,T
Options[kb-sum]: gauge, growright, nopercent
YLegend[kb-sum]: bytes
ShortLegend[kb-sum]: bytes
Legend1[kb-sum]: Downstream
Legend2[kb-sum]: Upstream
PageTop[kb-sum]: <H1>Octets Progressive total</H1>

Target[pk-sum]: .1.3.6.1.2.1.2.2.1.11.19&.1.3.6.1.2.1.2.2.1.17.19:public@10.0.0.
138 / 1000
#RouterUptime[pk-sum]: public@10.0.0.138
Title[pk-sum]: Packets Progressive Total
MaxBytes[pk-sum]: 100000000
kMG[pk-sum]: k,M,G,T
Options[pk-sum]: gauge, growright, nopercent
YLegend[pk-sum]: packets
ShortLegend[pk-sum]: packets
Legend1[pk-sum]: Downstream
Legend2[pk-sum]: Upstream
PageTop[pk-sum]: <H1>Packets Progressive total</H1>

Target[kb-current]: .1.3.6.1.2.1.2.2.1.10.19&.1.3.6.1.2.1.2.2.1.16.19:public@10.
0.0.138
RouterUptime[kb-current]: public@10.0.0.138
Title[kb-current]: Bytes
MaxBytes[kb-current]: 100000000
Options[kb-current]: growright, nopercent
YLegend[kb-current]: bytes
ShortLegend[kb-current]: bytes
Legend1[kb-current]: Downstream
Legend2[kb-current]: Upstream
PageTop[kb-current]: <H1>Octets</H1>

Target[pk-current]: .1.3.6.1.2.1.2.2.1.11.19&.1.3.6.1.2.1.2.2.1.17.19:public@10.
0.0.138
RouterUptime[pk-current]: public@10.0.0.138
Title[pk-current]: Packets
MaxBytes[pk-current]: 100000000
Options[pk-current]: growright, nopercent
YLegend[pk-current]: packets
ShortLegend[pk-current]: packets
Legend1[pk-current]: Downstream
Legend2[pk-current]: Upstream
PageTop[pk-current]: <H1>Packets</H1>

Target[cap-per]: .1.3.6.1.4.1.171.11.30.2.23.0&.1.3.6.1.4.1.171.11.30.2.24.0:pub
lic@10.0.0.138
Title[cap-per]: Capacity Availability
RouterUptime[cap-per]: public@10.0.0.138
MaxBytes[cap-per]: 100
Options[cap-per]: gauge, growright, nopercent
YLegend[cap-per]: %
ShortLegend[cap-per]: %
Legend1[cap-per]: Downstream
Legend2[cap-per]: Upstream
PageTop[cap-per]: <H1>Capacity Availability Percentage</H1>

Target[ret-init]: .1.3.6.1.4.1.171.11.30.2.31.0&.1.3.6.1.4.1.171.11.30.2.33.0:pu
blic@10.0.0.138
Title[ret-init]: Retrains & Initialization Failures
RouterUptime[ret-init]: public@10.0.0.138
MaxBytes[ret-init]: 100
Options[ret-init]: gauge, growright, nopercent
YLegend[ret-init]: retrains
ShortLegend[ret-init]: fails
Legend1[ret-init]: Retrains
Legend2[ret-init]: Init Fails
PageTop[ret-init]: <H1>Retrains & Initialization Failures</H1>
This assumes your router LAN IP is 10.0.0.138, that you have downloaded the dsl500.mib from D-link and you're using the default E-Smith directory structure. Obviously you'll need to update this to suit your installation.

Notes:
Progressive totals reset back to 0 at approximately 4GB.
Current totals show traffic passed in the last 5 minutes.
Capacity Available doesn't seem to change much - I think it's a feature not implemented in Australia.
Some of the titles, headings, etc could probably do with some cleanup.

There are also several error counting registers that you can find if you snp-walk the device. Due to an NDA, I can't give you the details of those here.
__________________
In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship.

Power corrupts. Power failure corrupts absolutely.
Rogue is offline   Reply With Quote
Old 30th August 2003, 12:59 AM   #4
Draemad Thread Starter
Member
 
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
Default

I have tried to find the dsl504.mib file but have had no luck?

Do you have a link.

Also when attempting to use the cfgmaker I get the following error:

C:\MRTG\bin>perl cfgmaker --noreversedns private@192.168.0.1 --output adsl.cfg
--base: Get Device Info on private@192.168.0.1:
SNMP Error:
send_query: Unknown error
SNMPv1_Session (remote host: "192.168.0.1" [192.168.0.1].161)
community: "private"
request ID: -1293236319
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPWALK Problem for 1.3.6.1.2.1.1 on private@192.168.0.1:

Any idea's?
__________________
.
Draemad is offline   Reply With Quote
Old 30th August 2003, 1:45 AM   #5
Draemad Thread Starter
Member
 
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
Default

woot!

Figured out what was wrong!

That teach me to block perl from accessing my router by zonealarm...

__________________
.
Draemad is offline   Reply With Quote
Old 31st August 2003, 12:57 AM   #6
Rogue
Old Member
 
Rogue's Avatar
 
Join Date: Dec 2001
Location: Kellyville NSW
Posts: 3,679
Default

email D-Link for the 504 MIB file. I can't link the one I have as it's a reseller/ISP-only version (has certain restricted entries, etc).
__________________
In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship.

Power corrupts. Power failure corrupts absolutely.
Rogue is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!