Signal Monitoring
Overview
When a process is unexpectedly ended by a signal, the signal and the process that sends the signal will be recorded for fault locating.
Configuration Description
/etc/sysmonitor/signal is the configuration file of signal monitoring. The following shows the example configuration items in this file:
SIGKILL="on" SIGTERM="on"
Table 1 Configuration description describes configuration items in the /etc/sysmonitor/signal file.
Configuration Item |
Description |
Mandatory or Not |
Default Value |
---|---|---|---|
SIGKILL |
SIGKILL signal |
No |
on |
SIGTERM |
SIGTERM signal |
No |
on |
SIGHUP |
SIGHUP signal |
No |
off |
SIGINT |
SIGINT signal |
No |
off |
SIGQUIT |
SIGQUIT signal |
No |
off |
SIGILL |
SIGILL signal |
No |
off |
SIGTRAP |
SIGTRAP signal |
No |
off |
SIGABRT |
SIGABRT signal |
No |
off |
SIGBUS |
SIGBUS signal |
No |
off |
SIGFPE |
SIGFPE signals |
No |
off |
SIGUSR1 |
SIGUSR1 signal |
No |
off |
SIGSEGV |
SIGSEGV signal |
No |
off |
SIGUSR2 |
SIGUSR2 signal |
No |
off |
SIGPIPE |
SIGPIPE signal |
No |
off |
SIGALRM |
SIGALRM signal |
No |
off |
SIGSTKFLT |
SIGSTKFLT signals |
No |
off |
SIGCHLD |
SIGCHLD signal |
No |
off |
SIGCONT |
SIGCONT signal |
No |
off |
SIGSTOP |
SIGSTOP signal |
No |
off |
SIGTSTP |
SIGTSTP signal |
No |
off |
SIGTTIN |
SIGTTIN signal |
No |
off |
SIGTTOU |
SIGTTOU signal |
No |
off |
SIGURG |
SIGURG signal |
No |
off |
SIGXCPU |
SIGXCPU signals |
No |
off |
SIGXFSZ |
SIGXFSZ signals |
No |
off |
SIGVTALRM |
SIGVTALRM signal |
No |
off |
SIGPROF |
SIGPROF signal |
No |
off |
SIGWINCH |
SIGWINCH signal |
No |
off |
SIGIO |
SIGIO signal |
No |
off |
SIGPWR |
SIGPWR signal |
No |
off |
SIGSYS |
SIGSYS signal |
No |
off |
After the configuration file of signal monitoring is modified, run the systemctl reload sysmonitor command so that the modifications can take effect.
Error Log
If the configured signal events are detected, the following information is printed in /var/log/sysmonitor.log:
[2015-03-16:18:41:38]sysmonitor[7965]: sshd[18883](parent:sshd[944]) send SIGKILL to sshd[18884]