From 7fd687ba60f764c53bec53c4c279cd821945c040 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 21 Oct 2020 23:04:26 +0200 Subject: [PATCH] added system check (draft) --- monitoring/system.sh | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 monitoring/system.sh diff --git a/monitoring/system.sh b/monitoring/system.sh new file mode 100644 index 0000000..0bc69bb --- /dev/null +++ b/monitoring/system.sh @@ -0,0 +1,45 @@ +#!/bin/sh + + +# file: system.sh +# version: 0.1 +# author: david@socialnerds.org +# +# description: this script checks for local system health and +# fires if values exeed a certain threshold +# +# changelog: [11/22/2020] - file created + + +# **** configuration **** + +CHECKS="load memory disk_usage" + + +# **** functions **** + +load() { + local THRESHOLD=$1 +} + +memory() { + pass +} + +disk_usage() { + pass +} + + +# **** loop through checks +for CHECK in $CHECKS; do + pass +done + + +# ping on success +# ping ../fail on failure +# provide payload (log output/error message) + + +exit 0