Hi,
I am an amateur to SNMP coding.
I have the following two basic queries regarding subagents. Can some one help
me out with this?
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.
Also, when I carried out the steps for example-demon as mentioned in
Net-SNMP-Tutorial, I am getting the following error:
/root# ./example-demon &
[1] 5738
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
MA-MD189:/home/eri_sn_admin/bhuvan/SNMP_system_files/subagent # Warning: Failed
to connect to the agentx master agent ([NIL]):
example-demon is up and running.
Also, this will keep on occurring until I kill the example-demon process.
Thanking you in advance.
Regards,
Bhuvan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders