[mrtg] graphing cisco virtual interface/PPPoE users
Khemara Lyn
lin.kh at wicam.com.kh
Tue Apr 6 09:59:48 CEST 2010
Dear Steve,
Thanks for your insightful comments. I agree that, the plugin would be a
more suitable solution. May I know where I can get the plugin and how to
get it to work?
Thanks & regards,
Khem
On 04/06/2010 11:41 AM, Steve Shipway wrote:
> Khem wrote:
>
>> My work around may not be a good solution for you but i'd like to
>>
> present it here in the purpose that it may give you some ideas to start
> with. My approach was to re-generate the config file mrtg.cfg every 5
> minutes and schedule it to start just before the mrtg command in the
> crontab.
>
> While this method would work, I think a much more effective way to achieve this would be to write a custom data collection plugin that could be called by MRTG. This plugin could walk the OID tree on the device, and identify the traffic ocunters for an interface as identified by a username passed as a parameter.
>
> We have done something similar to monitor our Foundry switch - the name of a virtual interface is passed as a parameter, and the plugin identifies the appropriate counters form this information, then outputs them.
>
> Possibly a bit more coding work, but certainly more efficient and reliable in the long run? You also avoid all the race conditions implicit in re-creating the cfg file -- and note that if you use daemon mode, recreating the cfg file will not work since the cfg files are then only read in once at the start.
>
> Steve
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
>
More information about the mrtg
mailing list