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
1f56b4cc
Commit
1f56b4cc
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
show restore progress only for misplaed/ degraded objects
parent
fcef6312
Branches
Branches containing commit
No related tags found
1 merge request
!246
7045 update ceph health
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
check_ceph_status
+4
-4
4 additions, 4 deletions
check_ceph_status
docs/20_Checks/check_ceph_status.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/check_ceph_status.md
with
5 additions
and
5 deletions
check_ceph_status
+
4
−
4
View file @
1f56b4cc
...
...
@@ -22,11 +22,12 @@
# 2023-06-19 v1.5 <axel.hahn@unibe.ch> add help and param support; no more tmpfile
# 2023-07-27 v1.6 <axel.hahn@unibe.ch> update help page
# 2023-10-20 v1.7 <axel.hahn@unibe.ch> harden sudo command execution
# 2024-02-29 v1.8 <axel.hahn@unibe.ch> show restore progress only for misplaed/ degraded objects
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
export
self_APPVERSION
=
1.
7
export
self_APPVERSION
=
1.
8
initfile
=
"/tmp/ceph-status-not-ok-start-
$USER
"
...
...
@@ -114,6 +115,7 @@ fi
iLastDeg
=
$iDeg
iLastMis
=
$iMis
typeset
-i
iObjCount
=
$iDeg
+
$iMis
sCephStatus
=
$(
getCephStatus
)
...
...
@@ -130,9 +132,7 @@ fi
ph.status
"Ceph status is
$sCephStatus
"
echo
while
[
!
"
$sCephStatus
"
=
"HEALTH_OK"
]
&&
[
$doLoop
=
1
]
;
do
typeset
-i
iObjCount
=
$iDeg
+
$iMis
while
[
!
"
$sCephStatus
"
=
"HEALTH_OK"
]
&&
[
$iObjCount
-gt
0
]
&&
[
$doLoop
=
1
]
;
do
iTsNow
=
$(
date
+%s
)
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_ceph_status.md
+
1
−
1
View file @
1f56b4cc
...
...
@@ -19,7 +19,7 @@ icingaclient ALL=(ALL) NOPASSWD: /bin/ceph
______________________________________________________________________
CHECK_CEPH_STATUS
v1.
7
v1.
8
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
...
...
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