Monitoring CPU, memory, and GPU usage of multiple servers.
Use root as example:
cd /etc
git clone https://github.com/HuJK/servstat.git servstat
cd servstat/backend
python3 -m pip install -r requirements.txtSimply run the API server:
python3 main.py --host=0.0.0.0 --port=9989Or manage this service with systemd, so that it will always start after rebooting:
cd /etc
git clone https://github.com/HuJK/servstat.git servstat
cd servstat/backend
bash install.shgit clone https://github.com/HuJK/servstat.git servstat
cd servstat/frontend
npm install
npm run buildEdit dist/config.json
{
"interval": 10000,
"links": [
["Server 01","https://api.server01.example.com:9989/api", "https://url.server01.example.com"] ,
["Server 02","https://api.server02.example.com:9989/api"]
]
}Serve the dist/ folder using a web server, for example:
# Copy files to document root of your web server
cp -r dist/* /var/www/html/