Files
monitorstack/doc/source/plugins-base/plugin-uptime.rst
Major Hayden 20cd4f08c2 Restructure monitorstack plugin docs
This patch moves the base plugin docs into a directory to prepare
for different types of plugins which share a common set of
instructions.

Change-Id: Ie2f193b070469d159216bafa36620674c9f6662c
2017-04-19 12:55:32 -05:00

609 B

uptime - get system uptime

The uptime plugin returns the number of seconds since the server was powered on.

Usage

This plugin takes no arguments.

Example

Run the plugin:

$ monitorstack uptime

Example output in JSON format:

{
  "variables": {
    "uptime": "18570.18"
  },
  "message": "uptime is ok",
  "meta": {
    "platform": "Linux-4.10.8-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five"
  },
  "exit_code": 0,
  "measurement_name": "system_uptime"
}