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
06d121e7
Commit
06d121e7
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
show message if no sudo permissions on onehost
parent
595eb8f3
Branches
Branches containing commit
No related tags found
1 merge request
!103
show message if no sudo permissions on onehost
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_onehost
+3
-1
3 additions, 1 deletion
check_onehost
with
3 additions
and
1 deletion
check_onehost
+
3
−
1
View file @
06d121e7
...
...
@@ -8,13 +8,14 @@
#
# ----------------------------------------------------------------------
# 2023-06-09 v1.0 <axel.hahn@unibe.ch> initial version
# 2023-06-12 v1.1 <axel.hahn@unibe.ch> show message if no sudo permissions on onehost command exist
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
self_APPNAME
=
$(
basename
$0
|
tr
[
:lower:]
[
:upper:]
)
self_APPVERSION
=
1.
0
self_APPVERSION
=
1.
1
# ----------------------------------------------------------------------
# functions
...
...
@@ -75,6 +76,7 @@ cmdout=$( sudo onehost list --csv 2>&1 )
if
!
grep
"ID,NAME"
<<<
"
$cmdout
"
>
/dev/null
;
then
ph.setStatus
"unknown"
echo
"UNKNOWN: sudo onehost failed."
echo
"
$cmdout
"
ph.exit
fi
...
...
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