@telemetry-js/collector-dmesg

0.0.3 • Public • Published

collector-dmesg

Collect a count of certain kernel log messages.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

Click to expand

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), increase tcp_max_syn_backlog
  • 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 disabling tcp_orphan_retries to significantly decrease the lifetime of orphans
  • TCP: out of memory [..]
    • Suggested action: tune net.ipv4.tcp_mem
  • 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.

reason logo

License

MIT © Vincent Weevers

Package Sidebar

Install

npm i @telemetry-js/collector-dmesg

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

9.24 kB

Total Files

4

Last publish

Collaborators

  • vweevers