net-snmp subagent problem
Hi ALL,
According to tutorial,I executd the
net-snmp-config --compile-subagent mysubagent
nstAgentSubagentObject.c
and generated the executable file,mysubagent.
I executed ./mysubagent & as root
When I used the snmpget command as following,
snmpget -v2c -c public localhost
nstAgentSubagentObject.0
It always shows
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
= No Such Object available on this agent at this OID
I have already checked the return value from
netsnmp_register_int_instance() is MIB_REGISTERED_OK.
Can anyone give me a big hand?
Thanks in advance.
|