Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ __pycache__/
# Distribution / packaging
.Python
env/
venv/
.venv/
build/
develop-eggs/
dist/
Expand Down
18 changes: 18 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# pylint config
[FORMAT]
good-names=m,p,ok
[MESSAGES CONTROL]
disable=fixme,
consider-using-f-string,
import-outside-toplevel,
inconsistent-return-statements,
invalid-name,
line-too-long,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
redefined-outer-name,
too-many-arguments,
too-many-branches,
too-many-locals,
too-many-statements
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.PHONY: lint test

lint:
python -m pylint check_bareos
test:
python -m unittest -v -b
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# check_bareos
Icinga Monitoring Plugin to check Bareos Backup Director databases

Main Git Repository: https://github.com/widhalmt/check_bareos
At the moment this is a fork repository to make it to a synchronized project with thise site.
Icinga Monitoring Plugin to check Bareos Backup Director databases

This project is mainly aimed at fixing some bugs.
## Setup

If you want to add features contribute in the git project or sent an email to the author or git repository owner.
Requires Python 3 to be installed.

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

## Check Examples:
# Examples

Note: use the postgresql database bareos and login without password


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


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


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

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



Loading