how to report stats for a fake network interface in Linux?

Ted Zlatanov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Теодор Златанов @ Cienfuegos
Message-ID <[email protected]>
I have some rapidly changing stats I want to report via SNMP.  It would
be terrific if I could do that in the IF-MIB interface table, but it's
pretty hard to plug in my Perl subagent in just the right places.

I investigated creating a fake network device module but that seems too
invasive for reporting stats.  I can't use a 'dummy' network device
because Linux doesn't allow me to set the net_device_stats data directly
from userspace.  So is there a way to lie to SNMP about the number of
network interfaces and provide an extra one (with some stats) to it?

I looked in the docs, Googled, etc. and am pretty stumped.  Any help or
pointers are appreciated.

Thanks
Ted


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.