Re: Vs: net-snmp-5.4.2.1-mips core

Pranesh Kulkarni <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
For testing , take a backup of your snmpd.conmf and  please keep these lines
only  in snmpd.conf

-------------------------------------------------------------------------------------

trap2sink  localhost public
trapcommunity  public
authtrapenable  1

rocommunity  public localhost
rwcommunity  private localhost

syslocation  Right here
syscontact   root

master agentx
agentXSocket    /var/agentx/master

--------------------------------------------------------------------------------------

and run the agent , and check the output



On Wed, Feb 18, 2009 at 6:39 PM, Raghu Ramaraj
<[email protected]>wrote:

>  Added "agentXsocket  /var/agentx/master " line in snmd.conf
>
>
>
> Then it is giving like this
>
>
>
> spils/linux/target ~ # snmpd -f -L -d
>
> /usr/local/share/snmp/snmpd.conf: line 202: Warning: Unknown token: exec.
>
> /usr/local/share/snmp/snmpd.conf: line 253: Warning: Unknown token: disk.
>
> /usr/local/share/snmp/snmpd.conf: line 282: Warning: Unknown token: load.
>
> /usr/local/share/snmp/snmpd.conf: line 409: Warning: Unknown token: master.
>
> /usr/local/share/snmp/snmpd.conf: line 410: Warning: Unknown token: master.
>
> /usr/local/share/snmp/snmpd.conf: line 411: Warning: Unknown token:
> agentXsocket.
>
> NET-SNMP version 5.4.2
>
>
>
> Thanks & Regards,
>
> *Raghu*
>
>
>  ------------------------------
>
> *From:* Pranesh Kulkarni [mailto:[email protected]]
> *Sent:* Wednesday, February 18, 2009 6:22 PM
> *To:* Raghu Ramaraj
> *Cc:* Dave Shield; [email protected]
>
> *Subject:* Re: Vs: net-snmp-5.4.2.1-mips core
>
>
>
> in your snmpd.conf
>    add these two lines
>
> master agentx ( you have added this line only)
> agentXsocket  /var/agentx/master .
>
>
> the do the  command  "ls /var/agentx" to check really the agentx connection
> exists ???/
>
>
>
>  On Wed, Feb 18, 2009 at 5:47 PM, Raghu Ramaraj <
> [email protected]> wrote:
>
> Hi Dave
>          Pls find the attached file which has the snmpd.conf
>
> I did only two changes in conf file that are 1) added democommunity 2)
> added master agentx.
> If do ls /var/agent it is giving ->no such file or dir
>
>
>
>
>
> Thanks & Regards,
> Raghu
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Dave Shield
>
> Sent: Wednesday, February 18, 2009 2:47 PM
> To: Raghu Ramaraj
> Cc: manu kumar; [email protected]
> Subject: Re: Vs: net-snmp-5.4.2.1-mips core
>
> 2009/2/18 Raghu Ramaraj <[email protected]>:
> > I just started with the following link
> > "http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent"
> > Even I used the example here also.
> > I am getting here like this
> >
> > spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
> > SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 1F 88 80 38 81 F2
> 27 3D 46 6D 38
> >
> >
> > spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject
> > SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 1F 88 80 38 81 F2
> 27 3D 46 6D 38
> > spils/linux/target subagent #
>
>
> Are you sure that the agent is actually listening for AgentX subagents?
> What does
>    ls /var/agentx
>         report?
>
> What is in your snmpd.conf file?
>
> Dave
>
> http://www.mindtree.com/email/disclaimer.html
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
>
>
>
> ------------------------------
> http://www.mindtree.com/email/disclaimer.html
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

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