Skip to content

Small status monitoring tool for system administration course at TUM

Notifications You must be signed in to change notification settings

felixrech/status-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status monitor

Features

  • Full-fledged user authentication

    • Users can inspect test results, etc.
    • Admins can run tests outside of schedule and add new users

    Login page

  • Overview pages like one showing all VMs

    Page with overview of all VMs

  • Pages with details like full test script output or test history

    Full test output with additional information like date & time

  • Ability to view next scheduled test run and run tests outside of that schedule (latter is admins only)

Installation

During the following we consider two users, root and dash-user. This is due to test_runner.py needing access to SSH keys accessing root on all VMs, while the main application does not need any special permissions. In our setup we therefore have two different users running the respective components. You are free to use just one user, simply run all the following commands with that user.

We will need a base installation of python (version 3.7 or higher), a git client and some packages required by the python packages below:

root@server$ apt install git python3.7 python3-pip python3.7-dev libssl-dev libffi-dev

Python packages for dash framework, database communication and password hashing:

dash-user@server$ python3.7 -m pip install --upgrade dash PyMySQL bcrypt
root@server$ python3.7 -m pip install --upgrade PyMySQL bcrypt

Then we can clone (or download) this repository:

dash-user@server$ git clone git@github.com:FelixRech/status-monitor.git

After editing the configuration in components/config.py to configure database and where to bind to. Now, we are ready to run everything:

dash-user@server$ python3.7 index.py
root@server$ python3.7 test_runner.py

About

Small status monitoring tool for system administration course at TUM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published