How can I disable redundant SNMP logging (connection information)?

    • OMV 1.0
    • How can I disable redundant SNMP logging (connection information)?

      Hi,

      Under normal working conditions, when SNMP Managers query SNMP agents (snmpd) on OMV, several lines of information similar to the following are logged into syslog:
      2015-02-01 21:50:30 Local0 Info 192.168.1.253 Feb 1 21:50:29 nas snmpd[18765]: Connection from UDP: [192.168.1.254]:56711->[192.168.1.253]
      2015-02-01 21:50:25 Local0 Info 192.168.1.253 Feb 1 21:50:24 nas snmpd[18765]: Connection from UDP: [192.168.1.254]:56710->[192.168.1.253]
      2015-02-01 21:50:15 Local0 Info 192.168.1.253 Feb 1 21:50:14 nas snmpd[18765]: Connection from UDP: [192.168.1.254]:56705->[192.168.1.253]
      .....
      As snmpd is typically queried frequently, my syslog will be filled with several such informational lines as this can lead to “noise” and is truly not required.
      How can I disable redundant SNMP logging (connection information)?
      Thank you in advance.
    • This is how I fixed my OMV

      Modify the snmpd file from the following location

      vi /etc/default/snmpd

      change this line:
      SNMPDOPTS="-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid"
      to this:
      SNMPDOPTS="-LS4d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid"

      LS4d will change the logging to warning and eliminate the snmpd messages from getting logged and going to your syslog server.