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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!222
add docs for iml backup server check
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
add docs for iml backup server check
6907_backup_server
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
add docs for iml backup server check
Hahn Axel (hahn)
requested to merge
6907_backup_server
into
master
Dec 21, 2023
Overview
0
Commits
2
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
6e707d0d
Prev
Next
Show latest version
1 file
+
81
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6e707d0d
add iml backup server check
· 6e707d0d
Hahn Axel (hahn)
authored
Dec 21, 2023
docs/20_Checks/check_iml_backup_server.md
0 → 100644
+
81
−
0
View file @ 6e707d0d
Edit in single-file editor
Open in Web IDE
# Check IML backup server
## Introduction
This check is for IML Backup server.
This check executes the script 'storage_helper.sh' to get thebackup status.
see https://os-docs.iml.unibe.ch/iml-backup-server/
## Requirements
There can be a permission issue to reach the storage-helper script or while reading the backup target dirs.
On our servers the backup target is using a user
*imlbackup*
. To give access to its resources we added the group "imlbackup" for icinga
```
txt
$ id icingaclient
uid=1041(icingaclient) gid=1041(icingaclient) groups=1041(icingaclient),1031(imlbackup)
^
|
additional group for icinga client user -----+
```
## Syntax
```
txt
______________________________________________________________________
CHECK_IML_BACKUP_SERVER
v1.0
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_iml_backup_server.html
______________________________________________________________________
Show status of backup server.
You can get the count of connections or the status of server backup.
See https://os-docs.iml.unibe.ch/iml-backup-server/
SYNTAX:
check_iml_backup_server [-d DIRECTORY] -m MODE
OPTIONS:
-h or --help show this help.
-d or --dir set installation dir of iml deployment to find its check skript
default dir: /opt/imlbackup/server
script: /opt/imlbackup/server/storage_helper.sh
-m or --mode mode: set type of result; one of status|backupstatus
backupstatus status of backup sets of all servers
status count of connected servers
EXAMPLE:
check_iml_backup_server -m status
check_iml_backup_server -m backupstatus
```
## Examples
### Backup server status
``check_http -u https://www.example.com/``
is a check that makes an http GET request.
The queck is OK if the responded status code is no error - if it is 2xx (OK) or a redirect (3xx).
```
txt
# ./check_iml_backup_server -m backupstatus
OK: Server Backups - 36 servers in backup - 0 errors - 7 disbled - 0 running
List of server backups grouped by status (non-OK only)
server : start : end : duration : rc : age [h] : size
D oldserver.example.com : 2023-10-17 23:06:29 : 2023-10-17 23:11:05 : 276 : 0 : 1554 : 199G /netshare/restic-backup/oldserver.example.com
(...)
server : start : end : duration : rc : age [h] : size
|notstarted=0;;;0;36 disabled=7;;;0;36 ok=29;;;0;36 running=0;;;0;36 error=0;;;0;36
```
Loading