Re: exec problem with 5.1

"Tomasz Nowak" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Netventure
Message-ID <[email protected]>
Dave Shield <[email protected]> wrote:
>
> On Sat, 2006-03-18 at 15:55 +0100, Tomasz Nowak wrote:
> > Dave Shield <[email protected]> wrote:
> > > That one I wasn't able to reproduce.
> > > Can you try with the attached patch, and see if you still have
> > > the same problem.  If so, please could you let me know the
> > > relevant lines from your snmpd.conf
> > 
> > But the second problem still exists.
> > Information given below should help you be able
> > to reproduce the bug.
> 
> 
> > /etc/snmp/snmpd.conf part:
> > 
> > extend onetping /root/ping.sh onet.pl
> 
> [snip]
> 
> Not immediately, no.
> I tried with a version of your script, and everything worked fine.
> But it suddenly occurred to me to try with *two* identically
> named "extend" directives, and that did trigger the same symptoms.
> The registration of the nsExtend{Config,Output1}Tables failed,
> but the config handling routine didn't detect this, so carried
> on setting things up for the (manually implemented) Output2Table.
> 
> I suspect that either you have a duplicate "extend" entry in your
> config file, or the system is reading in the config file twice.
> (It doesn't check for this, although it really should do so).

You're petty right! I have only one extend entry in my .conf:
# cat /etc/snmp/snmpd.conf|grep extend|grep -v "#"|wc -l
1
so it seems that snmpd is reading the config file twice.

Any idea why?

I'm using 5.3.0.1 compiled from source in such way:
./configure \
--prefix=/usr \
--datadir=/etc \
--sysconfdir=/etc \
--with-default-snmp-version="3" \
--with-sys-contact="my e-mail" \
--with-sys-location="here" \
--with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/cache/net-snmp"
make
make install

I start snmpd with command: /usr/sbin/snmpd -aA
After first restart of snmpd (stop, start)
I see such entry in /var/log/snmpd.log:

duplicate table data attempted to be entered. row exists
NET-SNMP version 5.3.0.1

Do I have misconfigured something?
I'd like to know that before I apply your second patch.

-- 
Tomasz Nowak




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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.