-
Notifications
You must be signed in to change notification settings - Fork 44
/
swatd.conf
executable file
·29 lines (24 loc) · 1.39 KB
/
swatd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This configuration makes SWATd continually check if /tmp/foobar exists. If
# /tmp/foobar stops existing (goes from existing to not existing), SWATd will
# write some text to the file /tmp/ran.
# =============================================================================
# The number of seconds to wait between sensor checks.
# =============================================================================
interval: 30
# =============================================================================
# The number of sensors that must 'fail' at the same time.
# =============================================================================
threshold: 1
# =============================================================================
# The command to execute when 'threshold' sensors fail.
# =============================================================================
execute: echo "haiii" > /tmp/ran
# =============================================================================
# Sensor commands.
# A sensor has 'failed' when the exit code transisions from zero to non-zero.
# If a sensor's exit code is transitions from zero to 255, the command will be
# executed immediately regardless of the 'threshold' setting, and the failure
# count will not be incremented.
# WARNING: Sensor commands MUST terminate.
# =============================================================================
test -e /tmp/foobar