|
|
example-simple.lisp - reed-alert - Lightweight agentless alerting system for server |
|
|
 |
git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/ (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
example-simple.lisp (889B) |
|
|
|
--- |
|
|
|
1 (alert mail "echo -n '[%state%] Problem with %function% %date% %params%' | mail -s '[%state%] alarm' mail@isp.net") |
|
|
|
2 (alert sms "/home/user/sms.sh '%date% %state% %function% %params% %hostname%") |
|
|
|
3 (alert available-variables "REMINDER : %function% %params% %date% %hostname% %desc% %level% %os% %newline% %result% %state%") |
|
|
|
4 (alert empty "") |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 ;; this is a comment |
|
|
|
8 ; this is also a comment |
|
|
|
9 (=> mail file-updated :path "/tmp/reed-alert" :limit 100) |
|
|
|
10 (=> mail disk-usage :path "/" :limit 90) |
|
|
|
11 |
|
|
|
12 (=> mail service :name "dovecot") |
|
|
|
13 (=> mail service :name "httpd") |
|
|
|
14 (=> sms service :name "smtpd") |
|
|
|
15 (=> mail number-of-processes :limit 100) |
|
|
|
16 |
|
|
|
17 (=> mail ping :host "bitreich.org" :desc "Ping Bitreich") |
|
|
|
18 (=> mail ping :host "openbsd.org" :desc "Ping OpenBSD.org") |
|
|
|
19 (=> mail ssl-expiration :host "freenode.net" :seconds (* 7 24 60 60) :desc "SSL IRC Freenode") |
|
|
|
20 (=> mail write-to-file :path "/tmp/reed-alert") |
|