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.

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?

Thanks in advance.

Jordan Janeiro
Telemídia - PUC-Rio

---------- Original Message -----------
From: Robert Story <[EMAIL PROTECTED]>
To: 
Cc: net-snmp-coders@lists.sourceforge.net, "Jordan Janeiro Lopes da Silva"
<[EMAIL PROTECTED]>
Sent: Fri, 30 Sep 2005 20:19:03 -0400
Subject: Re: Agent Extensibility

> On Mon, 26 Sep 2005 15:14:16 -0700 Wes wrote:
> 
> WH> >>>>> On Thu, 15 Sep 2005 15:53:09 -0300, "Jordan Janeiro Lopes 
> da Silva" WH> WH> Jordan>  Then I tried to execute the WH> Jordan> 
> sub-agent and then I´ve found some errors like: "Failed to WH> 
> Jordan> connect to the agentx master agent: Unknown host(No such 
> file WH> Jordan> or directory)". Is there something that I have to 
> configure or WH> Jordan> code to work fine? WH> WH> agentx, on unix 
> systems at least, open and read/write from WH> /var/agentx/master. 
>  You need to make sure this file is creatable and WH> writable by 
> the agent and subagent.  IE, run both as root or fix the WH> permissions.
> 
> Or try the options mentioned in the FAQ
> 
>
http://www.net-snmp.org/docs/FAQ.html#How_can_I_run_AgentX_with_a_different_socket_address_
> 
> -- 
> NOTE: messages sent directly to me, instead of the lists, will be deleted
>       unless they are requests for paid consulting services.
> 
> 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.
------- End of Original Message -------



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to