From 5de27def82a160ff357cbd61d0a90b9ac18b0713 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 30 May 2024 10:36:34 +0200 Subject: [PATCH] OP#7246 Icinga-Check - Hilfe mit 404 https://projects.iml.unibe.ch/work_packages/7246 --- inc_pluginfunctions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc_pluginfunctions b/inc_pluginfunctions index c7a7dcf..f8e1c43 100644 --- a/inc_pluginfunctions +++ b/inc_pluginfunctions @@ -41,6 +41,7 @@ # 2023-08-30 v1.13 <axel.hahn@unibe.ch> reverse return code in ph.hasParamoption to unix like return codes: 0=true; <>0 = false # 2023-09-05 v1.14 <axel.hahn@unibe.ch> ph.require - show error below status line # 2023-09-14 v1.15 <axel.hahn@unibe.ch> add ph.showtimer; fix broken pipe messages in journallog +# 2024-05-30 v1.16 <axel.hahn@unibe.ch> updatate link to online help (Daux replaces "-"" to "_") # ====================================================================== @@ -568,7 +569,11 @@ function ph.execIfReady(){ # ---------------------------------------------------------------------- # show a header in the help for IML checks +# including a link to the online help ph.showImlHelpHeader(){ + local _html; + _html=$(basename $0) + _html=${_self//\-/_}.html cat <<EOF ______________________________________________________________________ @@ -578,7 +583,7 @@ v$self_APPVERSION (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 -https://os-docs.iml.unibe.ch/icinga-checks/Checks/$( basename $0 ).html +https://os-docs.iml.unibe.ch/icinga-checks/Checks/${_html} ______________________________________________________________________ EOF } -- GitLab