Collect a count of certain kernel log messages.
Atelemetry
plugin.
Click to expand
const telemetry = require('@telemetry-js/telemetry')()
const dmesg = require('@telemetry-js/collector-dmesg')
telemetry.task()
.collect(dmesg)
TCP: [..] Possible SYN flooding [..]
- Happens when
net.ipv4.tcp_max_syn_backlog
is exceeded - Suggested action: if amount of
SYN
is legit (not DDOS), increasetcp_max_syn_backlog
- Happens when
TCP: too many orphaned sockets
- Happens when
net.ipv4.tcp_max_orphans
is exceeded - Suggested action: if amount of orphans is legit, increase
tcp_max_orphans
and consider disablingtcp_orphan_retries
to significantly decrease the lifetime of orphans
- Happens when
TCP: out of memory [..]
- Suggested action: tune
net.ipv4.tcp_mem
- Suggested action: tune
net_ratelimit: [..] callbacks suppressed
- Can happen when too many messages are logged too fast. The kernel will suppress surplus messages and can thus also prevent the above messages from reaching us.
Yet to document.
With npm do:
npm install @telemetry-js/collector-dmesg
This project is kindly sponsored by Reason Cybersecurity Ltd.
MIT © Vincent Weevers