From 8241a167f4991f29895bc0b981d9ce397a168113 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 27 Jul 2023 14:57:50 +0200
Subject: [PATCH] add doc page for fs_errors

---
 docs/20_Checks/_index.md          |  2 ++
 docs/20_Checks/check_fs_errors.md | 58 +++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 docs/20_Checks/check_fs_errors.md

diff --git a/docs/20_Checks/_index.md b/docs/20_Checks/_index.md
index 80d492c..e6dfff4 100644
--- a/docs/20_Checks/_index.md
+++ b/docs/20_Checks/_index.md
@@ -20,6 +20,8 @@ There is one include script used by all checks:
 * [check_disk-io](check_disk-io.md)
 * [check_dns_responsetime](check_dns_responsetime.md)
 * [check_eol](check_eol.md)
+* [check_fs_errors](check_fs_errors.md)
+* check_fs_writable
 * check_haproxy_health
 * check_haproxy_status
 * check_memory
diff --git a/docs/20_Checks/check_fs_errors.md b/docs/20_Checks/check_fs_errors.md
new file mode 100644
index 0000000..75df3e2
--- /dev/null
+++ b/docs/20_Checks/check_fs_errors.md
@@ -0,0 +1,58 @@
+# Check filesystem errors
+
+## Introduction
+
+**check_fs_errors** checks if kernel logs inconsistency messages in the journallog.
+It requires sudo permission on /bin/journalctl
+
+If it would find error messages it switches to critical and shows the found journallog entries.
+
+## Requirements
+
+* sudo permission on /bin/journalctl to scan for the information
+
+```txt
+icingaclient ALL=(ALL) NOPASSWD: /bin/journalctl
+```
+
+## Syntax
+
+```txt
+______________________________________________________________________
+
+CHECK_FS_ERRORS 
+v1.2
+
+(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:
+check_fs_errors [-h]
+
+OPTIONS:
+
+    -h or --help   show this help.
+
+PARAMETERS:
+
+    none
+
+EXAMPLE:
+check_fs_errors
+```
+
+### Parameters
+
+(none)
+
+## Examples
+
+`$ check_fs_errors` returns
+
+```txt
+OK: check if kernel logs inconsistency messages
+```
-- 
GitLab