Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   CENTOS 5.4 /var/log/messages too many????? (http://www.linux-archive.org/centos/317548-centos-5-4-var-log-messages-too-many.html)

Alexander Dalloz 01-30-2010 03:21 PM

CENTOS 5.4 /var/log/messages too many?????
 
Am 30.01.2010 16:21, schrieb mcclnx mcc:
> we have CENTOS 5.4 on dell server and recently /var/log/messages have thousand of following messages every day.
>
> Jan 30 10:12:47 ORA5 snmpd[8295]: Connection from UDP: [127.0.0.1]:55837
> Jan 30 10:12:47 ORA5 snmpd[8295]: Received SNMP packet(s) from UDP: [127.0.0.1]:55837
> Jan 30 10:12:47 ORA5 snmpd[8295]: Connection from UDP: [127.0.0.1]:55837
> Jan 30 10:12:47 ORA5 last message repeated 31 times
> Jan 30 10:12:47 ORA5 snmpd[8295]: Connection from UDP: [127.0.0.1]:64026
> Jan 30 10:12:47 ORA5 snmpd[8295]: Received SNMP packet(s) from UDP: [127.0.0.1]:64026
> Jan 30 10:12:47 ORA5 snmpd[8295]: Connection from UDP: [127.0.0.1]:64026
>
>
> Anyone know how to fix it?
>
> Thansk.

How about using the logging options snmpd offers?

man snmpd

-L[efos]
Specify where logging output should be directed (standard
error or output, to a file or via syslog). See LOGGING OPTIONS in
snmpcmd(5) for details.
This option deprecates the -l -s and -S options.

-> man 1 snmpcmd -> LOGGING OPTIONS

Then set /etc/sysconfig/snmpd.options as you like to. For instance, I am
running with

~ $ cat /etc/sysconfig/snmpd.options
OPTIONS="-LS n d -LF i /dev/null -p /var/run/snmpd.pid -a"

Alexander

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 04:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.