0.0.3 • Published 5 years ago
@telemetry-js/collector-dmesg v0.0.3
collector-dmesg
Collect a count of certain kernel log messages.
Atelemetryplugin.
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_backlogis exceeded - Suggested action: if amount of
SYNis legit (not DDOS), increasetcp_max_syn_backlog
- Happens when
TCP: too many orphaned sockets- Happens when
net.ipv4.tcp_max_orphansis exceeded - Suggested action: if amount of orphans is legit, increase
tcp_max_orphansand consider disablingtcp_orphan_retriesto 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-dmesgAcknowledgements
This project is kindly sponsored by Reason Cybersecurity Ltd.
License
MIT © Vincent Weevers
0.0.3
5 years ago
