[mrtg] MRTG - Specify interfaces

Jan Ferré Jan.Ferre at uni-c.dk
Fri Dec 18 20:21:29 CET 2009

Ehhh - you're to set up a cfg-file with content something like

WorkDir:  xxxx
Refresh:  300
Interval: 5
LogFormat: rrdtool
ifInOctets.14&ifOutOctets.14:xtremelysecret at

aren't you?

The .14 is the ifindex for the desired interface. Which can be found
using a smtpwalk on the equipment.
And if you desire more interfaces, just add more target lines

Best regards

Jan Ferré

Frank Adem wrote:
> Thanks. I've had a look into it, but I can't get it to work. I tried
> this command, which works, but still only shows eth0:
> cfgmaker '--if-filter=$default && $if_type==23' --no-down --global
> 'WorkDir: /var/www/mrtg2' --output /etc/mrtg2.cfg public at
> All I want is to see ppp0, also when it is down...
> Thanks
> On Thu, Dec 17, 2009 at 7:23 PM, Steve Shipway <s.shipway at auckland.ac.nz> wrote:
>> Yes.
>> In fact, MRTG will graph anything it can collect data for.  You probably are referring to the cfgmaker program, which will generate a MRTG configuration file for you and by default will comment out definitions for inactive interfaces.
>> Check the cfgmaker documentation, particularly the --if-filter and --nodown options, for more details.
>> Steve
>> ________________________________________
>> From: mrtg-bounces at lists.oetiker.ch [mrtg-bounces at lists.oetiker.ch] On Behalf Of Frank Adem [frankadem at gmail.com]
>> Is there a way to specify which interfaces MRTG graphs? Currently, it
>> only seems to work on eth0, but I would also like it to monitor ppp0,
>> which is the interface of a PPTP to the server. However this interface
>> is not always available (off when there is no PPTP connection).
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Jan Ferré - UNI-C Netdrift - DTU Bygning 304, DK-2800 Lyngby
tlf. +45 3587 8935, cell. +45 2160 8012, fax. +45 3587 8990
EAN-no.: 5798000555198

More information about the mrtg mailing list