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
!44
add a missing file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
add a missing file
5823-grep-regex-with-spaces
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
5823-grep-regex-with-spaces
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
25517df9
1 commit,
2 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_haproxy_health
+
2
−
1
View file @ 25517df9
Edit in single-file editor
Open in Web IDE
Show full file
@@ -11,6 +11,7 @@
# 2020-12-03 v1.2 <axel.hahn@iml.unibe.ch> loop over multiple frontend status urls
# 2021-12-14 v1.3 <axel.hahn@iml.unibe.ch> use updated haproxy paser in sourced file
# 2022-04-01 v1.4 <axel.hahn@iml.unibe.ch> use wget default params; shell fixes
# 2022-10-21 v1.5 <axel.hahn@unibe.ch> remove grep: warning: stray \ before white space
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
@@ -29,7 +30,7 @@ if [ $? -ne 0 ]; then
ph.abort
"UNKNOWN: unable to read ha proxy config
$cfgfile
...
$(
ls
-l
$cfgfile
)
"
fi
cat
$cfgfile
|
grep
"
\
mode
\
.*http"
>
/dev/null
cat
$cfgfile
|
grep
" mode .*http"
>
/dev/null
if
[
$?
-ne
0
]
;
then
ph.abort
"UNKNOWN: haproxy is not in http mode"
fi
Loading