Home > Linux, Tips & Tricks > Less logging from snmpd

Less logging from snmpd

February 7th, 2009 Leave a comment Go to comments

The snmp deamon logs a lot to the syslog deamon on CentOS. Especially when you have some monitoring with the snmp protocol.

You can change this by editing the init options of snmpd. This options can be found in /etc/init.d/snmpd. Search for the rule starting with “OPTIONS=”

Example:

OPTIONS="-Ls d -Lf /dev/null -p /var/run/snmpd.pid -a"

You have to change this to:

OPTIONS="-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid -a"

This says that you want to log everything with a priority above debug to the syslog deamon.

In CentOS and other Redhat distro’s you also can create a file /etc/snmp/snmpd.options and put the options line there.

  1. No comments yet.
  1. No trackbacks yet.