Re: Failed to connect to the agentx master agent

Noppadol Sotanakul <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

Try starting the master agent using
    snmpd -f -Le    (plus any other options that are typically supplied)
Is anything logged?

This is what I get after I run the command.

Duplicate IPv4 address detected, some interfaces may not be visible in IP-MIB
could not open /proc/net/if_inet6
Turning on AgentX master support.
NET-SNMP version 5.3.0.1
cannot open /proc/net/snmp6 ...


Which ports is the master agent listening on?
Compare the list of ports for the 5.3.0.1 agent,
with the list of ports for the other agents.

Normally, you'd expect the agent to be listening on
TCP port 705 and/or the named socket '/var/agentx/master'


This is what I get when I run netstat -a | more

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                    6871   
@/var/run/hal/hotplug_socket2
unix  2      [ ACC ]     STREAM     LISTENING     6319   /var/run/.resmgr_socket
unix  2      [ ]         DGRAM                    6384   /var/lib/dhcp/dev/log
unix  2      [ ACC ]     STREAM     LISTENING     6425   /var/run/acpid.socket
unix  2      [ ]         DGRAM                    6444   /var/lib/named/dev/log
unix  2      [ ACC ]     STREAM     LISTENING     253125 /var/run/agentx/master
unix  2      [ ACC ]     STREAM     LISTENING     10244  /var/run/nscd/socket

Thanks & regards,
Nop.



________________________________
From: Dave Shield <[email protected]>
To: Noppadol Sotanakul <[email protected]>
Cc: [email protected]
Sent: Tue, February 15, 2011 3:37:28 PM
Subject: Re: Failed to connect to the agentx master agent

On 15 February 2011 07:00, Noppadol Sotanakul <[email protected]> wrote:
> However, when I tested the program with Net-SNMP 5.3.0.1 that came with the
> installation CD of SuSE10, the program didn’t work. The error message
> ‘Failed to connect to the agentx master agent’ occurred.


> Does anyone have any ideas about this issue?

Well, the first thing to check is whether the master agent is actually
listening for AgentX requests.

Try starting the master agent using
    snmpd -f -Le    (plus any other options that are typically supplied)
Is anything logged?

Which ports is the master agent listening on?
Compare the list of ports for the 5.3.0.1 agent,
with the list of ports for the other agents.

Normally, you'd expect the agent to be listening on
TCP port 705 and/or the named socket '/var/agentx/master'

Do you see either of these?

Dave

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

_______________________________________________
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.