Skip to content

Commit f9318df

Browse files
authored
Merge pull request #22 from NETWAYS/release-v1.1.0
Release v1.1.0
2 parents fcc069e + f69aca8 commit f9318df

7 files changed

+337
-304
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ __pycache__/
88
# Distribution / packaging
99
.Python
1010
env/
11+
venv/
12+
.venv/
1113
build/
1214
develop-eggs/
1315
dist/

.pylintrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.PHONY: lint test
2+
3+
lint:
4+
python -m pylint check_bareos
5+
test:
6+
python -m unittest -v -b

README.md

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
# check_bareos
2-
Icinga Monitoring Plugin to check Bareos Backup Director databases
32

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
64

7-
This project is mainly aimed at fixing some bugs.
5+
## Setup
86

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.
108

9+
Depending on your database setup either `requirements-mysql.txt` or `requirements-postgres.txt` needs to be installed.
1110

12-
## Check Examples:
11+
# Examples
1312

1413
Note: use the postgresql database bareos and login without password
1514

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
1816
```check_bareos.py -u bareos -d p status -e -f -w 1 -c 5```
1917

2018

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
2220
```check_bareos.py -u bareos -d p status -o -d -i -w 1 -c 5```
2321

2422

@@ -56,6 +54,3 @@ Note: use the postgresql database bareos and login without password
5654

5755
#### Check how much tapes will expire in the next 14 days
5856
```check_bareos.py -u bareos -d p tape -wex -t 14 -w 10 -c 5```
59-
60-
61-

0 commit comments

Comments
 (0)