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
1d0409a2
Commit
1d0409a2
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
small updates
parent
b5f5d346
Branches
Branches containing commit
No related tags found
1 merge request
!215
6907 backup server
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_backup_one
+8
-9
8 additions, 9 deletions
check_backup_one
with
8 additions
and
9 deletions
check_backup_one
+
8
−
9
View file @
1d0409a2
#!/bin/bash
# ======================================================================
#
#
WORK IN PROGRESS
#
Check IML BACKUP SERVER
#
# Check ONE BACKUP connection count
#
# requirements access to storage_helper.sh
# ls -ld /opt/imlbackup/server/
# drwxr-x--- 3 imlbackup imlbackup 4096 Jul 27 06:25 /opt/imlbackup/server/
# requires access to storage_helper.sh
# in /opt/imlbackup/server/
#
# ----------------------------------------------------------------------
# 2020-07-27 v0.x <axel.hahn@iml.unibe.ch>
...
...
@@ -38,7 +35,7 @@ You can get the count of connections or the status of server backup.
See https://os-docs.iml.unibe.ch/iml-backup-server/
SYNTAX:
$_self
[-d DIRECTORY]
$_self
[-d DIRECTORY]
-m MODE
OPTIONS:
-h or --help show this help.
...
...
@@ -105,11 +102,13 @@ case "$sMode" in
typeset
-i
iDisable
;
iDisable
=
$(
_getStatusCount
"D"
"
$data
"
)
typeset
-i
iRunning
;
iRunning
=
$(
_getStatusCount
"R"
"
$data
"
)
if
[
$iErrors
-gt
0
]
;
then
ph.setStatus critical
fi
ph.status
"Server Backups -
$iTotal
server -
$iErrors
errors -
$iDisable
disbled"
if
[
$iNotStarted
-eq
$iTotal
]
;
then
ph.setStatus unknown
fi
ph.status
"Server Backups -
$iTotal
servers in backup -
$iErrors
errors -
$iDisable
disbled -
$iRunning
running"
echo
List of server backups grouped by status
echo
(
...
...
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