From 1272d4e7e3afe30ce2fc74eb3a2ca36e3bf046d2 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 1 Aug 2020 00:19:28 +0000 Subject: [PATCH] Move monitoring info from notes to docs --- docs/README.md | 3 +++ docs/monit.md | 36 ++++++++++++++++++++++++++++++++++++ notes.txt | 36 ------------------------------------ 3 files changed, 39 insertions(+), 36 deletions(-) create mode 100644 docs/monit.md diff --git a/docs/README.md b/docs/README.md index bd130be..ae66cb4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,6 +2,8 @@ This folder contains a bunch of general information on how to get the base of a PiFrame deployed. +Items marked ```REQUIRED``` are assumed to be setup and working. You've been warned. + * [Base Firmware (REQUIRED)](base.md) * [Finalize Arch Setup](finalize_setup.md) * [Setup swap (REQUIRED)](swap.md) @@ -16,3 +18,4 @@ This folder contains a bunch of general information on how to get the base of a * [Backups via restic](restic.md) * [Additional Networking Setup (REQUIRED)](cockpit.md) * [Web Dashboard / Landing Page](landing_page.md) +* [System Monitoring (REQUIRED)](monit.md) diff --git a/docs/monit.md b/docs/monit.md new file mode 100644 index 0000000..985256b --- /dev/null +++ b/docs/monit.md @@ -0,0 +1,36 @@ +# System Monitoring + +The below commands will setup ```monit``` to track key elements of the PiFrame hardware and software. ```monit``` is a very light weight monitoring solution and is used to ensure key parts of the system are in a reasonable state and working. + +``` sh + +pacman -S monit +mkdir /etc/monit.d +nano -w /etc/monitrc + include /etc/monit.d/* + set httpd port 2812 and + use address 0.0.0.0 + allow admin:monit + set mailserver domain.tld port 587 + username "piframe@domain.tld" password "apassword" + using tls +cat > /etc/monit.d/rootfs < 80% then alert +EOF +cat > /etc/monit.d/tankfs < 80% then alert +EOF +cat > /etc/monit.d/feh < /etc/monit.d/rootfs < 80% then alert -EOF -cat > /etc/monit.d/tankfs < 80% then alert -EOF -cat > /etc/monit.d/feh <