snmpd_m.conf  is the conf file for the master.I am starting the master with the 
following parameters:/usr/sbin/snmpd -f -C -D -Dagentx -p /var/run/snmpd_m.pid 
-c /etc/snmp/snmpd_m.conf &>>/tmp/snmpd_m.log
Am I doing something wrong in the subagent? I dont see anything in the master 
log (snmpd_m.log except the following)
o log handling enabled - turning on stderr loggingregistered debug token 
agentx, 1agentx_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"Turning on AgentX master support.agentx/config: port spec: 
tcp:localhost:705agentx/master: initializing...agentx/master: initializing...   
DONENET-SNMP version 5.4.2.1Reconfiguring daemonNET-SNMP version 5.4.2.1 
restarted/etc/snmp/snmpd_mgmt.conf: line 1: Warning: The separate port argument 
to trapsink2 is deprecatedTurning on AgentX master support.agentx/config: port 
spec: tcp:localhost:705agentx/master: unexpected callback op 4
Also I dont have any subagent conf file. 
Thank you
--- On Sat, 4/14/12, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote:

From: Dave Shield <d.t.shi...@liverpool.ac.uk>
Subject: Re: sending trap from subagent
To: "academ...@yahoo.com" <academ...@yahoo.com>
Cc: net-snmp-users@lists.sourceforge.net
Date: Saturday, April 14, 2012, 2:24 PM

On 14 April 2012 05:37, academ...@yahoo.com <academ...@yahoo.com> wrote:
> I only need sending trap support to the list configured in conf file

> Contents of snmpd_m.conf :
> trap2sink x.x.x.x public 162

An AgentX subagent will pass all traps on to the master agent.
So the 'trap2sink' directive would need to be in the main snmpd.conf
file,  not the subagent's config file.


Dave
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to