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
!193
update sudo handling
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update sudo handling
6723-sudo
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Hahn Axel (hahn)
requested to merge
6723-sudo
into
master
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
e14e4b61
Show latest version
3 files
+
16
−
11
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
e14e4b61
update sudo handling
· e14e4b61
Hahn Axel (hahn)
authored
1 year ago
check_ceph_diskfree
+
4
−
3
View file @ e14e4b61
Edit in single-file editor
Open in Web IDE
Show full file
@@ -64,15 +64,16 @@ case "$1" in
@@ -64,15 +64,16 @@ case "$1" in
*
)
*
)
esac
esac
# --- check required tools
ph.require ceph
# set default / override from command line params
# set default / override from command line params
typeset
-i
iWarnLimit
=
$(
ph.getValueWithParam 70 w
"
$@
"
)
typeset
-i
iWarnLimit
=
$(
ph.getValueWithParam 70 w
"
$@
"
)
typeset
-i
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
typeset
-i
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
if
!
data
=
$(
sudo
-n
/bin/ceph
df
2>&1
)
if
!
data
=
$(
sudo
-n
/bin/ceph
df
2>&1
)
then
then
echo
"
$data
"
ph.abort
"UNKNOWN: No sudo permissions to execute ceph commands."
ph.abort
"UNKNOWN: ceph is not available or no sudo permissions to execute ceph commands."
fi
fi
isHeader
=
0
isHeader
=
0
Loading