-
Notifications
You must be signed in to change notification settings - Fork 72
Global Configuration
mperham edited this page Sep 8, 2014
·
12 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.
# a deploy will timeout after this many seconds
set deploy_length 300
# the number of seconds between scans
set cycle_time 15
# controls the log verbosity
set log_level info
Inspeqtor logs to syslog. The output location is distro-dependent; on Ubuntu it is /var/log/syslog
.
Next: INQ Configuration