![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
|
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?
__________________
. |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Feb 2002
Location: hills.perth.wa.au
Posts: 451
|
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? |
|
|
|
|
|
#3 |
|
Old Member
Join Date: Dec 2001
Location: Kellyville NSW
Posts: 3,679
|
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]: Margin: LegendO[mar-down]: 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]: Margin: LegendO[mar-up]: 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> 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.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
|
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?
__________________
. |
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2002
Location: Melbourne
Posts: 1,301
|
woot!
Figured out what was wrong! That teach me to block perl from accessing my router by zonealarm...
__________________
. |
|
|
|
|
|
#6 |
|
Old Member
Join Date: Dec 2001
Location: Kellyville NSW
Posts: 3,679
|
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.
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|