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
67c18bcb
Commit
67c18bcb
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
client_backup: show db infos for couchdb2 too
parent
df4b4656
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_clientbackup
+2
-1
2 additions, 1 deletion
check_clientbackup
with
2 additions
and
1 deletion
check_clientbackup
+
2
−
1
View file @
67c18bcb
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs
# 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs
# 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer
# 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer
# 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases
# 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too
# ======================================================================
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
.
$(
dirname
$0
)
/inc_pluginfunctions
...
@@ -43,7 +44,7 @@ echo
...
@@ -43,7 +44,7 @@ echo
# show lines __DB__ of backed up databases and skip al database types
# show lines __DB__ of backed up databases and skip al database types
# that do not have a line "__DB__[type] backup"
# that do not have a line "__DB__[type] backup"
for
dbtype
in
$(
echo
"
$result
"
|
grep
-o
'__DB__[a-z]*'
|
sort
-u
)
for
dbtype
in
$(
echo
"
$result
"
|
grep
-o
'__DB__[a-z]
[a-z0-9]
*'
|
sort
-u
)
do
do
echo
"
$result
"
|
grep
"
$dbtype
\
backup"
>
/dev/null
\
echo
"
$result
"
|
grep
"
$dbtype
\
backup"
>
/dev/null
\
&&
echo
---
local
dumps
"
${
dbtype
//__DB__/
}
"
\
&&
echo
---
local
dumps
"
${
dbtype
//__DB__/
}
"
\
...
...
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