add a real world example - reed-alert - Lightweight agentless alerting system for server HTML git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit fed9c9d46da253a5cd756d36ee7378b818b1559e DIR parent 77bc642fea3afdcdd72d9541f48eea218aedb022 HTML Author: Solene Rapenne <solene@perso.pw> Date: Fri, 3 Nov 2017 18:29:43 +0000 add a real world example Diffstat: M config.lisp.sample | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --- DIR diff --git a/config.lisp.sample b/config.lisp.sample @@ -1,6 +1,8 @@ (defvar *alerts* (list - '(dont-use-it ("REMINDER" function params date hostname desc level os newline _ space result)) + '(mail ("echo -n '" + "Problem with " function _ date _ params"' | mail -s alarm mail@isp.net")) + '(sms ("/home/user/sms.sh '" date _ function _ params _ hostname "'")) + '(available ("REMINDER" function params date hostname desc level os newline _ space result)) '(void nil))) (load "functions.lisp") @@ -8,3 +10,11 @@ ;; this is a comment ; this is also a comment (=> mail disk-usage (:path "/" :limit 90)) + +(=> mail service (:name "dovecot")) +(=> mail service (:name "httpd")) +(=> sms service (:name "smtpd")) +(=> mail number-of-processes (:limit 100)) + +(=> mail ping (:host "bitreich.org" :desc "Ping Bitreich")) +(=> mail ping (:host "openbsd.org" :desc "Ping OpenBSD.org"))