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
!129
6468-docs-and-harmonize
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
6468-docs-and-harmonize
6468-docs-and-harmonize
into
master
Overview
0
Commits
9
Pipelines
0
Changes
1
Merged
6468-docs-and-harmonize
Hahn Axel (hahn)
requested to merge
6468-docs-and-harmonize
into
master
Jul 28, 2023
Overview
0
Commits
9
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
a9e63918
Prev
Next
Show latest version
1 file
+
41
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
a9e63918
check_haproxy_health - add help page
· a9e63918
Hahn Axel (hahn)
authored
Jul 28, 2023
check_haproxy_health
+
41
−
1
View file @ a9e63918
Edit in single-file editor
Open in Web IDE
Show full file
@@ -12,17 +12,57 @@
# 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
# 2023-07-28 v1.6 <axel.hahn@unibe.ch> add help page
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
export
self_APPVERSION
=
1.6
.
$(
dirname
$0
)
/inc_haproxy_cfg.sh
cfgfile
=
/etc/haproxy/haproxy.cfg
tmpfile
=
/tmp/check_haproxy_healthcheck_
$$
# ----------------------------------------------------------------------
#
pre check
s
#
function
s
# ----------------------------------------------------------------------
function
showHelp
(){
local
_self
;
_self
=
$(
basename
$0
)
cat
<<
EOF
$(
ph.showImlHelpHeader
)
Check HA Proxy health.
The plugin reads
$cfgfile
to detect required status url.
SYNTAX:
$_self
[-h]
OPTIONS:
-h or --help show this help.
EXAMPLE:
$_self
EOF
}
# ----------------------------------------------------------------------
# MAIN
# ----------------------------------------------------------------------
# --- check param -h
case
"
$1
"
in
"--help"
|
"-h"
)
showHelp
exit
0
;;
*
)
esac
ph.require wget
cat
$cfgfile
>
/dev/null
Loading