Re: /etc/init.d/snmpd doesn't get config from snmpd.conf

This is a discussion on Re: /etc/init.d/snmpd doesn't get config from snmpd.conf within the SNMP Users forums, part of the Networking and Network Related category; :/home/# sh -x /etc/init.d/snmpd start + set -e + test -x /usr/sbin/snmpd + test -x /usr/sbin/snmptrapd + ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2007
chiel
 
Posts: n/a
Default Re: /etc/init.d/snmpd doesn't get config from snmpd.conf

:/home/# sh -x /etc/init.d/snmpd start
+ set -e
+ test -x /usr/sbin/snmpd
+ test -x /usr/sbin/snmptrapd
+ export MIBDIRS=/usr/share/snmp/mibs
+ MIBDIRS=/usr/share/snmp/mibs
+ SNMPDRUN=yes
+ SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid'
+ TRAPDRUN=no
+ TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
+ '[' -r /etc/default/snmpd ']'
+ . /etc/default/snmpd
++ export MIBDIRS=/usr/share/snmp/mibs
++ MIBDIRS=/usr/share/snmp/mibs
++ SNMPDRUN=yes
++ SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
++ TRAPDRUN=no
++ TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
+ cd /
+ case "$1" in
+ echo -n 'Starting network management services:'
Starting network management services:+ '[' yes = yes -a -f
/etc/snmp/snmpd.conf ']'
+ start-stop-daemon --quiet --start --exec /usr/sbin/snmpd -- -Lsd -Lf
/dev/null -u snmp -I -smux -p /var/run/snmpd.pid


:/home/# ps gauxww|grep -i snmpd
snmp 2995 0.0 0.1 8044 4028 ? S 15:36 0:00
/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid



----- Original Message -----
From: "Brian A. Seklecki" <bseklecki@collaborativefusion.com>
To: "chiel" <chiel@gmx.net>
Cc: <net-snmp-users@lists.sourceforge.net>
Sent: Wednesday, June 13, 2007 3:39 PM
Subject: Re: /etc/init.d/snmpd doesn't get config from snmpd.conf


> "sh -x /etc/init.d/snmpd start" and see what its doing.
>
> "ps gauxww|grep -i snmpd" and see what flags were passed
>
> ~BAS
>
> On Wed, 2007-06-13 at 14:41 +0200, chiel wrote:
>> Hello,
>>
>> I add the following line in my /etc/snmp/snmpd.conf:
>> "smuxpeer .1.3.6.1.4.1.674.10892.1".
>> When I do, "/etc/init.d/snmpd restart" and do a snmpwalk
>> on .1.3.6.1.4.1.674.10892.1 I don't get any output.
>>
>> But when I do:
>> # /etc/init.d/snmpd stop
>> # snmpd
>>
>> and then do the snmpwalk, it all works.
>> It looks like the /etc/init.d/snmpd script doesn't look at the
>> snmpd.conf file.
>> How can I fix this?
>>
>> Debian 4.0
>> NET-SNMP version: 5.2.3
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________ Net-snmp-users mailing
>> list Net-snmp-users@lists.sourceforge.net Please see the following page
>> to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/...net-snmp-users

> --
> Brian A. Seklecki <bseklecki@collaborativefusion.com>
> Collaborative Fusion, Inc.
>
>
>
>
> IMPORTANT: This message contains confidential information and is intended
> only for the individual named. If the reader of this message is not an
> intended recipient (or the individual responsible for the delivery of this
> message to an intended recipient), please be advised that any re-use,
> dissemination, distribution or copying of this message is prohibited.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0