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
Merge requests
!102
add sudo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add sudo
6435-check-onehost
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
6435-check-onehost
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
595eb8f3
1 commit,
2 years ago
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_onehost
+
1
−
1
Options
@@ -71,7 +71,7 @@ typeset -i iCriticalLimit=$( ph.getValueWithParam 2 c "$@")
@@ -71,7 +71,7 @@ typeset -i iCriticalLimit=$( ph.getValueWithParam 2 c "$@")
# --- get data
# --- get data
cmdout
=
$(
onehost
list
--csv
2>&1
)
cmdout
=
$(
sudo
onehost list
--csv
2>&1
)
if
!
grep
"ID,NAME"
<<<
"
$cmdout
"
>
/dev/null
;
then
if
!
grep
"ID,NAME"
<<<
"
$cmdout
"
>
/dev/null
;
then
ph.setStatus
"unknown"
ph.setStatus
"unknown"
Loading