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
!194
update sudo handling in ceph checks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update sudo handling in ceph checks
6723-sudo
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
update sudo handling in ceph checks
Hahn Axel (hahn)
requested to merge
6723-sudo
into
master
Oct 20, 2023
Overview
0
Commits
1
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
234af166
Show latest version
2 files
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
234af166
update sudo handling in ceph checks
· 234af166
Hahn Axel (hahn)
authored
Oct 20, 2023
check_ceph_osd
+
4
−
2
View file @ 234af166
Edit in single-file editor
Open in Web IDE
Show full file
@@ -88,9 +88,11 @@ case "$1" in
*
)
esac
# --- check required tools
ph.require ceph
if
!
data
=
$(
sudo
-n
/bin/ceph osd tree 2>&1
)
;
then
echo
"
$data
"
ph.abort
"UNKNOWN: ceph is not available or no sudo permissions to execute ceph commands."
ph.abort
"UNKNOWN: No sudo permissions to execute ceph commands."
fi
# set default / override from command line params
Loading