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
!252
update grep for backup via restic rest
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update grep for backup via restic rest
docker-checks
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
docker-checks
into
master
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
4da72b7c
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4da72b7c
pdate grep for backup via restic rest
· 4da72b7c
Hahn Axel (hahn)
authored
1 year ago
check_iml_backup_server
+
4
−
2
View file @ 4da72b7c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -11,11 +11,12 @@
# 2023-12-20 v0.2 <axel.hahn@iml.unibe.ch>
# 2023-12-21 v1.0 <axel.hahn@iml.unibe.ch> first version
# 2023-12-21 v1.1 <axel.hahn@iml.unibe.ch> Update help text
# 2024-03-22 v1.2 <axel.hahn@iml.unibe.ch> Update grep for backup via restic rest
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
export
self_APPVERSION
=
1.
1
export
self_APPVERSION
=
1.
2
sInstalldir
=
/opt/imlbackup/server
sScript
=
storage_helper.sh
@@ -69,7 +70,8 @@ EOF
function
_getServerOfStatus
(){
local
_key
=
"
$1
"
local
_data
=
"
$2
"
grep
"
$_key
.*| [0-9].* |"
<<<
"
$_data
"
# grep "$_key .*| [0-9].* |" <<< "$_data"
grep
"
$_key
.*/"
<<<
"
$_data
"
}
# get count of servers with a given status
Loading