Filtering the NET-SNMP logs in/var/log/messages

Source: Internet
Author: User
Tags snmp system log

Net-snmp the log default record in /var/log/messages , since most of the SNMP with the remote host connection information, and many, affecting the other system log view, it is possible to use this method to SNMP the log from /var/log/messages separated from it.

Modify snmp-options parameter implementation:  

#vi/etc/sysconfig/snmpd.optionsoptions= "-ls2d-lf/tmp/snmpd.log-p/var/run/snmpd.pid-a"

indicates that the SNMP log is output to the /tmp/snmpd.log file and no longer output to /var/log/ The messages file.

If you don't need these , SNMP log content, you can change the output path to /dev/null , so it does not generate SNMP 's log.


This article from the "Play God Clown" blog, reproduced please contact the author!

Filtering the NET-SNMP logs in/var/log/messages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.