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

Awadhesh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

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]):



Please note that the master agent is running at port 161.I have already set
the following in snmpd.conf file

master agentx


When i execute the snmpd in debug mode, its out put is as below

[root@ggns1bfx02 subagent]#  /usr/local/sbin/snmpd -Dread_config -Dagentx -c
/usr/local/share/snmp/snmpd.conf -x localhost:161
No log handling enabled - turning on stderr logging
registered debug token read_config, 1
registered debug token agentx, 1
agentx_register_app_config_handler: registering .conf token for
"agentxsocket"
agentx_register_app_config_handler: registering .conf token for
"agentxperms"
agentx_register_app_config_handler: registering .conf token for
"agentxRetries"
agentx_register_app_config_handler: registering .conf token for
"agentxTimeout"
[root@ggns1bfx02 subagent]# read_config: reading premib configuration tokens
read_config:  config path used for
snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/etc/snmp/snmpd.local.conf: No such file or directory
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:21 examining: rwcommunity
gssoam
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: SNMPconf
/usr/local/share/snmp
read_config: /usr/local/share/snmp/snmpd.conf:42 examining: syslocation
"HSC Gurgaon"
read_config: /usr/local/share/snmp/snmpd.conf:52 examining: syscontact
[email protected]
read_config: /usr/local/share/snmp/snmpd.conf:67 examining: trapsink
127.0.0.1
read_config: /usr/local/share/snmp/snmpd.conf:83 examining: master  agentx
read_config: /usr/local/share/snmp/snmpd.conf:88 examining: agentuser  root
read_config: /usr/local/share/snmp/snmpd.conf:93 examining: agentgroup  root
read_config: /usr/local/share/snmp/snmpd.conf:105 examining: agentxaddress
161
read_config: /usr/local/share/snmp/snmpd.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmpd.local.conf: No such file or directory
read_config: /root/.snmp/snmpd.conf: No such file or directory
read_config: /root/.snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for snmpd:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: Reading configuration /var/net-snmp/snmpd.conf
read_config: /var/net-snmp/snmpd.conf:32 examining: setserialno 2119861865
read_config: /var/net-snmp/snmpd.conf:44 examining: ifXTable .1 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:45 examining: ifXTable .2 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:46 examining: ifXTable .3 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:50 examining: engineBoots 50
read_config: /var/net-snmp/snmpd.conf:51 examining: oldEngineID
0x80001f8880977c225d24b65a4600000000
read_config: Found a parser.  Calling it: oldEngineID /
0x80001f8880977c225d24b65a4600000000
read_config: /var/net-snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for
agentx:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /usr/local/etc/snmp/agentx.local.conf: No such file or
directory
read_config: /usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /usr/local/share/snmp/agentx.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /usr/local/lib/snmp/agentx.local.conf: No such file or
directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config:  config path used for agentx:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config:  config path used for
snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: Reading configuration /usr/local/share/snmp/snmp.conf
read_config: /usr/local/share/snmp/snmp.conf:27 examining: defversion 1
read_config: /usr/local/share/snmp/snmp.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
read_config:  config path used for snmp:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_configs_optional: reading optional configuration tokens for snmpd
read_config: Reading optional config file:
"/usr/local/share/snmp/snmpd.conf"
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:21 examining: rwcommunity
gssoam
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: SNMPconf
/usr/local/share/snmp
read_config: /usr/local/share/snmp/snmpd.conf:42 examining: syslocation
"HSC Gurgaon"
read_config: /usr/local/share/snmp/snmpd.conf:52 examining: syscontact
[email protected]
read_config: /usr/local/share/snmp/snmpd.conf:67 examining: trapsink
127.0.0.1
read_config: /usr/local/share/snmp/snmpd.conf:83 examining: master  agentx
read_config: /usr/local/share/snmp/snmpd.conf:88 examining: agentuser  root
read_config: /usr/local/share/snmp/snmpd.conf:93 examining: agentgroup  root
read_config: /usr/local/share/snmp/snmpd.conf:105 examining: agentxaddress
161
read_config: reading normal configuration tokens
read_config:  config path used for
snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/etc/snmp/snmpd.local.conf: No such file or directory
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:21 examining: rwcommunity
gssoam
read_config: Found a parser.  Calling it: rwcommunity / gssoam
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: SNMPconf
/usr/local/share/snmp
/usr/local/share/snmp/snmpd.conf: line 24: Warning: Unknown token: SNMPconf.
read_config: /usr/local/share/snmp/snmpd.conf:42 examining: syslocation
"HSC Gurgaon"
read_config: Found a parser.  Calling it: syslocation / "HSC Gurgaon"
read_config: /usr/local/share/snmp/snmpd.conf:52 examining: syscontact
[email protected]
read_config: Found a parser.  Calling it: syscontact /
[email protected]
read_config: /usr/local/share/snmp/snmpd.conf:67 examining: trapsink
127.0.0.1
read_config: Found a parser.  Calling it: trapsink / 127.0.0.1
read_config: /usr/local/share/snmp/snmpd.conf:83 examining: master  agentx
read_config: Found a parser.  Calling it: master / agentx
Turning on AgentX master support.
read_config: /usr/local/share/snmp/snmpd.conf:88 examining: agentuser  root
read_config: Found a parser.  Calling it: agentuser / root
read_config: /usr/local/share/snmp/snmpd.conf:93 examining: agentgroup  root
read_config: Found a parser.  Calling it: agentgroup / root
read_config: /usr/local/share/snmp/snmpd.conf:105 examining: agentxaddress
161
/usr/local/share/snmp/snmpd.conf: line 105: Warning: Unknown token:
agentxaddress.
read_config: /usr/local/share/snmp/snmpd.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmpd.local.conf: No such file or directory
read_config: /root/.snmp/snmpd.conf: No such file or directory
read_config: /root/.snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for snmpd:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: Reading configuration /var/net-snmp/snmpd.conf
read_config: /var/net-snmp/snmpd.conf:32 examining: setserialno 2119861865
read_config: Found a parser.  Calling it: setserialno / 2119861865
read_config: /var/net-snmp/snmpd.conf:44 examining: ifXTable .1 14:0 18:0x $
read_config: Found a parser.  Calling it: ifXTable / .1 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:45 examining: ifXTable .2 14:0 18:0x $
read_config: Found a parser.  Calling it: ifXTable / .2 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:46 examining: ifXTable .3 14:0 18:0x $
read_config: Found a parser.  Calling it: ifXTable / .3 14:0 18:0x $
read_config: /var/net-snmp/snmpd.conf:50 examining: engineBoots 50
read_config: Found a parser.  Calling it: engineBoots / 50
read_config: /var/net-snmp/snmpd.conf:51 examining: oldEngineID
0x80001f8880977c225d24b65a4600000000
read_config: /var/net-snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for
agentx:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /usr/local/etc/snmp/agentx.local.conf: No such file or
directory
read_config: /usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /usr/local/share/snmp/agentx.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /usr/local/lib/snmp/agentx.local.conf: No such file or
directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config:  config path used for agentx:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config:  config path used for
snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: Reading configuration /usr/local/share/snmp/snmp.conf
read_config: /usr/local/share/snmp/snmp.conf:27 examining: defversion 1
read_config: Found a parser.  Calling it: defversion / 1
read_config: /usr/local/share/snmp/snmp.local.conf: No such file or
directory
read_config: /usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
read_config:  config path used for snmp:/var/net-snmp (persistent
path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_configs_optional: reading optional configuration tokens for snmpd
read_config: Reading optional config file:
"/usr/local/share/snmp/snmpd.conf"
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:21 examining: rwcommunity
gssoam
read_config: Found a parser.  Calling it: rwcommunity / gssoam
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: SNMPconf
/usr/local/share/snmp
/usr/local/share/snmp/snmpd.conf: line 24: Warning: Unknown token: SNMPconf.
read_config: /usr/local/share/snmp/snmpd.conf:42 examining: syslocation
"HSC Gurgaon"
read_config: Found a parser.  Calling it: syslocation / "HSC Gurgaon"
read_config: /usr/local/share/snmp/snmpd.conf:52 examining: syscontact
[email protected]
read_config: Found a parser.  Calling it: syscontact /
[email protected]
read_config: /usr/local/share/snmp/snmpd.conf:67 examining: trapsink
127.0.0.1
read_config: Found a parser.  Calling it: trapsink / 127.0.0.1
read_config: /usr/local/share/snmp/snmpd.conf:83 examining: master  agentx
read_config: Found a parser.  Calling it: master / agentx
Turning on AgentX master support.
read_config: /usr/local/share/snmp/snmpd.conf:88 examining: agentuser  root
read_config: Found a parser.  Calling it: agentuser / root
read_config: /usr/local/share/snmp/snmpd.conf:93 examining: agentgroup  root
read_config: Found a parser.  Calling it: agentgroup / root
read_config: /usr/local/share/snmp/snmpd.conf:105 examining: agentxaddress
161
/usr/local/share/snmp/snmpd.conf: line 105: Warning: Unknown token:
agentxaddress.
agentx/master: initializing...
agentx/master: initializing...   DONE
read_config: storing: #
# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
############################################################################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in
SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#















read_config: storing: setserialno 2119861866
read_config: storing:
##############################################################
read_config: storing: #
# snmpNotifyFilterTable persistent data
#
read_config: storing:
##############################################################
read_config: storing:

read_config: storing:
##############################################################
read_config: storing: #
# ifXTable persistent data
#
read_config: storing: ifXTable .1 14:0 18:0x $
read_config: storing: ifXTable .2 14:0 18:0x $
read_config: storing: ifXTable .3 14:0 18:0x $
read_config: storing:
##############################################################
read_config: storing:

read_config: storing: engineBoots 51
read_config: storing: oldEngineID 0x80001f8880977c225d24b65a4600000000
NET-SNMP version 5.4.1.pre1


[root@ggns1bfx02 subagent]#

The file /var/agentx/master is also available and it has the permission like


[root@ggns1bfx02 subagent]# ls -arl /var/agentx
total 12
-rw-r--r--  1 root root    0 Jun  5 16:38 master
drwxr-xr-x 28 root root 4096 May 29 17:09 ..
drwxr-xr-x  2 root root 4096 Jun  5 16:38 .


Am i missing some thing in configuration. Please let me know the solution of
this problem.

Thanks
Awadhesh.

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