Hi Dave,
*Thanks for your reply.*
*
*
Again i tried both the cases i,e
1) I am able to create sub-agent: AgentX automatically using the
net-snmp-config script and i tested.
2) Instrumenting my own code with agentx sub agent support as given in
tutorial
I killed the snmpd command (Ctrl-C) after case 1. but socket(master) exists
on the path /var/agentx/
*Finally this time both cases worked fine*.
You are right, it might be deleting the socket(master) from the path
/var/agentx/
when i was trying previously. So it was giving that warning. Ok that's
fine.
Now in the tutorial explained about a single integer i,e
nstAgentSubagentObject to handle via sub-agent. *Please suggest me on
following things*
1) If i want to handle other objects with types such as table, float,
string etc.. then what changes i need to do in source file example-demon.c
?
2) Whether the following code i need to add in example-demon.c for
individual MIB objects such as table, string etc..?
/* initialize mib code here */
/* mib code: init_nstAgentSubagentObject from nstAgentSubagentObject.C */
init_nstAgentSubagentObject();
3) Whether any changes required in Makefile ?
* *
*
Thanks in Advance
Prashant Nirni
*
*
*
*
*
*
*
On 23 November 2011 06:33, prashant n <prashant.n...@gmail.com> wrote:
> Following lines shows the output of the command:
> sudo /usr/local/sbin/snmpd -f -L -d -p 9999
> Turning on AgentX master support.
> NET-SNMP version 5.6.1.1
OK - so there's no sign of any warning messages.
So opening the AgentX socket should have worked.
Let's check this:
What does "sudo ls /var/agentx' show?
You should see a file (socket) /var/agentx/master
Is this present?
If you kill the snmpd command (Ctrl-C), then this
socket should disappear again. Does it?
Dave
------------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders