Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
bd603a44
Commit
bd603a44
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add docs
parent
f9a95f3f
No related branches found
No related tags found
1 merge request
!223
6908 check rearbackup
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/20_Checks/_index.md
+1
-0
1 addition, 0 deletions
docs/20_Checks/_index.md
docs/20_Checks/check_rearbackup.md
+89
-0
89 additions, 0 deletions
docs/20_Checks/check_rearbackup.md
with
90 additions
and
0 deletions
docs/20_Checks/_index.md
+
1
−
0
View file @
bd603a44
...
@@ -40,6 +40,7 @@ There is one include script used by all checks:
...
@@ -40,6 +40,7 @@ There is one include script used by all checks:
*
check_proc_ressources
*
check_proc_ressources
*
check_proc_zombie
*
check_proc_zombie
*
[
check_psqlserver
](
check_psqlserver.md
)
*
[
check_psqlserver
](
check_psqlserver.md
)
*
[
check_rearbackup
](
check_rearbackup.md
)
*
[
check_reboot_required
](
check_reboot_required.md
)
*
[
check_reboot_required
](
check_reboot_required.md
)
*
check_requirements
*
check_requirements
*
check_sensuplugins
*
check_sensuplugins
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_rearbackup.md
0 → 100644
+
89
−
0
View file @
bd603a44
# Check Rear backup
## Introduction
This check can verify the age of all iso files in the backup target directory.
## Requirements
There can be a permission issue to reach the backup target directory.
On our servers the backup target is using a user
*imlbackup*
. To give access to its resources we added the group "imlrear" for icinga.
```
txt
$ id icingaclient
uid=1041(icingaclient) gid=1041(icingaclient) groups=1041(icingaclient),1056(imlrear)
^
|
additional group for icinga client user -----+
```
## Syntax
```
txt
______________________________________________________________________
CHECK_REARBACKUP
v1.0
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_rearbackup.html
______________________________________________________________________
Check if iso files of rear backup are not out of date.
You can customize the values for
* backup directory
* limits for warning and critical
This plugin sends performancedata.
SYNTAX:
check_rearbackup [-h] [--dir PATH] [--critical VALUE] [--warning VALUE]
OPTIONS:
-h, --help
this help
PARAMETERS:
-d, --dir PATH
set installation dir of iml deployment to find its check skript
default dir: /rearshare/rear-backup
-c, --critical VALUE
critical level in days (default: 14)
-w. --warning VALUE
warning level in days (default: 7)
EXAMPLE:
check_rearbackup
Check backup data with initial values
check_rearbackup -d /data/mybackups
Check iso files a given directory
check_rearbackup -d /data/mybackups -w 14 -c 28
Check iso files a given directory and customized limits
```
## Examples
### Rear backup status
```
txt
# ./check_rearbackup
CRITICAL: Rear backup /rearshare/rear-backup - 20 total - 0 critical (7 d) .. 2 warnings (14 d) .. 18 OK
All iso files in alphabetic order:
OK 4 d #### -rw-rw-r--. 1 imlrear imlrear 3907082240 Dec 17 10:28 /rearshare/rear-backup/admin/admin.example.com_backup.iso
OK 5 d ##### -rw-rw-r--. 1 imlrear imlrear 573384704 Dec 16 18:07 /rearshare/rear-backup/awx/awx.example.com_backup.iso
(...)
|ok=18;;;0;20 warning=2;;;0;20 critical=0;;;0;20
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment