Commit | Line | Data |
---|---|---|
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. | |
9 | host = 127.0.0.1 | |
10 | ||
11 | # Ping interval. | |
12 | interval = 2 | |
13 | ||
14 | # Grace period for missed pings before executing 'down_cmd'. | |
15 | max_delay = 30 | |
33858ce2 | 16 | |
cb654384 AT |
17 | # Command to execute when host first responds to ping after being down. |
18 | up_cmd = "echo ICMPmonitor: localhost up" | |
19 | ||
20 | # Command to execute when host fails to respond for longer than 'max_delay'. | |
21 | down_cmd = "logger -s ICMPmonitor: localhost down - how\!\?\!" | |
22 | ||
23 | # Should ICMPmonitor consider the host to be 'down' or 'up' upon startup? | |
33858ce2 | 24 | start_condition = down |
cb654384 AT |
25 | |
26 | ################################################################################ | |
27 | ||
28 | [A second example] | |
29 | host = localhost | |
30 | interval = 15 | |
31 | max_delay = 60 | |
32 | up_cmd = "echo example1 && echo example2" # Execute multiple commands | |
33 | down_cmd = "/bin/sh /dev/null" # Call external scripts | |
34 | start_condition = up |