Hi, Does anyone know how to prevent snmpd from writing the below into /var/log/messages/ Nov 29 19:35:02 serenity snmpd[2287]: Received SNMP packet(s) from UDP: [127.0.0.1]:34309 Nov 29 19:35:02 serenity snmpd[2287]: Connection from UDP: [127.0.0.1]:34309 Nov 29 19:35:02 serenity last message repeated 7 times Nov 29 19:40:02 serenity snmpd[2287]: Connection from UDP: [127.0.0.1]:34313 Nov 29 19:40:02 serenity snmpd[2287]: Received SNMP packet(s) from UDP: [127.0.0.1]:34313 Nov 29 19:40:02 serenity snmpd[2287]: Connection from UDP: [127.0.0.1]:34313 Nov 29 19:40:02 serenity last message repeated 7 times Nov 29 19:45:02 serenity snmpd[2287]: Connection from UDP: [127.0.0.1]:34319 Nov 29 19:45:02 serenity snmpd[2287]: Received SNMP packet(s) from UDP: [127.0.0.1]:34319 Nov 29 19:45:02 serenity snmpd[2287]: Connection from UDP: [127.0.0.1]:34319 We query the server to gain load stats etc every 5 mins and this is causing /var/log/messages to fill up pretty quickly/ I do not care about seeing normal connection info from snmpd, but retaining logging for other info such as malformed packets, bad community strings etc is of interest. Thanks
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Enyo wrote:> I do not care about seeing normal connection info from snmpd, but > retaining logging for other info such as malformed packets, bad > community strings etc is of interest.I think you can just put your logging level in /etc/snmp/snmpd.conf. logging file=/to/some/file enabled #if you want to dump somewhere else logging size=0 level=0 #size 0 = unlimited size otherwise measured in bytes level: 0 All NOTICES, EXCEPTIONS, and FATAL messages 1 Level 0 plus DEBUG messages 2 Level 1 plus a hexadecimal dump of incoming and outgoing packets 3 Level 2 plus an English version of the request and response packets Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFHTzAqHoeeepPau2ERAnsoAJ9bgXBCVH7dO3LaY+2Qe8z8wPjDoACgneIR LDNiRiv1+azcMO8IK+1nQtM=OPA1 -----END PGP SIGNATURE-----