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
e4755a4e
Commit
e4755a4e
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
fs_errors: shell fixes; update help page
parent
0ea1c747
No related branches found
No related tags found
1 merge request
!127
Update icinga checks and docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_fs_errors
+13
-5
13 additions, 5 deletions
check_fs_errors
with
13 additions
and
5 deletions
check_fs_errors
+
13
−
5
View file @
e4755a4e
...
...
@@ -10,10 +10,14 @@
# ----------------------------------------------------------------------
# 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)
# 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 @@
# ----------------------------------------------------------------------
function
showHelp
(){
_self
=
$(
basename
$0
)
cat
<<
EOF
______________________________________________________________________
CHECK_FS_ERRORS check if kernel logs inconsistency messages
$self_APPNAME
v
$self_APPVERSION
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
______________________________________________________________________
Check if kernel logs inconsistency messages in the journallog.
It requires sudo permission on /bin/journalctl
SYNTAX:
`basename
$0
`
[-h]
$_self
[-h]
OPTIONS:
...
...
@@ -43,7 +51,7 @@ PARAMETERS:
none
EXAMPLE:
`basename
$0
`
$_self
EOF
}
...
...
@@ -76,7 +84,7 @@ test ! -z "$out" && ph.setStatus "critical"
# ----- OUTPUT
ph.status
"check if kernel logs inconsistency messages"
echo
$out
echo
"
$out
"
# ----- CLEANUP AND BYE!
...
...
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