diff --git a/check_apache_requests b/check_apache_requests index 335ee6f390b356301419758e9abd848c1e466ae6..af9f8d17419422fb67e8867db576eeb059693371 100755 --- a/check_apache_requests +++ b/check_apache_requests @@ -16,7 +16,7 @@ # ====================================================================== . $(dirname $0)/inc_pluginfunctions -self_APPVERSION=1.6 +export self_APPVERSION=1.6 # url=`hostname -f`/server-status url=localhost/server-status diff --git a/check_ceph_diskfree b/check_ceph_diskfree index 9d0459c12316d3d8d8455b15cf86753da1deed21..ce3f84787a245a701a40cda0c4e65b7d2e296a81 100755 --- a/check_ceph_diskfree +++ b/check_ceph_diskfree @@ -25,10 +25,11 @@ . $(dirname $0)/inc_pluginfunctions +export self_APPVERSION=1.5 + typeset -i iWarning=0 typeset -i iCritical=0 -self_APPVERSION=1.5 function showHelp(){ local _self; _self=$(basename $0) diff --git a/check_ceph_io b/check_ceph_io index dce76176cb5d168534ab35bd9e2a7a811aa82b72..36d5a074a1350816054576e92b763ccb93598a7a 100755 --- a/check_ceph_io +++ b/check_ceph_io @@ -23,7 +23,7 @@ . $(dirname $0)/inc_pluginfunctions -self_APPVERSION=1.4 +export self_APPVERSION=1.4 function showHelp(){ local _self; _self=$(basename $0) diff --git a/check_ceph_osd b/check_ceph_osd index f2f0a67d0a5b2ee1eb67f09b01074afbdfb53f08..e1224a016d1678b5d7aa4a22066b6a00bdaf76ff 100755 --- a/check_ceph_osd +++ b/check_ceph_osd @@ -31,7 +31,7 @@ . $(dirname $0)/inc_pluginfunctions -self_APPVERSION=1.6 +export self_APPVERSION=1.6 # column number in output where to find the up/ down info iColUpDown=5 diff --git a/check_ceph_status b/check_ceph_status index 2a2959fe949ff811b7b9bd3644b64db8da2ff6b7..61fc8a53faf7f39e2baf248d79a1d05d15d9b6d0 100755 --- a/check_ceph_status +++ b/check_ceph_status @@ -25,9 +25,9 @@ . $(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 doLoop=1 diff --git a/check_clientbackup b/check_clientbackup index be1f56d93c96f01b93e1be446217f131d2f9f4a1..26da48c6c0c5d48b38b3a0d12b2adb00962a710e 100755 --- a/check_clientbackup +++ b/check_clientbackup @@ -22,7 +22,7 @@ . $( dirname $0 )/inc_pluginfunctions -self_APPVERSION=1.12 +export self_APPVERSION=1.12 sInstalldir=/opt/imlbackup/client/ diff --git a/check_conn b/check_conn index 1d06e5af7486efc9aeffc0114b5f209aad23cb66..78487982df2cfb20ad1556be516ed182b429e967 100755 --- a/check_conn +++ b/check_conn @@ -8,10 +8,13 @@ # # ---------------------------------------------------------------------- # 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 @@ -31,19 +34,12 @@ function getChecks(){ function showHelp(){ -cat <<EOF -______________________________________________________________________ - -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 -______________________________________________________________________ - + local _self; _self=$(basename $0) + cat <<EOF +$( ph.showImlHelpHeader ) SYNTAX: -`basename $0` OPTIONS +$_self OPTIONS You can create a file named $cfgfile and add your connections there. @@ -64,12 +60,12 @@ PARAMETERS: udp/host/port 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 -`basename $0` -t "tcp/api.example.com/443 tcp/localhost/3306" +$_self -t "tcp/api.example.com/443 tcp/localhost/3306" Check multiple connections. EOF diff --git a/check_cpu b/check_cpu index 034bb719ee5bf30579d4b154d3adaf628856d72d..1c03b9aed94a85599dafdc201f9e4d1a3ea4effc 100755 --- a/check_cpu +++ b/check_cpu @@ -28,7 +28,7 @@ . $(dirname $0)/inc_pluginfunctions -self_APPVERSION=1.14 +export self_APPVERSION=1.14 # ---------------------------------------------------------------------- # functions diff --git a/check_cronstatus b/check_cronstatus index 0fd56b5a34e557f184c8ca62dcf092a99a3b4e8d..1d1a7516e6189a27232aba3ba14fc1a058c0df7a 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -29,7 +29,8 @@ . $( dirname $0 )/inc_pluginfunctions -self_APPVERSION=2.1 +export self_APPVERSION=2.1 + statusScript=/opt/cronwrapper/cronstatus.sh # ---------------------------------------------------------------------- diff --git a/check_disk-io b/check_disk-io index 8b8feceb4ec76dd6f70b77a70ba20016c8e8320f..82d57d797883e03cfb96c37498022b21fc481380 100755 --- a/check_disk-io +++ b/check_disk-io @@ -19,7 +19,7 @@ . $( dirname $0 )/inc_pluginfunctions -self_APPVERSION=1.1 +export self_APPVERSION=1.1 # ---------------------------------------------------------------------- # FUNCTIONS diff --git a/check_dns_responsetime b/check_dns_responsetime index d468953c4c4cbb5075cadb3f6656fd66bf39449e..0b73b9d94ceed525aafaf4dba8b03d2133126e4a 100755 --- a/check_dns_responsetime +++ b/check_dns_responsetime @@ -17,7 +17,7 @@ . $( dirname $0 )/inc_pluginfunctions -self_APPVERSION=1.3 +exort self_APPVERSION=1.3 tmpfile=/tmp/check_netstat_out_$$ infofile=/tmp/check_netstat_out_2_$$ diff --git a/check_eol b/check_eol index c471ed5dd003f1fd41c711ca03c5392ccd2135bd..391a5335dab8fa24adef5be166b6a2aa67741968 100755 --- a/check_eol +++ b/check_eol @@ -55,7 +55,7 @@ . "$( dirname $0 )/inc_pluginfunctions" eolcfg="${0}-data/*.cfg" -self_APPVERSION=1.7 +export self_APPVERSION=1.7 # --- limits typeset -i iDaysWarn=365 diff --git a/check_fs_errors b/check_fs_errors index 96385539d79426c6ca9378985a360a82c9c4793e..5f321335bb96670eea1206ee2283cc557fbac071 100755 --- a/check_fs_errors +++ b/check_fs_errors @@ -16,7 +16,7 @@ . $( dirname $0 )/inc_pluginfunctions -self_APPVERSION=1.2 +export self_APPVERSION=1.2 # ---------------------------------------------------------------------- diff --git a/check_fs_writable b/check_fs_writable index a5578f60ed81200c8defc428974fd8af4f0a66d3..e6c354324a46f22ca1baf815df520722e7873999 100755 --- a/check_fs_writable +++ b/check_fs_writable @@ -8,13 +8,13 @@ # # ---------------------------------------------------------------------- # 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 -self_APPVERSION=1.2 +export self_APPVERSION=1.1 dirs2test="/tmp /var/tmp" out=""