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

fs_errors: shell fixes; update help page

parent 0ea1c747
No related branches found
No related tags found
1 merge request!127Update icinga checks and docs
...@@ -10,10 +10,14 @@ ...@@ -10,10 +10,14 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2021-03-23 v1.0 <axel.hahn@iml.unibe.ch> # 2021-03-23 v1.0 <axel.hahn@iml.unibe.ch>
# 2021-03-30 v1.1 <axel.hahn@iml.unibe.ch> max age of detected errors: since yesterday (commented) # 2021-03-30 v1.1 <axel.hahn@iml.unibe.ch> max age of detected errors: since yesterday (commented)
# 2023-07-27 v1.2 <axel.hahn@iml.unibe.ch> shell fixes; update help page
# ====================================================================== # ======================================================================
. `dirname $0`/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] )
self_APPVERSION=1.2
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -21,18 +25,22 @@ ...@@ -21,18 +25,22 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
_self=$(basename $0)
cat <<EOF cat <<EOF
______________________________________________________________________ ______________________________________________________________________
CHECK_FS_ERRORS check if kernel logs inconsistency messages $self_APPNAME
v$self_APPVERSION
(c) Institute for Medical Education - University of Bern (c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3 Licence: GNU GPL 3
______________________________________________________________________ ______________________________________________________________________
Check if kernel logs inconsistency messages in the journallog.
It requires sudo permission on /bin/journalctl
SYNTAX: SYNTAX:
`basename $0` [-h] $_self [-h]
OPTIONS: OPTIONS:
...@@ -43,7 +51,7 @@ PARAMETERS: ...@@ -43,7 +51,7 @@ PARAMETERS:
none none
EXAMPLE: EXAMPLE:
`basename $0` $_self
EOF EOF
} }
...@@ -76,7 +84,7 @@ test ! -z "$out" && ph.setStatus "critical" ...@@ -76,7 +84,7 @@ test ! -z "$out" && ph.setStatus "critical"
# ----- OUTPUT # ----- OUTPUT
ph.status "check if kernel logs inconsistency messages" ph.status "check if kernel logs inconsistency messages"
echo $out echo "$out"
# ----- CLEANUP AND BYE! # ----- CLEANUP AND BYE!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment