From: Daniel H. <dh...@gm...> - 2007-06-05 14:07:17
|
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 |