[CentOS] Monitoring OpenVPN TUNs with MRTG

Giovanni P. Tirloni tirloni at gmail.com
Sun Oct 4 01:29:53 UTC 2009


On Oct 3, 2009, at 10:32 AM, Eduardo Grosclaude wrote:

> I want to check some client OpenVPN TUN interfaces with MRTG running  
> at my VPN server, so I have to specify their OID interface numbers  
> in mrtg.cfg.
> The problem is, these numbers are dynamic, as they may change  
> whenever OpenVPN restarts for any reason... so, how can I write  
> stanzas such as
>
> Target[somehostvpninterface] :  
> ifInOctets.X&ifOutOctets.X:public@<SOMEHOST.IP>
>
> without wiring up the X interface number into cfg file? Or, is there  
> any method to keep X from changing at the clients?
> Any hints appreciated!

You can take a look at ifrename(8).

Giovanni P. Tirloni
tirloni at gmail.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20091003/ff441d4c/attachment.html>


More information about the CentOS mailing list