Skip to main content

Module with utilities and monitoring probes

Project description

Perun proxy utils

Scripts

run_probes.py

  • script designed to execute multiple monitoring probes
  • output is compatible with CheckMK
  • it is required to put configuration file to /etc/run_probes_cfg.yaml
  • for usage run: ./run_probes.py or python3 -m perun.proxy.utils.run_probes

separate_ssp_script.py

  • Script for remove all logs from test accounts from SimpleSAMLlogs

  • Params:

    • 1 - The file name

backup_database.sh

  • Do mysqldump into /opt/mariadb_backup and remove all dump file older than 7 days

separate_oidc_logs.py

  • Script for remove all logs from test accounts from OIDC logs

metadata_expiration.py

  • This script checks whether there are some metadata close to expiration date

  • Params:

    • 1 - url to a page which prints a time when expires the metadata closest to expiration

print_docker_versions.py

  • This script collects system info, docker engine info and the versions of running containers and then prints it to the stdout in the JSON format

  • A python docker library is needed to run the script

  • Options:

    • -e,--exclude NAMES - space delimited string of container names to exclude from the listing

run_version_script.py

  • This scripts runs the print_docker_version.py script on the given machines. The collected versions are then printed as a MD table to the stdout

  • Options:

    • -e,--exclude NAMES - space delimited string of container names to exclude from the listing
  • Params:

    • 1... - machines to run the script on in the form of user@adress, the user needs root privileges to execute the script

Nagios probes

All nagios scripts are located under nagios directory.

check_mongodb.py

  • nagios monitoring probe for mongodb

  • connect, connections, replication_lag, replset_state monitoring options are tested (some possible options may not work since there are constructs which are not supported by latest mongodb versions)

  • for usage run: python3 check_mongodb.py --help

check_saml.py

  • SAML authentication check

  • for usage run: python3 check_saml.py --help

check_user_logins.py

  • check users which login in repeatedly more often than a specified threshold (logins per seconds)

  • for usage run: python3 check_user_logins.py --help

  • example:

python3 check_user_logins.py
    -p /var/log/proxyaai/simplesamlphp/simplesamlphp/simplesamlphp.log
    -l 5
    -s 60
    -r "^(?P<datetime>.{20}).*audit-login.* (?P<userid>[0-9]+)@muni\.cz$"
    -d "%b %d %Y %H:%M:%S"

check_ldap.py

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

perun.proxy.utils-1.8.3.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perun.proxy.utils-1.8.3-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file perun.proxy.utils-1.8.3.tar.gz.

File metadata

  • Download URL: perun.proxy.utils-1.8.3.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for perun.proxy.utils-1.8.3.tar.gz
Algorithm Hash digest
SHA256 0274a2ec852005e921b6a6da220fa44b3461a26cd2acf969520514ba2ed683f4
MD5 673192f3d52c812f65e7bbb737795c11
BLAKE2b-256 ce98e1fc6a2806dfcc9beb2b8c64ed825f905d07ed6bfde86a0a7968c1530442

See more details on using hashes here.

File details

Details for the file perun.proxy.utils-1.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for perun.proxy.utils-1.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc7caa77b67aa33de9a41d7a1bb38b6ba71d42a2b52034fd3dc20aa96f2fdbc9
MD5 7a570aac9040f9bbb0f0300c8f72206e
BLAKE2b-256 8eb5ab9ff6c883bc9674b71fae5ac94594d0c07b15284eaacac5eacd24d8b0c5

See more details on using hashes here.

Supported by

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