-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcpthook_example.yml
More file actions
72 lines (63 loc) · 2.09 KB
/
cpthook_example.yml
File metadata and controls
72 lines (63 loc) · 2.09 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
http:
listen: ":8086"
logging:
# Available values are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, PANIC
level: "INFO"
irc:
host: "irc.hackint.org"
port: 6697
# When enabled, CptHook will use NOTICE instead of PRIVMSG to post messages
use_notice: false
ssl:
enabled: true
# You actually only have to set this when your irc server uses a self-signed certificate
cafile: "/etc/ssl/certs/ca-certificates.crt"
client_cert:
certfile: "/home/bot/bot.cert"
keyfile: "/home/bot/bot.key"
nickname: "webhook-bot"
auth:
method: SASL-Plain
username: "webhook-bot"
password: "VerySecure!"
modules:
# The name of the entry is arbitrary and can be choosen by you
my-prom-endpoint:
# Required: The URL path where this module will listen
endpoint: "/prom"
# Required: The type of module you wan't to use. Check the README for available options
type: "prometheus"
# Rest of the options are module specific and are documented in the README
channel: "#prometheusChannel"
hostname_filter: "(\\w*)\\.company.com:\\d{4}"
gitlab:
endpoint: "/gitlab"
type: "gitlab"
default_channel: "#defaultChannel"
commit_limit: 3
groups:
"myGitlabGroup":
- "#groupChannel"
explicit:
"myGitlabGroup/mySpecialGitlabProject":
- "#specificChannel"
simple:
endpoint: "/simple"
type: "simple"
default_channel: "#defaultChannel"
another-simple:
# By giving them different URL endpoints, you can load a module twice
# to route webhooks to different irc channels
endpoint: "/simple2"
type: "simple"
default_channel: "#defaultChannel"
icinga2:
endpoint: "/betterthannagios"
type: "icinga"
default_channel: "#monitoring"
hostgroups:
"webservers":
- "#monitoring-web"
explicit:
"host.example.tld":
- "#monitoring-example"