[defaults]
testvalue=1

[test2-fail]
type=fail

[command1]
type=command
command=ls -l /tmp/
result_regexp=total

[command2]
type=command
command=echo 5
result_max=6

[command3-fail]
type=command
command=echo 5
result_max=4

[command4-fail]
type=command
command=moo
result_regexp=hello
recover_command=echo 1

[http]
type=http
url=http://www.google.com

[https]
type=http
url=https://www.google.com

[https-fail]
type=http
url=https://expired.badssl.com

[https-regexp]
type=http
regexp=Google
url=https://www.google.com

[https-404]
type=http
url=https://google.com/404
allowed_codes=404

[https-404-fail]
type=http
url=https://google.com/404
allowed_codes=200,302

[https-noverify]
type=http
url=https://wrong.host.badssl.com
verify_hostname=false

[dns]
type=dns
record=a.test.jamesoff.net

[dns-mx]
type=dns
record=jamesoff.net
record_type=MX

[dns-fail]
type=dns
record=bad.jamesoff.net

# I'm sure this'll come back to bite me
[dns-value]
type=dns
record=a.test.jamesoff.net
desired_val=1.2.3.4

[dns-multivalue]
type=dns
record=a-multi.test.jamesoff.net
desired_val=1.2.3.4
  2.3.4.5

[dns-multivalue-fail]
type=dns
record=a-multi.test.jamesoff.net
desired_val=1.2.3.4
  3.4.5.6

[dns-value-fail]
type=dns
record=a.test.jamesoff.net
desired_val=127.0.0.1

[dns-server]
type=dns
record=a.test.jamesoff.net
server=8.8.8.8

[dns-nxdomain]
type=dns
record=null.test.jamesoff.net
desired_val=nxdomain

[depends]
type=command
command=ls
depend=command1

[depends-skip]
type=command
command=ls
depend=https-fail

[gap]
type=command
command=ls
gap=1

[compound]
type=compound
monitors=command1,command2

[filestat]
type=filestat
filename=simplemonitor/monitor.py

[filestat2]
type=filestat
filename=simplemonitor/monitor.py
minsize=1

[filestat3]
type=filestat
filename=simplemonitor/monitor.py
maxage=525600

[filestat-fail]
type=filestat
filename=missing.txt

[filestat2-fail]
type=filestat
filename=simplemonitor/monitor.py
minsize=10G

[filestat3-fail]
type=filestat
filename=simplemonitor/monitor.py
maxage=1

[filestat4]
type=filestat
filename=simplemonitor/monitor.py
maxsize=10G

[filestat4-fail]
type=filestat
filename=simplemonitor/monitor.py
maxsize=1

[apc]
type=apcupsd
path=./tests/mocks/apcaccess-mock

[apc-fail]
type=apcupsd
path=./tests/mocks/apcaccess-fail-mock

[svc]
type=svc
path=pass

[svc-fail]
type=svc
path=fail

[rc]
type=rc
path=tests/mocks/rc
service=pass

[rc-fail]
type=rc
path=tests/mocks/rc-fail
service=fail

[exim]
type=eximqueue
path=tests/mocks
max_length=1000

[exim-fail]
type=eximqueue
path=tests/mocks
max_length=10

[null]
type=null

[tcp]
type=tcp
host=www.google.com
port=80

[tcp-fail]
type=tcp
host=www.google.com
port=81
group=a

[ping]
type=host
host=127.0.0.1

[ping-fail]
type=host
host=bad.jamesoff.net

[pkg-fail]
type=pkgaudit
path=./tests/mocks/pkg-fail

[pkg-2-fail]
type=pkgaudit
path=./tests/mocks/pkg-fail-2

[pkg]
type=pkgaudit
path=./tests/mocks/pkg

[portaudit]
type=portaudit
path=./tests/mocks/portaudit

[portaudit-fail]
type=portaudit
path=./tests/mocks/portaudit-fail

[loadavg1]
type=loadavg
which=0
max=100

[loadavg5]
type=loadavg
which=1
max=100

[loadavg15]
type=loadavg
which=2
max=100

[loadavg-fail]
type=loadavg
which=0
max=0.01

[not-this-host]
type=null
runon=some-unlikely-hostname

[nc]
type=nc

[compound1-fail]
type=compound
monitors=ping-fail,pkg-fail

[compound2]
type=compound
monitors=ping-fail,ping

[compoud3]
type=compound
monitors=ping,null

[memory]
type=memory
percent_free=0

[memory-fail]
type=memory
percent_free=100

[swap]
type=swap
percent_free=0

# Not testing swap-fail; think the test environment in GH Actions has no swap?

[unix-service]
type=unix_service
service=good_service

[unix-service-fail]
type=unix_service
service=bad_service
state=running

[unix-service-stopped]
type=unix_service
service=bad_service
state=stopped

[unix-service-stopped-fail]
type=unix_service
service=good_service
state=stopped

[process]
type=process
process_name=python3

[process-fail]
type=process
process_name=unlikely-process-name

[process-max-fail]
type=process
process_name=python3
max_count=0

[process-min-fail]
type=process
process_name=python3
# if the test host has more than this many python processes you probably want tests to fail
min_count=60000

[process-username-fail]
type=process
process_name=python3
username=unlikely-username

[tls-expiry]
type=tls_expiry
host=www.amazon.com

[tls-expiry-fail]
type=tls_expiry
host=expired.badssl.com
