Hi,
    Before i move to  the problem with running sub-agent, i wanted to know
what is the main advantage of using sub-agent in comparison with compiling
MIB modules with the SNMP agent snmpd
    i,e the following flow i followed when i started reading tutorial
section : TUT: Writing a MIB Module and i tested following commands. Which
one i need to follow  compiling MIB modules with the SNMP agent?
 or  sub-agent creation? *Please suggest me on this.*
*
*
*
  % ./configure --with-mib-modules="nstAgentModuleObject"
% make

 % make install

 % /usr/local/sbin/snmpd -f -L -d -p 9999

*

*Coming to actual problem :Problem with running sub-agent: AgentX*
I followed tutorial , i am able to create sub-agent: AgentX  automatically
using the net-snmp-config script and i tested.
I started instrumenting my own code with agentx sub agent support as
described in tutorial and gone through following steps,

% make example-demon

*
./example-demon EXE created succesfully and my snmpd.conf looks like this
*

*

rwcommunity  private
master agentx

 and i run the master agent using command: sudo /usr/local/sbin/snmpd
-f -L -d -p 9999
*

but when i run:

% *./example-demon &*

*
i am getting warning as: Warning: Failed to connect to the agentx
master agent ([NIL]):
*

*How to fix dis? is that any configuration  needs to add in snmpd.conf?*

*
*

*
*
*Thanks in Advance*
*Prashant Nirni*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* *
*
*
*
*
*
*
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to