-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.config.yaml
57 lines (54 loc) · 1.51 KB
/
sample.config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# The name of the server to identify from where
# the messages are coming if running
# on mutliple servers
server: SERVER NAME
# Telegram API Token
api_token: 'TOKEN'
# Telegram chat id
chat_id: -1
# Configuration for the different modules
modules:
# Authentication Module
# Will check if there is a new entry in the /var/log/auth.log
# and will notify you if there is
- name: auth_module.AuthModule
# Filter for the /var/log/auth.log
filter:
- egrep "pam_unix"
- egrep "session opened"
- egrep "sshd|su"
- tail -n 10
# Schedule when the module should be run
# In this example every minute
schedule:
every: 1
minutes: null
# Mail Module
- name: mail_module.MailModule
# Schedule when the module should be run
# In this example every day at 00:00
schedule:
every: 1
at: '00:00'
day: null
# Theresholds when you should be notified about your mails
# Remove if you always want to be notified or set one value to 0
# Only set those that you want to threshold. Remove the rest.
thresholds:
received: 0
delivered: 0
forwarded: 0
deferred: 0
bounced: 0
rejected: 0
rejected_warnings: 0
held: 0
discarded: 0
bytes_received: 0
bytes_delivered: 0
senders: 0
sending_hosts_domains: 0
recipents: 0
recipient_hosts_domains: 0
# The pflogsumm command that should be run to get the mail log
pflogsumm_command: /usr/local/bin/pflogsumm -d yesterday