aboutsummaryrefslogtreecommitdiff
path: root/foolsm.conf.sample
blob: 74d78cb7ff882e537bf08ffadad998d8f41446e0 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#
# (C) 2009 Mika Ilmaranta <ilmis@nullnet.fi>
#
# License: GPLv2
#

#
# Debug level: 0 .. 8 are normal, 9 gives lots of stuff and 100 doesn't
# bother to detach
#
#debug=10
#debug=9
debug=8

#
# Defaults for the connection entries
#
defaults {
  name=defaults
  checkip=127.0.0.1
  eventscript=/usr/libexec/foolsm/default_script
  max_packet_loss=15
  max_successive_pkts_lost=7
  min_packet_loss=5
  min_successive_pkts_rcvd=10
  interval_ms=1000
  timeout_ms=1000
  warn_email=root
  check_arp=0
  sourceip=
# if using ping probes for monitoring only then defaults should
# not define a default device for packets to autodiscover their path
# to destination
#  device=eth0
# use system default ttl
  ttl=0
# assume initial up state at foolsm startup (1 = up, 0 = down, 2 = unknown (default))
# status=1
}

#
# Some example connections
# NOTE: don't use any white space in name ...
#
# connection {
#   name=connection-1
#   checkip=127.108.68.69
#   eventscript=/usr/libexec/foolsm/conn1
#   max_packet_loss=15
#   max_successive_pkts_lost=7
#   min_packet_loss=5
#   min_successive_pkts_rcvd=10
#   interval_ms=1000
#   timeout_ms=1000
#   warn_email=root1@some.tld
#   check_arp=0
#   sourceip=
#   device=
#   ttl=64
# }

# connection {
#   name=connection-2
#   checkip=127.108.68.65
#   eventscript=/usr/libexec/foolsm/conn2
#   max_packet_loss=15
#   max_successive_pkts_lost=7
#   min_packet_loss=5
#   min_successive_pkts_rcvd=10
#   interval_ms=1000
#   timeout_ms=1000
#   warn_email=root2@some.tld
#   check_arp=0
#   sourceip=
#   device=
#   ttl=64
# }

# connection {
#   name=connection-3
#   checkip=127.108.68.68
#   eventscript=/usr/libexec/foolsm/conn3
#   max_packet_loss=15
#   max_successive_pkts_lost=7
#   min_packet_loss=5
#   min_successive_pkts_rcvd=10
#   interval_ms=1000
#   timeout_ms=1000
#   warn_email=root3@some.tld
#   check_arp=0
#   sourceip=
#   device=
#   ttl=64
# }

# connection {
#   name=connection-4
#   checkip=127.108.68.75
# }

#
# Arping example
#
# connection {
#   name=connection-5
#   checkip=127.108.68.71
#   check_arp=1
#   # if the remote end is not behind the defaults device
#   # then you have to set this
#   device=eth0
#   # setting source ip is not mandatory
#   sourceip=127.108.68.68
#   # use system default ttl
#   ttl=0
# }

#
# Group example
#
# connection {
#   name=conn-a
#   checkip=127.108.68.99
#   eventscript=
# }
#
# connection {
#   name=conn-b
#   checkip=127.108.68.100
#   eventscript=
# }
#
# group {
#   name=conn-group-a
#   eventscript=/usr/libexec/lsm/default_script
#   warn_email=root@some.domain.tld
#   # device name reported to the scripts
#   device=eth0
#   # logic between member connetion statuses
#   # logic=0 == or
#   # logic=1 == and
#   logic=0
#   member-connection=conn-a
#   member-connection=conn-b
# }