move configuration files to more logical places

This commit is contained in:
2024-07-14 10:25:26 +02:00
parent d4a3d91b9f
commit 102e1d7a7c
5 changed files with 0 additions and 0 deletions

31
config/sysalert.ini Normal file
View File

@ -0,0 +1,31 @@
[DEFAULT]
# Alert after this many failures
max_failures=0
# Send new alert after this many seconds if service still fails
resend_alert_time=3600
# Send alert on recovery
# can be yes, no or if-alerted
recovery_alert=if-alerted
# python module to use for notifications.
# currently provided modules:
# - sysalert.email
#
# Module should contain success() and failure() methods.
# These methods should take three paramters:
#
# service_name - name of the service
# failures - list of dicts containing data about previous (and current) failures.
# the list is sorted on time with the first failure first and latest failure at the end.
# config - a dict containing any entries in the section from this file named after the alert method.
# i.e 'sysalert.email'-section for 'sysalert.email' alert method.
alert_method=sysalert.email
[sysalert.email]
# defaulting to root@<fqdn> if these are not set
#mail_from=sysalert <root@localhost>
#mail_to=root <root@localhost>
smtp_host=localhost