On Fri, 21 Oct 2005 17:13:40 -0300 Jordan wrote:
JJLDS> in the file. Then I've added the line
JJLDS> netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
JJLDS> NETSNMP_DS_AGENT_X_SOCKET, "localhost:16100");
Ok, first of all, stop the agent and run it in the foreground in debug mode:
snmpd -f -Lo -Dagentx
Then check that the agent is listening on that port? Does 'netstat -ln | grep
16100' show a listener?
Then start your sub-agent. Enabling debug for the agentx token there would be
useful too.
You should see debug output from the agent as the sub-agent connects. Running
a packet sniffer (tcpdump, iptraf) could help here too
JJLDS> the erro "Error: Failed to connect to the agentx master agent: Unkown
JJLDS> Host (Connection refused)".
If you get that at startup, wait 20 seconds or so, and see if the retry work.
Sometimes the initial connection doesn't work, but retries do.
--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders