-
Notifications
You must be signed in to change notification settings - Fork 4
/
oncall.conf
133 lines (96 loc) · 3.56 KB
/
oncall.conf
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# This is an example config file for Oncall
[server]
# Listen to ip range
# setting to 0.0.0.0 will allow connections from all IPs
# if you want specify an IP for security reasons you can here
# Or you can specify a subnet (ie 192.168.18.0)
listen_ip=0.0.0.0
# port number to listen for api calls
port=8008
# server address
# used to make http calls
server_address=
# server debug mode
# this enables/disable debug mode on incoming server requests like text messages, voice
# calls and alerts from monitoring hosts
server_debug=True
# security password
# this password is sent to the server each time an alert is sent. This is added security
# of a basic from of authentication of incoming alerts
# if you don't want a security password, comment out the attribute
# security_passwd=hskCie8Y
#security_passwd=shakv99s
# log level
# choices are, INFO, WARNING, ERROR, CRITICAL, DEBUG
# not currently functioning, using DEBUG
loglevel=DEBUG
# the log directory to write log files
logdir=/var/log/oncall/
[api]
# Listen to ip range
# setting to 0.0.0.0 will allow connections from all IPs
# if you want specify an IP for security reasons you can here
# Or you can specify a subnet (ie 192.168.18.0)
api_listen_ip=0.0.0.0
# port number to listen for api calls
api_port=8009
# server address
# used to make http calls
server_address=
[twilio]
# write all twilio vars as a python diction as shown in the examples below
# Each one requires a "default" attribute. If the team name of an individual isn't available, it
# to default
# Having multiple accounts allows you can applied twilio expenses to different departments if desired
# your account number(s)
#twilio_acct={'syseng':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'devops':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'default':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}
# your twilio token id(s)
#twilio_token={'syseng':'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'default':'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}
# your twilio number(s)
#twilio_number={'syseng':'+15556661234', 'default':'+15556669876'}
# your twilio pin (optional)
#twilio_pin={'syseng':'xxxx-xxxx', 'default':'xxxx-xxxx'}
[alerting]
# how often you want to send an alert in seconds
# smallest value would be 5 seconds
alert_interval=300
# the number of alerts to escalate it to next level of people
# comment out if you do not want to escalate or set to 0
alert_escalation=3
# the number of SMS alerts sent to a specific user before Oncall starts to call them.
# for an example, if set to 3, will text twice, and then call every alert after
# comment out if you never want to call people
# if set to 0, will never SMS, only call people
call_failover=2
# call timeout
# this is the amount of seconds that phone call times out while waiting for user input
call_timeout=30
# the number of alerts to send before sending an email to everyone on the team
# comment out if you never want to alert the team
# set to 0 if you want to always sent a team alert (via email)
team_failover=6
# alert freshness is the amount of time (in seconds) to consider an alert fresh
# New alerts are compared to the current "fresh" alerts to deem an alert as new
# alert or a duplicate of an alert that has already been received
alert_freshness=900
[mysql]
# the mysql host address
mysql_host=localhost
# the mysql port
mysql_port=3306
# mysql user name
mysql_username=root
# mysql password
# if you have no password leave blank
#mysql_passwd=
# database name
mysql_db=oncall
[email]
# the smtp address
email_server=smtp.gmail.com
# the email port
email_port=587
# the email address (username)
email_username=
# the email password
email_passwd=