[mrtg] newbie question... (long)

Bruyere, Michel mbruyere at ezemcanada.com
Wed Apr 2 18:31:26 MEST 2003


Hi all, 
	I'm sorry to ask a beginners question here but, i tried to make MRTG
work on baystacks 350 Nortel's switches and i can't get any results.

Here is my setup:
I have 2 baystack switches with a dual fiber port expansion. Normally they
are 24 ports switches but now with the fiber exp. they have 26 ports. I
would like to monitor the port 25 and 26 of each switches to establish a
baseline (other ports can be monitored as well but the most important one
are 25 and 26). Another information that may be important to know is that
the exp ports are configured as spanning tree instead of trunk (this will
change eventually).

I installed activeperl 5.8 on a Windows 2000 pro station and apache 2.0.4
(not used yet but i'll use it to access the graphs on the station trought
the network). I unzipped the MRTG 2.9.27 on the station too. 

Then i did some reading on how to implement this on
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/nt-guide.html and 
In the html doc files that came with the mrtg package. 

I've been able to creat my cfg file using the steps descibed in the doc.
I've also been able to run mrtg with the configurtion w/o errors. The
problem reside in the fact that i can't get any graphs even after running
the mrtg tool at each 4 to 5 mins for the last 30 minutes. Here is an
example of the log file generated after running mrtg.

1049299654 3390994891 2603227281
1049299654 0 1049 0 1049
1049299640 0 636 0 881
1049299500 0 0 0 0
1049299200 0 0 0 0
1049298900 0 0 0 0
1049298600 0 0 0 0
1049298300 0 0 0 0
1049298000 0 0 0 0
1049297700 0 0 0 0
1049297400 0 0 0 0
1049297100 0 0 0 0
1049296800 0 0 0 0
1049296500 0 0 0 0
1049296200 0 0 0 0
1049295900 0 0 0 0
1049295600 0 0 0 0
1049295300 0 0 0 0
1049295000 0 0 0 0
1049294700 0 0 0 0
1049294400 0 0 0 0
...
This continue like this until the end of the file

Here is my cfg file 
(NB.: when the cfg was created originally, it had the  interface 1 to 26 and
i deleted 1 to 24. like i said i would like to monitor only prot 25 and 26)



workdir: c:\aa\2
# Created by
# c:\mrtg-2.9.27\bin\cfgmaker public at 192.147.160.91 --global 'workdir:
c:\aa\2' --output mrtgtest.cfg

### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits


######################################################################
# System: 
# Description: BayStack 350-24T HW:RevD  FW:V1.33 SW:v1.2.0.11
# Contact: 
# Location:  lh
######################################################################




### Interface 25 >> Descr: 'BayStack-350-24T---25' | Name: '' | Ip: '' |
Eth: '' ###

Target[192.147.160.91_25]: 25:public at 192.147.160.91:
SetEnv[192.147.160.91_25]: MRTG_INT_IP=""
MRTG_INT_DESCR="BayStack-350-24T---25"
MaxBytes[192.147.160.91_25]: 12500000
Title[192.147.160.91_25]: Traffic Analysis for 25 -- 
PageTop[192.147.160.91_25]: <H1>Traffic Analysis for 25 -- </H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD> in  lh</TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>BayStack-350-24T---25  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5 MBytes/s</TD></TR>
 </TABLE>


### Interface 26 >> Descr: 'BayStack-350-24T---26' | Name: '' | Ip: '' |
Eth: '' ###

Target[192.147.160.91_26]: 26:public at 192.147.160.91:
SetEnv[192.147.160.91_26]: MRTG_INT_IP=""
MRTG_INT_DESCR="BayStack-350-24T---26"
MaxBytes[192.147.160.91_26]: 12500000
Title[192.147.160.91_26]: Traffic Analysis for 26 -- 
PageTop[192.147.160.91_26]: <H1>Traffic Analysis for 26 -- </H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD> in  lh</TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>BayStack-350-24T---26  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5 MBytes/s</TD></TR>
 </TABLE>


i have another little question, something strange is happening with the
"workdir" param. I've set it to c:\aa\2 (i've set this up only to do some
tests)  and it is truncating the path to c:\aa only...(all files are
generated in c:\aa). Is there something wrong in my config file or a known
bug for this?


Thanks for your help
And sorry for the monster post!


M. Bruyere

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list