Skip to content

Commit defdf7e

Browse files
committed
Rename the project, bump version
1 parent edf2a67 commit defdf7e

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ python:
88
install:
99
- pip install -r requirements.txt pycodestyle
1010
script:
11-
- pycodestyle --max-line-length=120 ipa_check_consistency *.py
12-
- python ./ipa_check_consistency --help
11+
- pycodestyle --max-line-length=120 check_ipa_consistency *.py
12+
- python ./check_ipa_consistency --help
1313
notifications:
1414
email:
1515
on_success: change

FreeIPAServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Copyright (C) 2017 WANdisco
88
9-
This file is part of ipa_check_consistency.
9+
This file is part of check_ipa_consistency.
1010
1111
This program is free software: you can redistribute it and/or modify
1212
it under the terms of the GNU General Public License as published by

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# ipa_check_consistency
1+
# check_ipa_consistency
22
## Tool to check consistency across FreeIPA servers
3+
### Formerly known as ipa_check_consistency
34

45
The tool can be used as a standalone consistency checker as well as a Nagios/Opsview plug-in (check [Nagios section below](#nagios-plug-in-mode) for more info).
56

6-
The script was originally written and developed in BASH (see [v1.3.0](https://github.com/peterpakos/ipa_check_consistency/tree/v1.3.0)) and eventually ported to Python in v2.0.0.
7+
The script was originally written and developed in BASH (see [v1.3.0](https://github.com/peterpakos/check_ipa_consistency/tree/v1.3.0)) and eventually ported to Python in v2.0.0.
78

89
It has been tested with multiple FreeIPA 4.2+ deployments across a range of operating systems.
910

@@ -21,12 +22,12 @@ $ pip install -r requirements.txt
2122
```
2223

2324
## Configuration
24-
Edit the sample config file `ipa_check_consistency.cfg_sample` and save it as either `~/.ipa_check_consistency.cfg` or `ipa_check_consistency.cfg` in the script's directory.
25+
Edit the sample config file `check_ipa_consistency.cfg_sample` and save it as either `~/.check_ipa_consistency.cfg` or `check_ipa_consistency.cfg` in the script's directory.
2526

2627
## Help
2728
```
28-
$ ./ipa_check_consistency --help
29-
usage: ipa_check_consistency [-H [HOSTS [HOSTS ...]]] [-d [DOMAIN]]
29+
$ ./check_ipa_consistency --help
30+
usage: check_ipa_consistency [-H [HOSTS [HOSTS ...]]] [-d [DOMAIN]]
3031
[-D [BINDDN]] [-W [BINDPW]] [--version] [--help]
3132
[--debug] [--verbose] [--quiet] [--no-header]
3233
[--no-border]
@@ -61,7 +62,7 @@ optional arguments:
6162

6263
## Example
6364
```
64-
$ ./ipa_check_consistency -d ipa.example.com -W ********
65+
$ ./check_ipa_consistency -d ipa.example.com -W ********
6566
+--------------------+----------+----------+----------+-----------+----------+----------+-------+
6667
| FreeIPA servers: | ipa01 | ipa02 | ipa03 | ipa04 | ipa05 | ipa06 | STATE |
6768
+--------------------+----------+----------+----------+-----------+----------+----------+-------+
@@ -87,27 +88,27 @@ $ ./ipa_check_consistency -d ipa.example.com -W ********
8788
8889
```
8990
## Debug mode
90-
If you experience any problems with the tool, check the log file (`ipa_check_consistency.log`) or try running it in the debug mode:
91+
If you experience any problems with the tool, check the log file (`check_ipa_consistency.log`) or try running it in the debug mode:
9192

9293
```
93-
$ ./ipa_check_consistency --debug
94-
2017-12-18 15:00:07,567 [ipa_check_consistency] DEBUG Namespace(binddn=None, bindpw=None, critical=2, debug=True, disable_border=False, disable_header=False, domain=None, hosts=None, nagios_check=None, quiet=False, verbose=False, warning=1)
95-
2017-12-18 15:00:07,568 [ipa_check_consistency] DEBUG Initialising...
96-
2017-12-18 15:00:07,568 [ipa_check_consistency] DEBUG Looking for config files
97-
2017-12-18 15:00:07,568 [ipa_check_consistency] DEBUG Config file not found
98-
2017-12-18 15:00:07,568 [ipa_check_consistency] CRITICAL IPA domain not set
94+
$ ./check_ipa_consistency --debug
95+
2017-12-18 15:00:07,567 [check_ipa_consistency] DEBUG Namespace(binddn=None, bindpw=None, critical=2, debug=True, disable_border=False, disable_header=False, domain=None, hosts=None, nagios_check=None, quiet=False, verbose=False, warning=1)
96+
2017-12-18 15:00:07,568 [check_ipa_consistency] DEBUG Initialising...
97+
2017-12-18 15:00:07,568 [check_ipa_consistency] DEBUG Looking for config files
98+
2017-12-18 15:00:07,568 [check_ipa_consistency] DEBUG Config file not found
99+
2017-12-18 15:00:07,568 [check_ipa_consistency] CRITICAL IPA domain not set
99100
100101
```
101102

102103
## Nagios plug-in mode
103104
Perform all checks using default warning/critical thresholds:
104105
```
105-
$ ./ipa_check_consistency -n all
106+
$ ./check_ipa_consistency -n all
106107
OK - 15/15 checks passed
107108
```
108109
Perform specific check with custom alerting thresholds:
109110
```
110-
$ ./ipa_check_consistency -n users -w 2 -c3
111+
$ ./check_ipa_consistency -n users -w 2 -c3
111112
OK - Active Users
112113
```
113114

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ except ImportError:
3838

3939

4040
class Main(object):
41-
VERSION = '2.2.0'
41+
VERSION = '2.3.0'
4242

4343
def __init__(self):
4444
self._app_name = os.path.basename(__file__)

logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Copyright (C) 2017 WANdisco
88
9-
This file is part of ipa_check_consistency.
9+
This file is part of check_ipa_consistency.
1010
1111
This program is free software: you can redistribute it and/or modify
1212
it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)