I'd like to export some sysctls (specifically kstat.zfs tree) via SNMP using bsnmp. I found this example in net-mgmt/bsnmp-ucd module's man page:
However this method (agent-x?) is inappropriate for exporting an entire sysctl subtree. Has anyone done something like this using either bsnmp or net-mgmt/net-snmp?
I would have thought that exporting sysctls MIBs would be "obvious" functionality to include in bsnmp. Is it perhaps a bad idea? I'm toying with the idea of writing a module to do this.
Code:
extNames.0 = "lastpid"
extCommand.0 = "/sbin/sysctl -n kern.lastpid"
However this method (agent-x?) is inappropriate for exporting an entire sysctl subtree. Has anyone done something like this using either bsnmp or net-mgmt/net-snmp?
I would have thought that exporting sysctls MIBs would be "obvious" functionality to include in bsnmp. Is it perhaps a bad idea? I'm toying with the idea of writing a module to do this.