[mrtg] cfgmaker generates wrong config for OpenBSD

Steve Shipway s.shipway at auckland.ac.nz
Mon Sep 27 06:28:00 CEST 2010


 
> ### Interface 1 >> Descr: 'lo0' | Name: '' | Ip: '10.100.102.98' | Eth:
> # Target[fw1_10.100.102.98]: /10.100.102.98:public at fw1:
... 
> Target[fw1_192.168.199.1]: /192.168.199.1:public at fw1:
> SetEnv[fw1_192.168.199.1]: MRTG_INT_IP="192.168.199.1"
> MRTG_INT_DESCR="em0"
> MaxBytes[fw1_192.168.199.1]: 12500000
...
> Target[fw1_10.68.102.247]: /10.68.102.247:public at fw1:
> SetEnv[fw1_10.68.102.247]: MRTG_INT_IP="10.68.102.247"
> MRTG_INT_DESCR="em1"
> MaxBytes[fw1_10.68.102.247]: 125000000
..
> em0:
>         media: Ethernet autoselect (100baseTX full-duplex)
>         status: active
>         inet 10.100.102.98 netmask 0xffff0000 broadcast 10.100.255.255
> em1: 
>         media: Ethernet autoselect (1000baseT full-duplex)
>         inet 192.168.199.1 netmask 0xffffff00 broadcast 192.168.199.255
...
> 
> whats wrong here, where is my mistake? I try it with and without --
> ifref=ip, everytime the same result.

So, to summarise, it looks like cfgmaker is offsetting the IP addresses by one each time?

Can you let us know which version of MRTG (and therefore the version of cfgmaker) you are using, and update to the latest (2.16.4) if it’s a particularly old one?

Also, have you tried a 'snmpwalk -v2c -c public 192.168.199.1 interfaces' to see what you get?  Possibly the SNMP agent is reporting the wrong data, in which case try restarting it.

Steve

Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz
 Please consider the environment before printing this e-mail 



More information about the mrtg mailing list