Skip to content

Commit 79489ce

Browse files
committed
fix: Change vmxnet3 pattern source from 'kmsg' to 'both'
Kernel messages appear in both /dev/kmsg and systemd journal, so vmxnet3 patterns should match against both sources. This is a workaround for a blocking issue where the kmsg reader uses os.ReadFile() which blocks forever on /dev/kmsg (a character device that never returns EOF).
1 parent c1a8c2d commit 79489ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/monitors/custom/patterns.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,26 +200,27 @@ var DefaultLogPatterns = []LogPatternConfig{
200200
Source: "kmsg",
201201
},
202202
// VMware vmxnet3 patterns (Case 01607046 - TX hang cascade failures)
203+
// Note: Using "both" source because kernel messages appear in both kmsg and journal
203204
{
204205
Name: "vmxnet3-tx-hang",
205206
Regex: "vmxnet3.*tx hang",
206207
Severity: "error",
207208
Description: "VMware vmxnet3 virtual NIC transmit hang - causes network disruption and can cascade to storage failures (Longhorn, iSCSI)",
208-
Source: "kmsg",
209+
Source: "both",
209210
},
210211
{
211212
Name: "vmxnet3-nic-reset",
212213
Regex: "vmxnet3.*resetting",
213214
Severity: "warning",
214215
Description: "VMware vmxnet3 NIC reset in progress - brief network outage during recovery",
215-
Source: "kmsg",
216+
Source: "both",
216217
},
217218
{
218219
Name: "soft-lockup-storage",
219220
Regex: "soft lockup.*(?:longhorn|mpt|scsi|iscsi|nvme|nfs)",
220221
Severity: "error",
221222
Description: "CPU soft lockup in storage subsystem - may indicate I/O stall from network/storage issues",
222-
Source: "kmsg",
223+
Source: "both",
223224
},
224225
}
225226

0 commit comments

Comments
 (0)