Hello,
I am trying to write a basic sub-agent to collect some data and display it using SNMP requests. I am working through this example:
http://www.net-snmp.org/wiki/index.p...ing_a_Subagent
I have added "master agentx" to snmp.conf, but when I run the daemon I have compiled I get
Code:
[root@localhost atut]# ./example-demon
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()
/usr/share/snmp/snmp.conf: line 2: Warning: Unknown token: master.
Warning: Failed to connect to the agentx master agent ([NIL]):
Does anyone know how to fix this? I have found a few forums asking the same question but no answer.
I am running Fedora 9 i386 and Net-SNMP v5.4.2.1, testing Net-SNMP using the loopback interface.
Thanks,
Austin.