File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
test/kernel_log_generator/problems Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "plugin" : " journald" ,
3
- "pluginConfig" : {
4
- "source" : " kernel"
5
- },
6
- "logPath" : " /var/log/journal" ,
2
+ "plugin" : " kmsg" ,
3
+ "logPath" : " /dev/kmsg" ,
7
4
"lookback" : " 5m" ,
8
5
"bufferSize" : 10 ,
9
6
"source" : " kernel-monitor" ,
12
9
"type" : " KernelDeadlock" ,
13
10
"reason" : " KernelHasNoDeadlock" ,
14
11
"message" : " kernel has no deadlock"
12
+ },
13
+ {
14
+ "type" : " ReadonlyFilesystem" ,
15
+ "reason" : " FilesystemIsNotReadOnly" ,
16
+ "message" : " Filesystem is not read-only"
15
17
}
16
18
],
17
19
"rules" : [
51
53
"condition" : " KernelDeadlock" ,
52
54
"reason" : " DockerHung" ,
53
55
"pattern" : " task docker:\\ w+ blocked for more than \\ w+ seconds\\ ."
56
+ },
57
+ {
58
+ "type" : " permanent" ,
59
+ "condition" : " ReadonlyFilesystem" ,
60
+ "reason" : " FilesystemIsReadOnly" ,
61
+ "pattern" : " Remounting filesystem read-only"
54
62
}
55
63
]
56
64
}
Original file line number Diff line number Diff line change @@ -2,11 +2,8 @@ apiVersion: v1
2
2
data :
3
3
kernel-monitor.json : |
4
4
{
5
- "plugin": "journald",
6
- "pluginConfig": {
7
- "source": "kernel"
8
- },
9
- "logPath": "/var/log/journal",
5
+ "plugin": "kmsg",
6
+ "logPath": "/dev/kmsg",
10
7
"lookback": "5m",
11
8
"bufferSize": 10,
12
9
"source": "kernel-monitor",
15
12
"type": "KernelDeadlock",
16
13
"reason": "KernelHasNoDeadlock",
17
14
"message": "kernel has no deadlock"
15
+ },
16
+ {
17
+ "type": "ReadonlyFilesystem",
18
+ "reason": "FilesystemIsReadOnly",
19
+ "message": "Filesystem is read-only"
18
20
}
19
21
],
20
22
"rules": [
54
56
"condition": "KernelDeadlock",
55
57
"reason": "DockerHung",
56
58
"pattern": "task docker:\\w+ blocked for more than \\w+ seconds\\."
59
+ },
60
+ {
61
+ "type": "permanent",
62
+ "condition": "ReadonlyFilesystem",
63
+ "reason": "FilesystemIsReadOnly",
64
+ "pattern": "Remounting filesystem read-only"
57
65
}
58
66
]
59
67
}
Original file line number Diff line number Diff line change
1
+ EXT4-fs (sda1): Remounting filesystem read-only
You can’t perform that action at this time.
0 commit comments