Bug 49029

Summary: Прошу собрать check_ipa_consistency
Product: New/proposed packages Reporter: Anton Shevtsov <shevtsov.anton>
Component: Обычный репозиторийAssignee: Andrey Cherepanov <cas>
Status: NEW --- QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P5 CC: shevtsov.anton, viy
Version: не указана   
Hardware: x86_64   
OS: Linux   

Description Anton Shevtsov 2024-01-10 14:04:45 MSK
Для внятного просмотра статуса репликации между КД FreeIPA хотелось бы использовать https://github.com/peterpakos/checkipaconsistency

Для ее работы, кроме всего прочего, нужен модуль питона https://github.com/peterpakos/pplogger , которого тоже нет.

Я все это собрал для себя
SRPM:
http://altrepo.ru/local-p10/noarch/SRPMS.local-p10/python3-module-pplogger-3.0.0-alt1.src.rpm
http://altrepo.ru/local-p10/noarch/SRPMS.local-p10/checkipaconsistency-2.7.11-alt1.src.rpm

RPM:
http://altrepo.ru/local-p10/noarch/RPMS.local-p10/python3-module-pplogger-3.0.0-alt1.noarch.rpm
http://altrepo.ru/local-p10/noarch/RPMS.local-p10/checkipaconsistency-2.7.11-alt1.noarch.rpm

Думаю, это пригодиться не только мне.

p.s. дополнительным бонусом утилиты это то, что она может работать как плагин для мониторинга Nagios.


[user@dc1 checkipaconsistency]$ cipa
+--------------------+-------+-------+-------+
| FreeIPA servers:   | dc1   | dc2   | STATE |
+--------------------+-------+-------+-------+
| Active Users       | 3     | 3     | OK    |
| Stage Users        | 0     | 0     | OK    |
| Preserved Users    | 0     | 0     | OK    |
| Hosts              | 3     | 3     | OK    |
| Services           | 10    | 10    | OK    |
| User Groups        | 4     | 4     | OK    |
| Host Groups        | 1     | 1     | OK    |
| Netgroups          | 0     | 0     | OK    |
| HBAC Rules         | 2     | 2     | OK    |
| SUDO Rules         | 1     | 1     | OK    |
| DNS Zones          | 3     | 3     | OK    |
| Certificates       | 14    | 14    | OK    |
| LDAP Conflicts     | 0     | 0     | OK    |
| Ghost Replicas     | 0     | 0     | OK    |
| Anonymous BIND     | ON    | ON    | OK    |
| Microsoft ADTrust  | False | False | OK    |
| Replication Status | dc2 0 | dc1 0 | OK    |
+--------------------+-------+-------+-------+
[user@dc1 checkipaconsistency]$ cipa -n all
OK - 17/17 checks passed

[user@dc1 checkipaconsistency]$ cipa --debug -n all
2024-01-10 14:02:34 [main] DEBUG Namespace(hosts=None, domain=None, binddn=None, bindpw=None, debug=True, verbose=False, quiet=False, log_file=None, disable_header=False, disable_border=False, nagios_check='all', warning=1, critical=2)
2024-01-10 14:02:34 [main] DEBUG Initialising...
2024-01-10 14:02:34 [main] DEBUG Loading configuration file /home/user/.config/checkipaconsistency
2024-01-10 14:02:34 [main] DEBUG DOMAIN = ipa.alt
2024-01-10 14:02:34 [main] DEBUG HOSTS = dc1, dc2
2024-01-10 14:02:34 [main] DEBUG BINDDN = cn=Directory Manager
2024-01-10 14:02:34 [main] DEBUG BINDPW = ********
2024-01-10 14:02:34 [main] DEBUG IPA domain: ipa.alt
2024-01-10 14:02:34 [main] DEBUG IPA servers: dc1, dc2
2024-01-10 14:02:34 [main] DEBUG Starting...
2024-01-10 14:02:34 [main] DEBUG Nagios plugin mode
2024-01-10 14:02:34 [main] DEBUG Running check: all
2024-01-10 14:02:34 [main] INFO OK - 17/17 checks passed

[user@dc1 checkipaconsistency]$ cipa -n users -w 2 -c3
OK - Active Users