[mrtg] MRTG - Specify interfaces

Frank Adem frankadem at gmail.com
Sun Dec 20 10:14:28 CET 2009


Thanks. The "equipment" is the server on which snmp and mrtg run. So
how do I get the ifindex for the ppp0 interface?

On Fri, Dec 18, 2009 at 8:21 PM, Jan Ferré <Jan.Ferre at uni-c.dk> wrote:
> Ehhh - you're to set up a cfg-file with content something like
>
> WorkDir:  xxxx
> Refresh:  300
> Interval: 5
> LogFormat: rrdtool
> Target[PHK.LY8-DASV.IN-OUT]:
> ifInOctets.14&ifOutOctets.14:xtremelysecret at 130.225.244.221
>
> 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 127.0.0.1
>>
>> 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
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>



More information about the mrtg mailing list