On Wed, 3 Jan 2007 18:15:39 +0530 Siva wrote:
SPRG>         I'd like to prevent messages like 'Connection from UDP: <ip>'
SPRG> from popping up in the logfiles i.e., in syslog file, after running the
SPRG> agent. I have tried with the many Log Options but, no use of it , still
SPRG> it is popping up the message in the log file.
SPRG> 
SPRG>           # snmpd options (use syslog, close stdin/out/err).
SPRG>            SNMPDOPTS='-Ls 2 -Lf  /dev/null -p /var/run/snmpd.pid'

The -Ls option changes the facility, not the logging level. -Ls 2 should log
to LOG_LOCAL2, and you can use the syslog config file to control what files
messages are logged to, and even log different severity levels to different
log files. See the syslog man pages for more details.

Another option would be to rebuild net-snmp without libwrap support, or patch
the connection message to be LOG_DEBUG instead of LOG_INFO (see
agent/snmp_agent.c).

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to