-
Notifications
You must be signed in to change notification settings - Fork 72
Global Configuration
Mike Perham edited this page Jan 8, 2020
·
12 revisions
Global configuration resides in /etc/inspeqtor/inspeqtor.conf
.
An alert route tells Inspeqtor how to alert you. The generic syntax looks like this:
send alerts via $CHANNEL with $KEY $VALUE, $KEY $VALUE
- 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 email configuration
NB: Values with double quotes or commas in them should be quoted: with password "12jk1!,@#2\"123"
send alerts via gmail with
username [email protected], password foobarBaz, to_email [email protected]
send alerts via email with
username bubba, password "correct horse battery staple", smtp_server smtp.example.com, to_email [email protected], tls_port 587
Set tls_port
if your mail server uses a non-standard TLS port.
You can also use plain SMTP on port 25 without authentication:
send alerts via email with
smtp_server localhost, to_email [email protected]
Use set $KEY $VALUE
to twiddle various knobs that Inspeqtor exposes.
# a deploy will timeout after this many seconds
set deploy_length 300
# rules will be checked every 15 seconds
set cycle_time 15
# controls the log verbosity
set log_level info
Inspeqtor logs to STDOUT only. The output location is distro-dependent; on Ubuntu it is /var/log/upstart/inspeqtor.log
. On CentOS 7, inspeqtor logging goes to /var/log/messages
.
Next: INQ Configuration