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