This article mainly tells you in detail what prompts are provided for the Cisco router error information and what analysis is required. The following article will provide a detailed answer.
Error Message formatThe format of the system error message is as follows:
% Facility-subfacility-Severity-Mnemonic: Message Text
Facility indicates the device name involved in the error message. The value can be a protoc
message:Monit $ACTION $SERVICE $EVENT at $DATE on $HOST : $DESCRIPTION.
Yours sincerely,
Monit
}
set alert guletz@monit.ro
As you can see, Monit provides several internal variables ($DATE,$EVENT,$HOST). You can customize the email content as needed. If you want to send emails from the machine where Monit is located, you need a program (such as postfix or ssmtp) that is compatible with sendmail ).
Global Configuration: Monit Daemon (Global Configuration: Monit Daemon)
Next, configure the M
xinetd is running and replaced by the-port option on the command line.
873
Motd file
Specify a message file. When the client connects to the server, the file content is displayed to the client.
None
Pid file
The rsync daemon writes its PID to the specified file.
None
Log file
Specify the log file of the rsync daemon, instead of sending the log to syslog.
None
call itself (e.g. ": omusrmsg:") as well as all action-defining configuration statements ($ Action... directives VES)
2. Statement Types expression type
Generally, RainerScript type statements is used for concise and clear configuration declaration. For example:
mail.info /var/log/mail.log 3. Process Control
Control structures
Filter Condition
Selector: the traditional mode. The format is as follows:The default facility is auth, authpriv, cr
replaced with the –port option on the command line.
873
MOTD file
Specifies a message file that displays the contents of the file to the customer when the client connects to the server.
No
PID File
The daemon of Rsync writes its PID to the specified file.
No
Log file
Specifies the log file for the rsync daemon, without sending the log to the syslog.
No
Specify a message file. When the client connects to the server, the file content is displayed to the client.
None
PID File
The Rsync daemon writes its PID to the specified file.
None
Log File
Specify the log file of the rsync daemon, instead of sending the log to syslog.
None
Syslog facility
Specifies the message l
replaced by the-port option on the command line.
873
Motd file
Specify a message file. When the client connects to the server, the file content is displayed to the client.
None
Pid file
The rsync daemon writes its PID to the specified file.
None
Log file
Specify the log file of the rsync daemon, instead of sending the log to syslog.
None
Syslog
configuration Redhat5 service name: syslog configuration file:/etc/syslog. confC/S architecture: log records are transmitted through TCP or UDP services, which are distributed on the day of different hosts. Log centralized management event record format: Date and time host process [pid]: Event content centos6 7 service name: rsyslog features: multi-channel work module, through UDP, TCP, SSL, TLS, the RELP
function calls to the SYSLOGD service. This improves the security of the logs and prevents the log files from being tampered with illegally.1Closelog, Openlog, syslog-send messages to the system logger2 3#include 4 5 voidOpenlog (Const Char*Ident,int option,int facility);6 voidSyslogint Priority,Const Char* format, ...);7 voidCloselog (void);The Openlog (3) function is not to open the log file but to esta
Why->what->where->when->who->how1. Why log Collection? Why do you use the Rsyslog?Logs are fundamental to the health analysis of systems and applications, and some logs have special functions, such as MySQL's binary logs and transaction logs. Therefore, to log collection, in order to avoid duplication of the implementation of the log system, so in the Linux distribution has provided the System log collection-RSYSLOGD2. What is Rsyslog?Rsyslog, formerly known as
-port option on the command line.
873
Motd file
Specify a message file. When the client connects to the server, the file content is displayed to the client.
None
Pid file
The rsync daemon writes its PID to the specified file.
None
Log file
Specify the log file of the rsync daemon, instead of sending the log to syslog.
None
Syslog
replaced with the –port option on the command line.
873
MOTD file
Specifies a message file that displays the contents of the file to the customer when the client connects to the server.
No
PID File
The daemon of Rsync writes its PID to the specified file.
No
Log file
Specifies the log file for the rsync daemon, without sending the log to the syslog.
No
of sending the log to syslog.
None
Syslog facility
Specifies the message level when rsync sends a log message to syslog.
Daemon
Socket options
Specify custom TCP options.
None
Module Parameters
Module parameters are mainly used to define which directory of the rsync server to be
of higher performance Log collection display tools, the more popular is Elk,e:elasticsearch, L:logstash, K:kibana. I'll introduce you later .Two Rsyslog features
features of the Rsyslog: multithreading; Udp/tcp/ssl/tls/relp; store log information in MySQL, Pgsql, Oracle and other RDBMS; A powerful filter to filter the contents of any part of the log information; custom output format;
Common event Record Format: DateTime host Process [PID]: event content;
information into the specified LOG file. It is initially stored in/var/log/messages. Because it is stored in messages, it is inconvenient to analyze logs. This section briefly introduces an instance for managing, looping, and automatically reporting iptables logs.
Iptables is installed by default in almost all Linux distributions. It is managed by the facility of dmesg or syslogd in combination with the kernel. The initial value of iptables logs is [
set to 0, keepalive detection is not performed.LogLevel Notice # Log level, there are four kinds of debug, verbose, notice, warningLogFile "" #定义日志路径,Syslog-identredis #如果希望日志打印到syslog中, controlled by syslog-enabled. In addition, Syslog-ident allows you to specify log flags in the syslog.Syslog-
seconds, the server side will every 60 seconds to connect to idle clients to initiate an ACK request, To check if the client has been hung, and the unresponsive client closes its connection. If set to 0, keepalive detection is not performed.LogLevel Notice # Log level, there are four kinds of debug, verbose, notice, warninglogfile "" #定义日志路径,Syslog-ident Redis #如果希望日志打印到syslog中, controlled by
LOG: Records the time that occurs by time series.Record content: The time the event occurred, the content of the event.Logging System for Linux systems:1, Syslogd: For CentOS 5, record the system process related logs2, KLOGD: Kernel event-related logsRsyslog: New features supported on CentOS 6:1. Support Multi-Threading2, support based on the TCP,SSL,TLS,RELP protocol to store log information on the remote log server, the previous version of the Syslog
of debug, verbose, notice, warningLogFile "" #定义日志路径,Syslog-ident Redis #如果希望日志打印到syslog中, controlled by syslog-enabled. In addition, Syslog-ident allows you to specify log flags in the syslog.Syslog-facility Local0 # Specifies the sysl
First, PPP can release debug kedebug debug Options in the options file Second, Linux kernel journaling can be viewed through cat/var/log/syslog.1The following are the relevant steps for Linux
Cd/etc/ppp
Ls
VI Options
Change #debug to debug # Increase debugging level (same as-d) . If This option is given, PPPD # would log the contents of all control packets sent or received in a # readable form. the packets is logged through
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.