sysmonitor-device

command module
v0.0.0-...-d59b6d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 16 Imported by: 0

README

Go Report Card

System Monitor OpenChirp Device

This device will report system statistics at a regular interval. Currently, we report the following statistics/topics:

  • mem_total
  • mem_available
  • mem_used
  • mem_usedpercent
  • disk_used
  • disk_free
  • disk_total
  • disk_usedpercent
  • load_1min
  • load_5min
  • load_15min

Operational Notes

  • The interval can be changed dynamically through the interval topic of the OC device.
  • You can force a report by publishing any message to the trigger topic.

Intervals

Interval durations must conform to the Golang time.ParseDuration string format specified below:

A duration string is a possibly signed sequence of decimal numbers, each with
optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

Plugins

Plugins allow you to extend the list of reported values. Upon each interval, each of the specified plugins are queried for their report. Their reported topic/values are then published along with the previously mentioned hard coded values. To use a plugin, set PLUGIN_PATHS to the plugin file's path. To use multiple plugins simultaneously, simply list them separated by a semicolon.

Documentation

Overview

Craig Hesling November 3, 2017

This is an System Monitor OpenChirp device. It will report the system status to an openchirp device at a scheduled interval.

Directories

Path Synopsis
network command
This plugin contributes some simple network stats
This plugin contributes some simple network stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL