Web Socket based Real-Time monitor to track linux machine. Linux monitor displays all running process, memory usage, connected devices, running services on server and so on.
Let's sync with async
Linux monitor is a complete Django application which uses Django Channels to make Asynchronous web socket connection.
pip install -r requirements.txt
- python 3.5+
- Linux
- Redis (check redis installed)
Running a container.
docker-compose up -d
- Get process with pid
- CPU usage for every second.
- Servies and etc.
python manage.py makemigrations
python manage.py migrate
# then start app
python manage.py runserver
# with desired port & host
python manage.py runserver localhost:8888
-
Checkout django channels documentation Channels. Some cool examples here channels-examples (Author andrewgodwin)
-
Highly recommended. Have a look at the documentation Linux documentation