[mrtg] Re: .cfg file issue

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Thu Feb 13 10:03:42 MET 2003


Jeroen,

Look at the third line: '### * has a speed of 0 which makes no sense'
My guess is that your switch ports do not have a (fixed) speed set. If
you query them with SNMP you will get back a zero. Since MRTG (and
configmaker) needs the speed of a port for its maxbytes value, the cfg
file can not be generated. To solve this you can either set the speed on
your switch ports and rerun cfgmaker or write a script that removes the
'# ' in front of the relevant lines in your config and puts in a
realistic maxbytes value.

HTH,

Jan.

-----Original Message-----
From: Jeroen.vanGeem at BAKERNET.com [mailto:Jeroen.vanGeem at BAKERNET.com] 
Sent: Thursday, February 13, 2003 9:05 AM
To: Eric.Brander at ACS-INC.com; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: .cfg file issue



I already tried that one, unfortunately without succes.

All inactive interfaces are still being marked with '#' signs, started
with this comment:

### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense

-----Original Message-----
From: Brander, Eric [mailto:Eric.Brander at ACS-INC.com]
Sent: woensdag 12 februari 2003 19:09
To: 'Jeroen.vanGeem at BAKERNET.com'; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] .cfg file issue


Try option --show-op-down on your cfgmaker command line.

Eric Brander
ACS
Texas CHIP Account
Sr. Communications Engineer - Information Systems Department
512.336.3331 Eric dot Brander at acs-inc dot com


-----Original Message-----
From: Jeroen.vanGeem at BAKERNET.com [mailto:Jeroen.vanGeem at BAKERNET.com]
Sent: Wednesday, February 12, 2003 10:59 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] .cfg file issue



Hello all,

I'm having a problem creating .cfg files in a Win32 enviroment that
includes all interfaces of a switch. 
But after I created the .cfg file, the inactive ports are all labeled
with '#' signs as inactive. Trying to remove those signs in notepad and
restarting doens't show any graph when I 'activate' a port (connecting
to a pc and start downloading stuff).

Anybody an idea? I tried to work with if statements, but they don't seem
to work either.

Original line:
perl cfgmaker bla at ip_adres --global "WorkDir: c:\inetpub\wwwroot\switch"
--output switch.cfg

Experimental 'If statement' line: :-)
perl cfgmaker --output switch.cfg bla at ip_adres --if-filter=$if_admin &&
$default_iftype --global "WorkDir: c:\inetpub\wwwroot\switch"

It says then: '$default_iftype' is not recognized as an internal or
external command, operable program or batch file.


Any help is appreciated!

Tnx in advance,

Jeroen

--
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

--
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



Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. 
Aan dit bericht kunnen geen rechten worden ontleend. 

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt. 
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.

--
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