File tree 7 files changed +337
-304
lines changed
7 files changed +337
-304
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ __pycache__/
8
8
# Distribution / packaging
9
9
.Python
10
10
env /
11
+ venv /
12
+ .venv /
11
13
build /
12
14
develop-eggs /
13
15
dist /
Original file line number Diff line number Diff line change
1
+ # pylint config
2
+ [FORMAT]
3
+ good-names =m,p,ok
4
+ [MESSAGES CONTROL]
5
+ disable =fixme,
6
+ consider-using-f-string,
7
+ import-outside-toplevel,
8
+ inconsistent-return-statements,
9
+ invalid-name,
10
+ line-too-long,
11
+ missing-class-docstring,
12
+ missing-function-docstring,
13
+ missing-module-docstring,
14
+ redefined-outer-name,
15
+ too-many-arguments,
16
+ too-many-branches,
17
+ too-many-locals,
18
+ too-many-statements
Original file line number Diff line number Diff line change
1
+ .PHONY : lint test
2
+
3
+ lint :
4
+ python -m pylint check_bareos
5
+ test :
6
+ python -m unittest -v -b
Original file line number Diff line number Diff line change 1
1
# check_bareos
2
- Icinga Monitoring Plugin to check Bareos Backup Director databases
3
2
4
- Main Git Repository: https://github.com/widhalmt/check_bareos
5
- At the moment this is a fork repository to make it to a synchronized project with thise site.
3
+ Icinga Monitoring Plugin to check Bareos Backup Director databases
6
4
7
- This project is mainly aimed at fixing some bugs.
5
+ ## Setup
8
6
9
- If you want to add features contribute in the git project or sent an email to the author or git repository owner .
7
+ Requires Python 3 to be installed .
10
8
9
+ Depending on your database setup either ` requirements-mysql.txt ` or ` requirements-postgres.txt ` needs to be installed.
11
10
12
- ## Check Examples:
11
+ # Examples
13
12
14
13
Note: use the postgresql database bareos and login without password
15
14
16
-
17
- #### Check if a full backup has 0 Bytes(is Empty) and trigger warning it is at least 1 and trigger ciritcal if more than 5 are empty
15
+ #### Check if a full backup has 0 Bytes(is Empty) and trigger warning it is at least 1 and trigger ciritcal if more than 5 are empty
18
16
``` check_bareos.py -u bareos -d p status -e -f -w 1 -c 5 ```
19
17
20
18
21
- ##### Check if a diff/inc backup is larger than 2 TB (default value) and trigger warning it is at least 1 and trigger ciritcal if more than 5 are empty
19
+ #### Check if a diff/inc backup is larger than 2 TB (default value) and trigger warning it is at least 1 and trigger ciritcal if more than 5 are empty
22
20
``` check_bareos.py -u bareos -d p status -o -d -i -w 1 -c 5 ```
23
21
24
22
@@ -56,6 +54,3 @@ Note: use the postgresql database bareos and login without password
56
54
57
55
#### Check how much tapes will expire in the next 14 days
58
56
``` check_bareos.py -u bareos -d p tape -wex -t 14 -w 10 -c 5 ```
59
-
60
-
61
-
You can’t perform that action at this time.
0 commit comments