Skip to content

A tool that monitors processes as they start and stop and saves the information to a database.

License

Notifications You must be signed in to change notification settings

jalnor/os_monitoring_tool

Repository files navigation

OS Monitoring Tool python-powered-w-70x28


A Python tool that monitors processes as they start and stop. It utilizes a separate subprocess to capture the current running processes, compares those to the database and adds the process or updates its status. It features graphs created with matplotlib and calls to an API for information about the process. OS Monitor Tool uses Tkinter for the GUI!

System Requirements


  • Python 3.10, see PYTHONINSTALL.md for detailed instructions.
  • Poetry 1.1.15 or
  • Pip (Which comes with Python)
  • Database (Sqlite is the default but if you want to use another DBMS you can find instructions in the .env-template file)

Install Dependencies Using Poetry


Per the documentation, Poetry is a dependency management and packaging tool.

Note: You can follow the instructions on their website to install poetry.
Note: Make sure to follow the instructions for activating the virtual environment in the PYTHONINSTALL.md file before continuing.

To install the requirements for the app type:

poetry install

and poetry will install all the dependencies listed in the project.lock file.

If you are planning on developing this app further, it is easy to add new dependencies, build, and package your application. A simple example of adding a dependency is:

poetry add requests

This will pull in all the dependencies required for the requests package and add them to the poetry.lock and .toml files.

Now you are ready to setup your .env file. You need to create this file in the root directory of the project. There is a template provided that shows what needs to be added to the .env file. This includes the url for which database you are using. Also, be sure to copy over the subprocess and web_lookup just as they appear as those are needed for the app to run properly.

Once the dependencies are installed and the .env file are in place, you can run the app.

poetry run python main.py

Install Dependencies Using PIP


This project contains a requirements.txt file. To install them using pip:

pip install -r requirements.txt

To add additional requirements with pip checkout this answer from alegria on StackOverflow:

And then to run it with python open a terminal and navigate to the root directory and type:

python -m main

That is it, the app should be up and running at this point, capturing, and saving the processes running on your computer.

OS_MONITOR.mp4

About

A tool that monitors processes as they start and stop and saves the information to a database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages