JSPM

@telemetry-js/collector-dmesg

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q20022F
  • License MIT

Collect a count of certain kernel log messages

Package Exports

  • @telemetry-js/collector-dmesg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@telemetry-js/collector-dmesg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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