Re: SNMPD logs to syslog when it receives any snmp request
Pranesh Kulkarni <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Actually i meant for disabling logging in your sub agent , so I told you call this function "snmp_disable_log()" . Sorry for misunderstanding question. You can try the snmpd with this option, (but am not sure) snmpd -Lsd tcp:localhost:705 -p /var/run/snmpd.pid i have taken out "-a" option which tells "Log the source addresses of incoming requests" Keep as -Lsd which means "Log messages via syslog(s option) using specifed facility "LOG_DAEMON"(d option) Please correct me , if I am wrong . Thanks, Pranesh On Wed, Feb 18, 2009 at 5:41 PM, <[email protected]>wrote: > Thanks Dave and Pranesh for the responses. > > Dave, > > We were using the following options to start snmpd. > "-Lsd -x tcp:localhost:705 -a -p /var/run/snmpd.pid" > > I removed "-a" option and the message "Received SNMP Packet from " is > not logged now, but the message "Connection from UDP" is still being > logged. > I changed -Lsd to -Ls, but SNMPD is not coming up. There is no snmpd pid > in the process list. I used the option -Lsn to have notice logs, then > also SNMPD did not come up and there is no snmpd pid. > > Can you please let me know how to disable the message "Connection from > UDP" as well ? > Meanwhile I will try out the other options. > > Thanks & Regards, > Suresh. > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Dave Shield > Sent: Tuesday, February 17, 2009 7:26 PM > To: Pamidipati, Suresh [NETPWR/INDIA/HYDE] > Cc: [email protected] > Subject: Re: SNMPD logs to syslog when it receives any snmp request > > 2009/2/17 <[email protected]>: > > We are using Net-snmp-5.4.2.1. We are seeing that SNMPD logs the > > following messages in syslog for every snmp request that it receives. > > Those messages should only be logged if: > > a) You've explicitly enabled this using the '-a' flag > b) You've activated verbose logging using the '-V' flag > or > c) You've turned on packet dumping using the '-d' flag > > > They shouldn't be logged by default. > > Dave > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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