Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabryprog/vps-monitor
https://github.com/fabryprog/vps-monitor
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fabryprog/vps-monitor
- Owner: Fabryprog
- Created: 2018-12-03T06:58:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-18T18:56:51.000Z (about 1 year ago)
- Last Synced: 2024-04-21T06:17:16.028Z (9 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vps-monitor
VPS Monitor using MQTT
# Config
Config file must contains:
```
{
"id": "",
"mqtt": {
"url": "tcp://:"
},
"commons": {
"interval":
}
}
```# Run
* Nodejs
* Build
> `npm install`* Run
> `nodejs index.js`* Docker
* `docker run --name vps-monitor -v /etc/hostname:/etc/hostname:ro -v $PWD/config.json:/opt/monitor/config.json -d fabryprog/vps-monitor`
# How to work
## First step
Monitor create a message to configured MQTTEvery data are pushed into single topic:
| DATA | TOPIC |
|------|-------|
| Platform | vps-monitor/ID/platform |
| Uptime | vps-monitor/ID/uptime |
| CPU Count | vps-monitor/ID/cpu/count |
| CPU Usage | vps-monitor/ID/cpu/usage |
| AVG Load 1 min | vps-monitor/ID/load/avg1 |
| AVG Load 1 min | vps-monitor/ID/load/avg5 |
| Memory Total | vps-monitor/ID/memory/total |
| Memory Free | vps-monitor/ID/memory/free |
| Last TS | vps-monitor/ID/last/ts |
| Last ISO UTC Date | vps-monitor/ID/last/date |# Mobile App
You can use every MQTT client. I am using [MQTT Dashboard](https://play.google.com/store/apps/details?id=net.routix.mqttdash)