Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

djosix/servstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

23 Commits

Repository files navigation

ServStat: Server Usage Monitoring Tool

ServStat is a robust tool designed to monitor multiple servers for CPU, memory, and GPU usage.

Demonstration Image

Backend Deployment

Ensure that you are logged in as the root user.

cd /root
git clone https://github.com/djosix/servstat.git .servstat
cd .servstat/backend
python3 -m pip install -r requirements.txt

To launch the API server:

python3 main.py --host=0.0.0.0 --port=9989

Optionally, you can manage the service with supervisor to ensure it always restarts after system reboots:

# Install supervisor
apt install supervisor
cp servstat.conf /etc/supervisor/conf.d/servstat.conf
vim /etc/supervisor/conf.d/servstat.conf # Customization allowed
systemctl reload supervisor
supervisorctl start servstat

Frontend Building Process

This process has been tested with Node.js v14.16.0 and Ubuntu 20.04.

git clone https://github.com/djosix/servstat.git
cd servstat/frontend
npm install
# Add your server configuration
vim public/config.json
# Build the static site
npm run build
# Or build with a custom base path
npx vite build --base=/base/path/

After building, serve the dist/ folder using a web server:

# Copy files to the document root
cp -r dist/* /var/www/html/

These instructions will assist you in getting a copy of the project up and running on your local machines for development and testing purposes.

AltStyle によって変換されたページ (->オリジナル) /