Keeplived Log Location designation

Source: Internet
Author: User
Tags rsyslog

As an operational DBA, in addition to the key indicators of the database, but also to the architecture and the underlying basic knowledge closer!

2010 Just when the work, that will be cacti monitoring more popular bar, hateful is the default log is SNMP will write to the system log file, resulting in a bad row is affected!

My former company, is not allowed to ordinary staff Sisu network, no way, the total elimination of errors!

The most stupid way is: To download the messages log from the database to the computer, and then use the noteapp+ to delete all the logs about SNMP, now think

Then find a not very stupid way: is to put the SNMP log output to prohibit specific practices SNMPD log level (location) of the changes, the document key words, is I in the home computer test verified, the notes copied to the company after the set! think about it, don't let Sisu network company how fraught Ah!

there is a high-availability configuration for the most recent project Keeplived+nginx:

By default, keeplived is also the default log written in messages, this TM is very encouraging, and then Google

1. Compiling the/etc/sysconfig/keepalived file on the master-slave keeplived node

# vi/etc/sysconfig/keepalived

# Options for keepalived. See ' keepalived--help ' output and keepalived (8) and

# keepalived.conf (5) Mans pages for a list of all options. Here is the most

# Common ones:

#

#--vrrp-p only run with VRRP subsystem.

#--check-c only run with Health-checker subsystem.

#--dont-release-vrrp-v dont remove VRRP VIPs & vroutes on daemon stop.

#--dont-release-ipvs-i dont remove Ipvs topology on daemon stop.

#--dump-conf-d Dump the configuration data.

#--log-detail-d detailed log messages.

#--log-facility-s 0-7 Set local syslog facility (Default=log_daemon)

#

Keepalived_options= "-d-d-S 0"

# #参数解释都在 # comments Inside
2. Modify the master-slave node log profile/etc/rsyslog.conf
#vi/etc/rsyslog.conf
Add the following configuration:
#keepalived-S 0
local0.*/var/log/keepalived.log
3. Restart the Log service
#/etc/init.d/rsyslog Restart
4. Check if the/var/log/keepalived.log file exists

Keeplived Log Location designation

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.