Re: Warning: Failed to connect to the agentx master agent ([NIL])

Daniel Hobi <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 05.06.2007 13:47, Awadhesh wrote:
> I'm trying to start an agentx(from root user) on linux I get the 
> following error:
> 
> Warning: Failed to connect to the agentx master agent ([NIL]):
> Warning: Failed to connect to the agentx master agent ([NIL]):
>
> [...]
>
> [root@ggns1bfx02 subagent]#  /usr/local/sbin/snmpd -Dread_config 
> -Dagentx -c /usr/local/share/snmp/snmpd.conf -x localhost:161

You told the master agent to listen on (TCP) port 161, but the subagent 
is trying to connect to the local (Unix) socket /var/agentx/master. So 
either drop the "-x localhost:161" part if you want the master agent to 
listen on Unix socket, or configure the subagent to connect to 
localhost:161 (option NETSNMP_DS_AGENT_X_SOCKET).

> The file /var/agentx/master is also available [...]

This file will be created by the master agent (if it is configured to 
listen on this local socket file).

Regards,
Daniel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.