@telemetry-js/collector-dmesg
v0.0.3
Published
Collect a count of certain kernel log messages
Downloads
1
Maintainers
Readme
collector-dmesg
Collect a count of certain kernel log messages.
Atelemetry
plugin.
Table of Contents
Usage
const telemetry = require('@telemetry-js/telemetry')()
const dmesg = require('@telemetry-js/collector-dmesg')
telemetry.task()
.collect(dmesg)
Included messages
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.
API
Options
Yet to document.
Install
With npm do:
npm install @telemetry-js/collector-dmesg
Acknowledgements
This project is kindly sponsored by Reason Cybersecurity Ltd.
License
MIT © Vincent Weevers