> Is this an agent that you compiled yourself?
> If so (and you used the default configure settings)
> then it should probably be looking in /usr/local/share/snmp
> automatically as well.
>

I have two versions of snmpd in my machine.One which is shipped with
fedora OS and another which i checked
out from svn repository and installed after compilation.


/root/software/net-snmp>whereis snmpd
snmpd: /usr/sbin/snmpd /usr/local/sbin/snmpd /usr/share/man/man8/snmpd.8.gz

>>    How did you run "configure" when you compiled the agent?

I used following configure script for compilation of svn source.

./configure \
        --with-out-mib-modules="" \
        --with-mib-modules="Rmon agentx host examples target
notification disman notification-log-mib ip-mib" \
        --with-default-snmp-version="2" \
        --with-sys-location="india" \
        --with-logfile="/var/log/snmpd.log" \
        --with-sys-contact="ravi.ku...@gmail.com" \
        --with-persistent-directory="/var/log" \
        --enable-static --disable-shared  \
        --with-ldflags=-Bstatic \
        --disable-manuals \
        --disable-scripts \
        --without-root-access \

> Try starting the agent with simply   "./snmpd"

After make and make install I executed the following command as you said

/usr/local/sbin/snmpd

but I am still getting following warnings and persistent data file is
not getting replaced by key.

buffer too small to read octet string (13 < 13)
buffer too small to read octet string (0 < 13)
buffer too small to read octet string (0 < 13)
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (SNMPv2-SMI): At line 6 in
/usr/local/share/snmp/mibs/RFC1213-MIB.txt
Cannot find module (SNMPv2-TC): At line 8 in
/usr/local/share/snmp/mibs/RMON-MIB.txt
/usr/local/share/snmp/snmpd.conf: line 46: Warning: Unknown token: syscontact.
Turning on AgentX master support.
/var/log/snmpd.conf: line 39: Warning: Unknown token: setserialno.
/var/log/snmpd.conf: line 44: Warning: Unknown token: ifXTable.
/var/log/snmpd.conf: line 45: Warning: Unknown token: ifXTable.
/var/log/snmpd.conf: line 46: Warning: Unknown token: ifXTable.

What are these warnings and why are they comming ?


how can I know what are the non -persistent and persistent data file
are being used by given snmpd
If we have multiple snmpd installed ?


thanks.....................





On Wed, Mar 21, 2012 at 1:07 AM, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote:
> On 20 March 2012 18:47, Ravi Kumar <mynets...@gmail.com> wrote:
>> Used following to start snmpd after that.
>>
>> ./snmpd -c /usr/local/share/snmp/snmpd.conf,/var/net-snmp/snmpd.conf
>
> The agent ought to pick up the persistent config file automatically.
> You shoudn't need to specify this explicitly.  (And that might well
> be confusing things).
>
> Is this an agent that you compiled yourself?
> If so (and you used the default configure settings)
> then it should probably be looking in /usr/local/share/snmp
> automatically as well.
>
> Try starting the agent with simply   "./snmpd"
>
>
>> I found following warnings while starting snmpd
>>
>> /var/net-snmp/snmpd.conf: line 50: Warning: Unknown token: engineBoots.
>> /var/net-snmp/snmpd.conf: line 51: Warning: Unknown token: oldEngineID.
>
> That's worrying.
> Those should be picked up by the code that's pretty central to
> the running of the agent.
>    How did you run "configure" when you compiled the agent?
>
> Dave

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to