You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[KernelMonitor](https://github.com/kubernetes/node-problem-detector/tree/master/pkg/logmonitor)| KernelDeadlock | A problem daemon monitors kernel log and reports problem according to predefined rules. |
52
+
|[KernelMonitor](https://github.com/kubernetes/node-problem-detector/blob/master/config/kernel-monitor.json)| KernelDeadlock | A system log monitor monitors kernel log and reports problem according to predefined rules. |
53
53
54
54
# Usage
55
55
## Flags
56
56
*`--version`: Print current version of node-problem-detector.
57
-
*`--kernel-monitor`: The configuration used by the kernel monitor, e.g.
57
+
*`--system-log-monitor`: The configuration used by the system log monitor, e.g.
Kernel log on different OS distros may locate in different path. The `logPath`
52
-
field in `config/kernel-monitor.json` is the log path inside the container.
53
-
You can always configure `logPath` and volume mount to match your OS distro.
54
-
* syslog: `logPath` is the kernel log path, usually `/var/log/kern.log`.
72
+
Log on different OS distros may locate in different path. The `logPath`
73
+
field in the configurtion file is the log path. You can always configure
74
+
`logPath` to match your OS distro.
75
+
* filelog: `logPath` is the path of log file, e.g. `/var/log/kern.log` for kernel
76
+
log.
55
77
* journald: `logPath` is the journal log directory, usually `/var/log/journal`.
56
78
57
79
### New Log Watcher
58
80
59
-
Kernel monitor uses [Log
60
-
Watcher](https://github.com/kubernetes/node-problem-detector/blob/master/pkg/logmonitor/logwatchers/types/log_watcher.go) to support different log management tools.
81
+
System log monitor uses [Log
82
+
Watcher](https://github.com/kubernetes/node-problem-detector/blob/master/pkg/systemlogmonitor/logwatchers/types/log_watcher.go) to support different log management tools.
0 commit comments