Discover Packages
github.com/umputun/sys-agent
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 10, 2021
License: MIT
Opens a new window with license information.
README
README
¶
sys-agent
System agent is a simple service reporting server status via HTTP GET request.
usage
$ sys-agent -l :8080 -v "root:/" -v "data:/mnt/data"
Application Options:
-l, --listen= listen on host:port (default: localhost:8080) [$LISTEN]
-v, --volume= volumes to report (default: root:/) [$VOLUMES]
--dbg show debug info [$DEBUG]
Help Options:
-h, --help Show this help message
api
GET /status - returns server status
response:
{
"hostname": "UMBP.localdomain",
"procs": 685,
"host_id": "021af95f-69ca-5ae2-8725-5739eca1b094",
"cpu_percent": 12,
"volumes": [
{
"name": "root",
"path": "/",
"usage_percent": 33
},
{
"name": "data",
"path": "/mnt/data",
"usage_percent": 67
}
]
}
GET /pinh - returns pong
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.