Skip to main content

A simple listener to monitor slurm jobs

Project description

slurmworm

alt text

This is a rather simple tool to monitor SLURM emails and alert you via a telegram bot about your jobs.

Note! This is under heavy development!

Installation

  • install imapclient directly from the github repo not pip
  • clone this repo and run
python setup install
  • create a directory ~/.config/slurmworm
  • in this directory you need to place two files.
    • one is the telegram bot info for the your bot that you must create named access.yml
    • the other is a UNIX conf file with your IMAP email info named imap_monitor.ini which identifies the email account to which you will send slurm messages

Telegram bot setup

If you read the above guide to create your bot you will have nearly everything you need. You then need to get that info into your access.yml file:

token:
  '<your bot ID token>'

chat_id:
  '<the group ID where your bot will send messages>'

You should have your bot chat to a group you have created.

email setup

This is what should go in imap_monitor.ini:

[imap]
host = <your imap server>
username = <username>
password = <password>
ssl = True
folder = INBOX

[path]
download = <where mail will be temporarily stored>

Running

After you have installed and set everything up, just type

slurmworm

in a shell and it will run and monitor your email.

It is likely best to have this running in a tmux shell you can disconnect from.

May all your jobs exit 0!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slurmworm-1.0.0.tar.gz (23.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page