No description
  • Python 97.7%
  • Shell 2.3%
Find a file
2023-09-22 21:00:50 -06:00
.gitignore init 2023-09-22 20:12:37 -06:00
log_labs.py init 2023-09-22 20:12:37 -06:00
README.md Add systemd timers 2023-09-22 20:29:44 -06:00
template.env init 2023-09-22 20:12:37 -06:00
template.log_lab_machines.service Add working directory flag 2023-09-22 21:00:50 -06:00
template.log_lab_machines.timer Add systemd timers 2023-09-22 20:29:44 -06:00

Lab Machine Data Gatherer

This set of scripts setup up a recurring process to ssh into the University of Alberta lab machines, and record how much they're being used. You should be able to notice trends in the data after some time, including finding out which machines aren't really being used much.

The following data is recorded:

  • The number of distinct users on the machine
  • The load averages
  • The memory usage in KB

To run the script, you'll need to setup a few environment variables. Copy template.env to .env and fill them in. The SSH_KEY variable is the absolute path to your ssh key.

To automatically run with systemd timers, a better version of chron, edit the .service and .timer template and put the copies in /etc/systemd/system.

Do not abuse this script. The load from making the connections is very light, though still don't abuse it.