On Fri, 2005-10-21 at 17:13 -0300, Jordan Janeiro Lopes da Silva wrote: > Robert, I've executed both agents with root permission and they write in the > file. Then I've added the line > netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, > NETSNMP_DS_AGENT_X_SOCKET, "localhost:16100"); in the subagent and got the > erro "Error: Failed to connect to the agentx master agent: Unkown Host > (Connection refused)". My master agent executes in that port.
Check whether there *is* actually something listening on that port ("netstat -a") and whether it is the AgentX master ("lsof -p N") > I've just made that change and my *.conf file contains rocommunity and > rwcommunity and the agentadress "udp:16100". The files demon.c and demon-sub.c > has the filed agentx_subagent 1 and 0. Is there any other configuration to do? The other thing that can sometimes catch me is firewall settings. That's perhaps less likely when using "localhost", but it's worth checking, just in case. Dave ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders