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
fec858a1
Commit
fec858a1
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
mysqlserver: update help page; fix not found
parent
8b1bffcf
Branches
Branches containing commit
No related tags found
1 merge request
!130
6468 docs and harmonize
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_mysqlserver
+10
-18
10 additions, 18 deletions
check_mysqlserver
with
10 additions
and
18 deletions
check_mysqlserver
+
10
−
18
View file @
fec858a1
...
...
@@ -19,13 +19,12 @@
# 2021-06-08 v0.1 <axel.hahn@iml.unibe.ch> update HOME .. better implement a param and ENV var
# 2021-06-24 v0.2 <axel.hahn@iml.unibe.ch> check if query cache is enabled as a shared function
# 2023-06-06 v0.3 <axel.hahn@unibe.ch> some shell fixes
# 2023-07-28 v1.0 <axel.hahn@unibe.ch> update help page; fix [client]: command not found
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
self_APPNAME
=
$(
basename
$0
|
tr
[
:lower:]
[
:upper:]
)
self_APPVERSION
=
0.3
export
self_APPVERSION
=
1.0
# --- set HOME
HOME
=
/etc/icingaclient
...
...
@@ -100,17 +99,11 @@ EOF
fi
}
# show usage
function
_usage
(){
local
_self
=
$(
basename
$0
)
cat
<<
EOH
______________________________________________________________________
${
self_APPNAME
}
:: v
${
self_APPVERSION
}
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
______________________________________________________________________
# show help text
function
showHelp
(){
local
_self
;
_self
=
$(
basename
$0
)
cat
<<
EOF
$(
ph.showImlHelpHeader
)
USAGE:
$_self
[OPTIONS] -m METHOD
...
...
@@ -133,7 +126,7 @@ EXAMPLES:
$_self
-i
$_self
-m commands
EO
H
EO
F
}
function
_mysqlreadvars
(){
...
...
@@ -206,7 +199,7 @@ bOptUninstall=$( ph.hasParamoption "u" "$@")
bOptHelp
=
$(
ph.hasParamoption
"h"
"
$@
"
)
if
[
$bOptHelp
-eq
1
-o
$#
-lt
1
]
;
then
_usage
showHelp
exit
0
fi
...
...
@@ -245,7 +238,6 @@ fi
if
!
grep
$myuser
$cfgfile
>
/dev/null 2>&1
;
then
ph.abort
"MYSQL access not possible yet. You need to install the monitoring user first: as root execute
$(
basename
$0
)
-i"
fi
.
"
${
cfgfile
}
"
# ----------------------------------------------------------------------
...
...
@@ -328,7 +320,7 @@ case "${sMode}" in
*
)
echo
ERRROR:
[
${
sMode
}
]
is an INVALID mode
_usage
showHelp
ph.abort
esac
...
...
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