<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 3, 2009, at 10:32 AM, Eduardo Grosclaude wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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. <br>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 <br>

<br>Target[somehostvpninterface] : ifInOctets.X&ifOutOctets.X:public@<SOMEHOST.IP><br><br>without wiring up the X interface number into cfg file? Or, is there any method to keep X from changing at the clients?<br>

Any hints appreciated!</blockquote><br></div><div>You can take a look at ifrename(8).</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><span class="Apple-style-span" style="font-family: Helvetica; "><div>Giovanni P. Tirloni</div><div><a href="mailto:tirloni@gmail.com">tirloni@gmail.com</a></div><div><br></div></span></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>