-
Notifications
You must be signed in to change notification settings - Fork 72
Global Configuration
mperham edited this page Sep 7, 2014
·
16 revisions
Inspeqtor has two configuration points: /etc/inspeqtor/inspeqtor.conf ("global") and /etc/inspeqtor/conf.d/*.inq ("inq").
Global configuration resides in /etc/inspeqtor/inspeqtor.conf
. There is where you tell Inspeqtor how to route alerts to you or other teams.
An alert route tells Inspeqtor how to contact a team. The generic syntax looks like this:
send alerts [to $TEAMNAME] via $CHANNEL with $KEY $VALUE, $KEY $VALUE
- TEAMNAME - if you don't include
to $TEAMNAME
, it indicates this is the default alert route. - CHANNEL - Inspeqtor supports two channels:
email
andgmail
.gmail
is just an alias for email which automatically fills in Google's SMTP setup for you. - KEY/VALUE - allow you to configure various elements of the channel
NB: Values with double quotes or commas in them should be quoted: with password "12jk1!,@#2\"123"
send alerts to ops
via gmail with username [email protected], password foobarBaz, email [email protected]
send alerts to accounting
via email with username bubba, password "correct horse battery staple", hostname smtp.example.com, email [email protected]
Your SMTP server must accept TLS connections on port 587.
Use set $KEY $VALUE
to twiddle various knobs that Inspeqtor exposes.
set deploy_length 300
set cycle_time 15
set log_level info