[CentOS] Monitoring OpenVPN TUNs with MRTG

Sat Oct 3 13:32:33 UTC 2009
Eduardo Grosclaude <eduardo.grosclaude at gmail.com>

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!
-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20091003/75aac7d0/attachment-0003.html>