https://github.com/blakeliafk/serverstatus
探针 以针会友
https://github.com/blakeliafk/serverstatus
Last synced: 3 months ago
JSON representation
探针 以针会友
- Host: GitHub
- URL: https://github.com/blakeliafk/serverstatus
- Owner: BlakeLiAFK
- Created: 2022-12-06T11:02:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T13:53:17.000Z (over 2 years ago)
- Last Synced: 2025-02-07T08:23:32.241Z (4 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ServerStatus
以针会友
## Install
```shell
wget -q https://www.github.com/DGHeroin/ServerStatus/releases/latest/download/ServerStatus-linux-amd64 \
-O /usr/local/bin/ServerStatus && \
chmod +x /usr/local/bin/ServerStatus
```### server systemd
```shell
[Unit]
Description=ServerStatus Server
After=network.target[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/bin/
ExecStart=ServerStatus server --addr ":16808" --authAgent token_of_agent --authView token_of_view_api
Restart=always[Install]
WantedBy=multi-user.target
```### agent systemd
```shell
[Unit]
Description=ServerStatus Agent
After=network.target[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/bin/
ExecStart=ServerStatus agent --addr "http://127.0.0.1:16808" --auth token_of_agent --s vps-node-name
Restart=always[Install]
WantedBy=multi-user.target
```### view by curl
```shell
curl -H "Authorization: token_of_view_api" http://127.0.0.1:16808/api/view/statuscurl -H "Authorization: token_of_view_api" http://127.0.0.1:16808/api/view/status?txt=1
```