perun.proxy.utils 1.8.1__tar.gz → 1.8.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/PKG-INFO +19 -1
  2. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/README.md +17 -0
  3. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/run_probes.py +13 -12
  4. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/PKG-INFO +19 -1
  5. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/requires.txt +3 -1
  6. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/setup.cfg +1 -1
  7. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/setup.py +5 -1
  8. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/LICENSE +0 -0
  9. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/__init__.py +0 -0
  10. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/metadata_expiration.py +0 -0
  11. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/__init__.py +0 -0
  12. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_custom_command.py +0 -0
  13. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_dockers.py +0 -0
  14. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_exabgp_propagation.py +0 -0
  15. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_ldap.py +0 -0
  16. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_ldap_syncrepl.py +0 -0
  17. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_mongodb.py +0 -0
  18. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_nginx.py +0 -0
  19. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_rpc_status.py +0 -0
  20. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_saml.py +0 -0
  21. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/check_user_logins.py +0 -0
  22. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/nagios/webserver_availability.py +0 -0
  23. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/print_docker_versions.py +0 -0
  24. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/run_version_script.py +0 -0
  25. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/separate_oidc_logs.py +0 -0
  26. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun/proxy/utils/separate_ssp_logs.py +0 -0
  27. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/SOURCES.txt +0 -0
  28. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/dependency_links.txt +0 -0
  29. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/entry_points.txt +0 -0
  30. {perun.proxy.utils-1.8.1 → perun.proxy.utils-1.8.3}/perun.proxy.utils.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: perun.proxy.utils
3
- Version: 1.8.1
3
+ Version: 1.8.3
4
4
  Summary: Module with utilities and monitoring probes
5
5
  Home-page: https://gitlab.ics.muni.cz/perun-proxy-aai/proxyidp-scripts.git
6
6
  License: UNKNOWN
@@ -92,6 +92,24 @@ Description: # Perun proxy utils
92
92
  -d "%b %d %Y %H:%M:%S"
93
93
  ```
94
94
 
95
+ ### check_ldap.py
96
+
97
+ - check whether LDAP is available
98
+ - to use this check, you must install the ldap extra:
99
+
100
+ ```sh
101
+ pip install perun.proxy.utils[ldap]
102
+ ```
103
+
104
+ and the [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
105
+
106
+ - for usage run:
107
+
108
+ ```sh
109
+ python3 check_ldap.py --help
110
+ ```
111
+
95
112
  Platform: UNKNOWN
96
113
  Requires-Python: >=3.9
97
114
  Description-Content-Type: text/markdown
115
+ Provides-Extra: ldap
@@ -85,3 +85,20 @@ python3 check_user_logins.py
85
85
  -r "^(?P<datetime>.{20}).*audit-login.* (?P<userid>[0-9]+)@muni\.cz$"
86
86
  -d "%b %d %Y %H:%M:%S"
87
87
  ```
88
+
89
+ ### check_ldap.py
90
+
91
+ - check whether LDAP is available
92
+ - to use this check, you must install the ldap extra:
93
+
94
+ ```sh
95
+ pip install perun.proxy.utils[ldap]
96
+ ```
97
+
98
+ and the [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
99
+
100
+ - for usage run:
101
+
102
+ ```sh
103
+ python3 check_ldap.py --help
104
+ ```
@@ -42,18 +42,19 @@ def main():
42
42
  module = options["module"]
43
43
  for name, args in options.get("runs").items():
44
44
  command = ["python3", "-m", module]
45
- for arg_name, arg_val in args.items():
46
- if len(arg_name) == 1:
47
- arg_name = "-" + arg_name
48
- else:
49
- arg_name = "--" + arg_name
50
- if arg_val is True:
51
- arg_val = "true"
52
- elif arg_val is False:
53
- arg_val = "false"
54
- command.append(arg_name)
55
- if arg_val is not None:
56
- command.append(str(arg_val))
45
+ if args is not None:
46
+ for arg_name, arg_val in args.items():
47
+ if len(arg_name) == 1:
48
+ arg_name = "-" + arg_name
49
+ else:
50
+ arg_name = "--" + arg_name
51
+ if arg_val is True:
52
+ arg_val = "true"
53
+ elif arg_val is False:
54
+ arg_val = "false"
55
+ command.append(arg_name)
56
+ if arg_val is not None:
57
+ command.append(str(arg_val))
57
58
  Thread(target=run_probe, args=[name, command]).start()
58
59
 
59
60
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: perun.proxy.utils
3
- Version: 1.8.1
3
+ Version: 1.8.3
4
4
  Summary: Module with utilities and monitoring probes
5
5
  Home-page: https://gitlab.ics.muni.cz/perun-proxy-aai/proxyidp-scripts.git
6
6
  License: UNKNOWN
@@ -92,6 +92,24 @@ Description: # Perun proxy utils
92
92
  -d "%b %d %Y %H:%M:%S"
93
93
  ```
94
94
 
95
+ ### check_ldap.py
96
+
97
+ - check whether LDAP is available
98
+ - to use this check, you must install the ldap extra:
99
+
100
+ ```sh
101
+ pip install perun.proxy.utils[ldap]
102
+ ```
103
+
104
+ and the [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
105
+
106
+ - for usage run:
107
+
108
+ ```sh
109
+ python3 check_ldap.py --help
110
+ ```
111
+
95
112
  Platform: UNKNOWN
96
113
  Requires-Python: >=3.9
97
114
  Description-Content-Type: text/markdown
115
+ Provides-Extra: ldap
@@ -4,7 +4,9 @@ beautifulsoup4~=4.12
4
4
  check_nginx_status~=1.0
5
5
  check_syncrepl_extended~=2020.13
6
6
  docker~=6.0
7
- ldap3~=2.9.1
8
7
  pymongo~=4.3
9
8
  requests~=2.31
10
9
  setuptools
10
+
11
+ [ldap]
12
+ ldap3~=2.9.1
@@ -1,5 +1,5 @@
1
1
  [metadata]
2
- version = 1.8.1
2
+ version = 1.8.3
3
3
  license_files = LICENSE
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
@@ -14,11 +14,15 @@ setuptools.setup(
14
14
  "docker~=6.0",
15
15
  "beautifulsoup4~=4.12",
16
16
  "requests~=2.31",
17
- "ldap3~=2.9.1",
18
17
  "PyYAML>=5.4,<7.0",
19
18
  "check_syncrepl_extended~=2020.13",
20
19
  "check_nginx_status~=1.0",
21
20
  ],
21
+ extras_require={
22
+ "ldap": [
23
+ "ldap3~=2.9.1",
24
+ ]
25
+ },
22
26
  entry_points={
23
27
  "console_scripts": [
24
28
  "run_probes=perun.proxy.utils.run_probes:main",