A python application that allows to monitor RAM & CPU usages for a remote machine running linux . Script connects to remote machine over ssh and fetchs current resources usage. Works on Linux & Windows
Fabric is used to establish a connection between the host and the remote machine.
Top and Free are used to fetch the CPU and RAM usage in order to ensure compatibility across all linux distributions.
A simple recurring bar is used to represent the data over text.
Matplotlib is used to plot the data into a graphical visualization.
Complications arise when trying to run a GUI script in a docker container environment that would require the use of something similar to a VNC or X server in order to give access of the hosts display
One ideal fix would be to change from Docker to Conda
Docker || Python >= 3.8
Clone the repository:
git clone https://github.com/adoma25/remote-resources-monitor.git
Navigate to the repo directory:
cd remote-resources-monitor
Build the image using docker:
sudo build -t rrmonitor .
Run the built image:
sudo docker run --interactive --tty rrmonitor
If python >= 3.8 is installed you can run python main.py
. Alternatively, Docker can be used on windows following similar steps.