Tested on OpenBSD 6.5.
[icmpmonitor] / icmpmonitor.ini
CommitLineData
cb654384
AT
1# Sample configuration file for ICMPmonitor.
2
3################################################################################
4
5# Each host entry requires a unique label.
6[Example - localhost]
7
8# Remote host, either an IP address or fully-qualified hostname.
9host = 127.0.0.1
10
11# Ping interval.
12interval = 2
13
14# Grace period for missed pings before executing 'down_cmd'.
15max_delay = 30
33858ce2 16
cb654384
AT
17# Command to execute when host first responds to ping after being down.
18up_cmd = "echo ICMPmonitor: localhost up"
19
20# Command to execute when host fails to respond for longer than 'max_delay'.
21down_cmd = "logger -s ICMPmonitor: localhost down - how\!\?\!"
22
23# Should ICMPmonitor consider the host to be 'down' or 'up' upon startup?
33858ce2 24start_condition = down
cb654384
AT
25
26################################################################################
27
28[A second example]
29host = localhost
30interval = 15
31max_delay = 60
32up_cmd = "echo example1 && echo example2" # Execute multiple commands
33down_cmd = "/bin/sh /dev/null" # Call external scripts
34start_condition = up