[opensuse] net-snmp, and the exec configuration directive
Hey, All -- Working on an opensuse 10.2 system, pretty much a standard install all around. I'm using this box to test snmpd configurations. I'm just using the standard net-snmp package from the repository. According to the documentation in /usr/share/doc/packages/net-snmp/, I should be able to add something like the following to /etc/snmp/snmpd.conf: exec .1.3.6.1.4.1.xxxx.yyyy echotest /bin/echo hello there (xxxx and yyyy represent arbitrary nodes in the tree -- basically, they're just more-or-less random integers, "12" or "365" or "8723" or...at least as I understand it.) Then, after restarting snmpd, I should be able to do this: snmpget -v 2c localhost -c public .1.3.6.1.4.1.xxxx.yyyy And see the output of the exec command above. But, that doesn't seem to be working. Specifically, I defined the following: exec .1.3.6.1.4.1.23.92 proclist /bin/ps But I get this: snmptest:/usr/share/doc/packages/net-snmp # snmpwalk -v 2c localhost -c studentu 1.3.6.1.4.1.23.92 SNMPv2-SMI::enterprises.23.92 = No Such Object available on this agent at this OID snmptest:/usr/share/doc/packages/net-snmp # Anyone have any thoughts as to what might be going on? Is there something that I'm missing about the exec directive? Something specific to opensuse? A module that's missing from opensuse? Something else entirely? Thanks! - Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----Original Message----- From: Marlier, Ian [mailto:ian.marlier@studentuniverse.com] Sent: Tuesday, July 10, 2007 10:54 AM To: opensuse@opensuse.org Subject: [opensuse] net-snmp, and the exec configuration directive
Hey, All --
Working on an opensuse 10.2 system, pretty much a standard install all around. I'm using this box to test snmpd configurations. I'm just using the standard net-snmp package from the repository.
<snip my own specific stuff> Let me ask a more general question: The exec directive in /etc/snmp/snmpd.conf doesn't seem to want to work with an OID specified, as in exec .1.3.6.1.4.1.12.34 alias command That should return the output of $(command) under the given OID. But it doesn't. Does this feature generally work in opensuse 10.2? Given the basic format above, anyone have ideas as to why this wouldn't be working for me? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Marlier, Ian