Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • perun/perun-proxyidp/perun-proxy-utils
1 result
Show changes
Commits on Source (5)
# [2.0.0](https://gitlab.ics.muni.cz/perun-proxy-aai/python/perun-proxy-utils/compare/v1.11.0...v2.0.0) (2023-09-08)
### Bug Fixes
* make check_pgsql command work ([3375756](https://gitlab.ics.muni.cz/perun-proxy-aai/python/perun-proxy-utils/commit/3375756a565fa57518a840fd26f299b03d2903d2))
### chore
* move check_syncrepl_extended to the ldap extra ([898aff3](https://gitlab.ics.muni.cz/perun-proxy-aai/python/perun-proxy-utils/commit/898aff301c8f92ba48a528e739a288f59a8d9b18))
### BREAKING CHANGES
* usage of check_syncrepl_extended now requires installing with [ldap]
# [1.11.0](https://gitlab.ics.muni.cz/perun-proxy-aai/python/perun-proxy-utils/compare/v1.10.0...v1.11.0) (2023-09-08)
......
# Perun proxy utils
Scripts and monitoring probes related to Perun ProxyIdP.
## Installation
Install via pip:
```sh
pip install perun.proxy.utils
```
There are several extras which are required only for some scripts:
- `[ldap]` for check_ldap and check_ldap_syncrepl
- this also requires installing [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
- `[postgresql]` for check_pgsql
## Scripts
### run_probes.py
### run_probes
- 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`
For usage instructions, run:
```sh
run_probes
```
### separate_ssp_script.py
......@@ -52,32 +73,48 @@
All nagios scripts are located under `nagios` directory.
### check_mongodb.py
### check_mongodb
Nagios monitoring probe for mongodb.
Tested options:
- nagios monitoring probe for mongodb
- connect
- connections
- replication_lag
- replset_state
- 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)
(some possible options may not work since there are constructs which are not supported by the latest mongodb versions)
- for usage run:
`python3 check_mongodb.py --help`
For usage instructions, run:
```sh
check_mongodb --help
```
### check_saml.py
- SAML authentication check
SAML authentication check compatible with SimpleSAMLphp and mitreID.
- for usage run:
`python3 check_saml.py --help`
For usage instructions, run:
### check_user_logins.py
```sh
check_saml --help
```
- check users which login in repeatedly more often than a specified threshold (logins per seconds)
### check_user_logins.py
- for usage run:
`python3 check_user_logins.py --help`
Check users which login in repeatedly more often than a specified threshold (logins per seconds).
- example:
For usage instructions, run:
```sh
check_user_logins --help
```
Example:
```sh
python3 check_user_logins.py
-p /var/log/proxyaai/simplesamlphp/simplesamlphp/simplesamlphp.log
-l 5
......@@ -86,46 +123,43 @@ python3 check_user_logins.py
-d "%b %d %Y %H:%M:%S"
```
### check_ldap.py
### check_ldap
Check whether an LDAP server is available.
- check whether LDAP is available
- to use this check, you must install the ldap extra:
For usage instructions, run:
```sh
pip install perun.proxy.utils[ldap]
```
```sh
check_ldap --help
```
and the [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
### check_ldap_syncrepl
- for usage run:
Check whether an LDAP replica is up to date with the provider.
```sh
python3 check_ldap.py --help
```
#### Usage
### check_privacyidea.py
```sh
check_ldap_syncrepl --help
```
- check whether privacyidea is available
- use caching arguments for avoiding failure when one TOTP code is used two times
### check_privacyidea
- for usage run:
Check whether privacyidea is available by performing TOTP authentication via the API.
Use caching arguments for avoiding failure when one TOTP code is used two times.
```sh
python3 check_privacyidea.py --help
```
For usage instructions, run:
### check_pgsql.py
```sh
check_privacyidea --help
```
- check connection to PostgreSQL
- possible check with configurable query
- to use this check you must include the postgresql extra, which will install [psycopg2-binary](https://pypi.org/project/psycopg2-binary/):
### check_pgsql
```sh
pip install perun.proxy.utils[postgresql]
```
Check connection to PostgreSQL using a configurable query.
- for usage run:
For usage instructions, run:
```sh
python3 check_pgpsql.py --help
```
```sh
check_pgsql --help
```
[metadata]
version = 1.11.0
version = 2.0.0
license_files = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
......
......@@ -15,13 +15,13 @@ setuptools.setup(
"beautifulsoup4~=4.12",
"requests~=2.31",
"PyYAML>=5.4,<7.0",
"check_syncrepl_extended~=2020.13",
"check_nginx_status~=1.0",
"pyotp~=2.9",
],
extras_require={
"ldap": [
"ldap3~=2.9.1",
"check_syncrepl_extended~=2020.13",
],
"postgresql": [
"psycopg2-binary~=2.9",
......@@ -45,7 +45,7 @@ setuptools.setup(
"check_webserver_availability="
"perun.proxy.utils.nagios.webserver_availability:main",
"check_privacyidea=perun.proxy.utils.nagios.check_privacyidea:main",
"check_pgsql=perun.proxy.utils.nagios.check_pgsql:main"
"check_pgsql=perun.proxy.utils.nagios.check_pgsql:main",
"metadata_expiration=perun.proxy.utils.metadata_expiration:main",
"print_docker_versions=perun.proxy.utils.print_docker_versions:main",
"run_version_script=perun.proxy.utils.run_version_script:main",
......