Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How to start the snmpd with other options to get less log messages?

Writer Mia Lopez

My Linux system works with Ubuntu 18.04.6 LTS

A "ps -ef | grep snmpd" gives: Debian-+ 851 1 0 Apr01 ? 00:01:20 /usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux mteTrigger mteTriggerConf -f

The file /var/log/syslog is full of notifications like: Apr 4 11:14:14 system2 snmpd[851]: Connection from UDP: [192.168.0.238]:35386->[192.168.0.7]:161

The file /etc/default/snmpd contains: SNMPDOPTS='-Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

To get less notifications in the file /var/log/syslog, I changed this file to: SNMPDOPTS='-LSwd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

After restarting the snmpd with "systemctl restart snmpd.service", a "systemctl status snmpd.service" show that the snmpd is really restarted.

But a "ps -ef | grep snmpd" still shows the option "Lsd" instead of "LSwd".

Also after a "systemctl daemon-reload".

How can I start the snmpd with the "LSwd" option to get less logging?

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy