Skip to content
Snippets Groups Projects
Commit e63f4fb8 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add export keyword for version

parent 92065336
No related branches found
No related tags found
1 merge request!1286468 docs and harmonize
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# ====================================================================== # ======================================================================
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
self_APPVERSION=1.6 export self_APPVERSION=1.6
# url=`hostname -f`/server-status # url=`hostname -f`/server-status
url=localhost/server-status url=localhost/server-status
......
...@@ -25,10 +25,11 @@ ...@@ -25,10 +25,11 @@
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
export self_APPVERSION=1.5
typeset -i iWarning=0 typeset -i iWarning=0
typeset -i iCritical=0 typeset -i iCritical=0
self_APPVERSION=1.5
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self=$(basename $0)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
self_APPVERSION=1.4 export self_APPVERSION=1.4
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self=$(basename $0)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
self_APPVERSION=1.6 export self_APPVERSION=1.6
# column number in output where to find the up/ down info # column number in output where to find the up/ down info
iColUpDown=5 iColUpDown=5
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
initfile="/tmp/ceph-status-not-ok-start-$USER" export self_APPVERSION=1.6
self_APPVERSION=1.6 initfile="/tmp/ceph-status-not-ok-start-$USER"
iSleep=3 iSleep=3
doLoop=1 doLoop=1
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=1.12 export self_APPVERSION=1.12
sInstalldir=/opt/imlbackup/client/ sInstalldir=/opt/imlbackup/client/
......
...@@ -8,10 +8,13 @@ ...@@ -8,10 +8,13 @@
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2021-11-05 v0.0 <axel.hahn@iml.unibe.ch> # 2021-11-05 v0.0 <axel.hahn@iml.unibe.ch>
# 2023-07-27 v1.1 <axel.hahn@unibe.ch> update help page
# ====================================================================== # ======================================================================
. `dirname $0`/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
export self_APPVERSION=1.1
cfgfile=$( dirname $0 )/$( basename $0 ).cfg cfgfile=$( dirname $0 )/$( basename $0 ).cfg
...@@ -31,19 +34,12 @@ function getChecks(){ ...@@ -31,19 +34,12 @@ function getChecks(){
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0)
cat <<EOF cat <<EOF
______________________________________________________________________ $( ph.showImlHelpHeader )
CHECK_CONN check if is a host available on a given port via tcp or udp
from local machine $( hostname -f ).
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
______________________________________________________________________
SYNTAX: SYNTAX:
`basename $0` OPTIONS $_self OPTIONS
You can create a file named $cfgfile You can create a file named $cfgfile
and add your connections there. and add your connections there.
...@@ -64,12 +60,12 @@ PARAMETERS: ...@@ -64,12 +60,12 @@ PARAMETERS:
udp/host/port udp/host/port
EXAMPLES: EXAMPLES:
`basename $0` If no param is given it checks entries in $cfgfile $_self If no param is given it checks entries in $cfgfile
`basename $0` -t "tcp/api.example.com/443" $_self -t "tcp/api.example.com/443"
Check a single connection Check a single connection
`basename $0` -t "tcp/api.example.com/443 tcp/localhost/3306" $_self -t "tcp/api.example.com/443 tcp/localhost/3306"
Check multiple connections. Check multiple connections.
EOF EOF
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
. $(dirname $0)/inc_pluginfunctions . $(dirname $0)/inc_pluginfunctions
self_APPVERSION=1.14 export self_APPVERSION=1.14
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# functions # functions
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=2.1 export self_APPVERSION=2.1
statusScript=/opt/cronwrapper/cronstatus.sh statusScript=/opt/cronwrapper/cronstatus.sh
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=1.1 export self_APPVERSION=1.1
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# FUNCTIONS # FUNCTIONS
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=1.3 exort self_APPVERSION=1.3
tmpfile=/tmp/check_netstat_out_$$ tmpfile=/tmp/check_netstat_out_$$
infofile=/tmp/check_netstat_out_2_$$ infofile=/tmp/check_netstat_out_2_$$
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
. "$( dirname $0 )/inc_pluginfunctions" . "$( dirname $0 )/inc_pluginfunctions"
eolcfg="${0}-data/*.cfg" eolcfg="${0}-data/*.cfg"
self_APPVERSION=1.7 export self_APPVERSION=1.7
# --- limits # --- limits
typeset -i iDaysWarn=365 typeset -i iDaysWarn=365
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=1.2 export self_APPVERSION=1.2
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2021-03-23 v0.0 <axel.hahn@iml.unibe.ch> # 2021-03-23 v0.0 <axel.hahn@iml.unibe.ch>
# 2023-07-27 v1.2 <axel.hahn@unibe.ch> shell fixes; update help page # 2023-07-27 v1.1 <axel.hahn@unibe.ch> shell fixes; update help page
# ====================================================================== # ======================================================================
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPVERSION=1.2 export self_APPVERSION=1.1
dirs2test="/tmp /var/tmp" dirs2test="/tmp /var/tmp"
out="" out=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment