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
!12
haproxy health - fix wget
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
haproxy health - fix wget
add-wget-timeout
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
add-wget-timeout
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5dab8c3d
1 commit,
3 years ago
1 file
+
2
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_haproxy_health
+
2
−
2
View file @ 5dab8c3d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -55,13 +55,13 @@ safeurl=$( echo $url | sed "s#\(://\)\(.*@\)#\1#g" )
@@ -55,13 +55,13 @@ safeurl=$( echo $url | sed "s#\(://\)\(.*@\)#\1#g" )
wget
$paramsWget
-O
$tmpfile
$url
2>/dev/null
wget
$paramsWget
-O
$tmpfile
$url
2>/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
rm
-f
$tmpfile
rm
-f
$tmpfile
ph.abort
"UNKNOWN: url
$safeurl
did not respond.
$(
wget
wget
$paramsWget
-O
-
-S
$url
)
"
ph.abort
"UNKNOWN: url
$safeurl
did not respond.
$(
wget
$paramsWget
-O
-
-S
$url
)
"
fi
fi
grep
"200 OK"
$tmpfile
>
/dev/null
grep
"200 OK"
$tmpfile
>
/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
ph.setStatus
"error"
ph.setStatus
"error"
ph.status
"url
$safeurl
did not contain 200 OK.
$(
wget
wget
$paramsWget
-O
-
-S
$url
)
"
ph.status
"url
$safeurl
did not contain 200 OK.
$(
wget
$paramsWget
-O
-
-S
$url
)
"
else
else
ph.status
"HA Proxy
$safeurl
is up and running."
ph.status
"HA Proxy
$safeurl
is up and running."
fi
fi
Loading