~ubuntu-branches/debian/lenny/smokeping/lenny

« back to all changes in this revision

Viewing changes to doc/smokeping_config.1

  • Committer: Bazaar Package Importer
  • Author(s): Niko Tyni
  • Date: 2006-10-26 21:45:56 UTC
  • mfrom: (1.2.2 upstream) (2.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20061026214556-5jnpiesx4vdijmu6
* debian/patches/15_clean_makefile.dpatch:
  + remove unneeded and potentially unsecure include paths.
* debian/patches: selected patches from the upstream SVN repository
  + 40_password.dpatch: skip reading the password file when running as a CGI.
  + 50_ldap.dpatch: Make the 'scope' option in the LDAP probe actually work.
  + 60_fping.dpatch:
    * Support the '-S' (set source address, see #198486) fping option.
    * Don't try to execute fping when running as a CGI.
  + 70_syslog.dpatch: Don't die silently if syslogd is unavailable.
    (Closes: #395056)
* Remove all the autogenerated documentation at clean time, to properly
  undo the effects of the 'build' target.
* Install example configuration files for documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
2
 
.\"
3
 
.\" Standard preamble:
4
 
.\" ========================================================================
5
 
.de Sh \" Subsection heading
6
 
.br
7
 
.if t .Sp
8
 
.ne 5
9
 
.PP
10
 
\fB\\$1\fR
11
 
.PP
12
 
..
13
 
.de Sp \" Vertical space (when we can't use .PP)
14
 
.if t .sp .5v
15
 
.if n .sp
16
 
..
17
 
.de Vb \" Begin verbatim text
18
 
.ft CW
19
 
.nf
20
 
.ne \\$1
21
 
..
22
 
.de Ve \" End verbatim text
23
 
.ft R
24
 
.fi
25
 
..
26
 
.\" Set up some character translations and predefined strings.  \*(-- will
27
 
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28
 
.\" double quote, and \*(R" will give a right double quote.  | will give a
29
 
.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30
 
.\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31
 
.\" expand to `' in nroff, nothing in troff, for use with C<>.
32
 
.tr \(*W-|\(bv\*(Tr
33
 
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34
 
.ie n \{\
35
 
.    ds -- \(*W-
36
 
.    ds PI pi
37
 
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38
 
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39
 
.    ds L" ""
40
 
.    ds R" ""
41
 
.    ds C` ""
42
 
.    ds C' ""
43
 
'br\}
44
 
.el\{\
45
 
.    ds -- \|\(em\|
46
 
.    ds PI \(*p
47
 
.    ds L" ``
48
 
.    ds R" ''
49
 
'br\}
50
 
.\"
51
 
.\" If the F register is turned on, we'll generate index entries on stderr for
52
 
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53
 
.\" entries marked with X<> in POD.  Of course, you'll have to process the
54
 
.\" output yourself in some meaningful fashion.
55
 
.if \nF \{\
56
 
.    de IX
57
 
.    tm Index:\\$1\t\\n%\t"\\$2"
58
 
..
59
 
.    nr % 0
60
 
.    rr F
61
 
.\}
62
 
.\"
63
 
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64
 
.\" way too many mistakes in technical documents.
65
 
.hy 0
66
 
.if n .na
67
 
.\"
68
 
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69
 
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70
 
.    \" fudge factors for nroff and troff
71
 
.if n \{\
72
 
.    ds #H 0
73
 
.    ds #V .8m
74
 
.    ds #F .3m
75
 
.    ds #[ \f1
76
 
.    ds #] \fP
77
 
.\}
78
 
.if t \{\
79
 
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80
 
.    ds #V .6m
81
 
.    ds #F 0
82
 
.    ds #[ \&
83
 
.    ds #] \&
84
 
.\}
85
 
.    \" simple accents for nroff and troff
86
 
.if n \{\
87
 
.    ds ' \&
88
 
.    ds ` \&
89
 
.    ds ^ \&
90
 
.    ds , \&
91
 
.    ds ~ ~
92
 
.    ds /
93
 
.\}
94
 
.if t \{\
95
 
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96
 
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97
 
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98
 
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99
 
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100
 
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101
 
.\}
102
 
.    \" troff and (daisy-wheel) nroff accents
103
 
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104
 
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105
 
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106
 
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107
 
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108
 
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109
 
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110
 
.ds ae a\h'-(\w'a'u*4/10)'e
111
 
.ds Ae A\h'-(\w'A'u*4/10)'E
112
 
.    \" corrections for vroff
113
 
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114
 
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115
 
.    \" for low resolution devices (crt and lpr)
116
 
.if \n(.H>23 .if \n(.V>19 \
117
 
\{\
118
 
.    ds : e
119
 
.    ds 8 ss
120
 
.    ds o a
121
 
.    ds d- d\h'-1'\(ga
122
 
.    ds D- D\h'-1'\(hy
123
 
.    ds th \o'bp'
124
 
.    ds Th \o'LP'
125
 
.    ds ae ae
126
 
.    ds Ae AE
127
 
.\}
128
 
.rm #[ #] #H #V #F C
129
 
.\" ========================================================================
130
 
.\"
131
 
.IX Title "SMOKEPING_CONFIG 1"
132
 
.TH SMOKEPING_CONFIG 1 "2005-01-30" "1.38" "SmokePing"
133
 
.SH "NAME"
134
 
smokeping_config \- Reference for the SmokePing Config File
135
 
.SH "OVERVIEW"
136
 
.IX Header "OVERVIEW"
137
 
SmokePing takes its configuration from a single central configuration file.
138
 
Its location must be hardcoded in the smokeping script and smokeping.cgi.
139
 
.PP
140
 
The contents of this manual is generated directly from the configuration
141
 
file parser.
142
 
.PP
143
 
The Parser for the Configuration file is written using David Schweikers
144
 
ParseConfig module. Read all about it in ISG::ParseConfig.
145
 
.PP
146
 
The Configuration file has a tree-like structure with section headings at
147
 
various levels. It also contains variable assignments and tables.
148
 
.SH "REFERENCE"
149
 
.IX Header "REFERENCE"
150
 
The text below describes the syntax of the SmokePing configuration file.
151
 
.Sh "*** General *** \fI(mandatory section)\fP"
152
 
.IX Subsection "*** General *** (mandatory section)"
153
 
General configuration values valid for the whole SmokePing setup.
154
 
.PP
155
 
The following variables can be set in this section:
156
 
.IP "\fBowner\fR \fI(mandatory setting)\fR" 4
157
 
.IX Item "owner (mandatory setting)"
158
 
Name of the person responsible for this smokeping installation.
159
 
.IP "\fBimgcache\fR \fI(mandatory setting)\fR" 4
160
 
.IX Item "imgcache (mandatory setting)"
161
 
A directory which is visible on your webserver where SmokePing can cache graphs.
162
 
.IP "\fBimgurl\fR \fI(mandatory setting)\fR" 4
163
 
.IX Item "imgurl (mandatory setting)"
164
 
Either an absolute \s-1URL\s0 to the \fBimgcache\fR directory or one relative to the directory where you keep the
165
 
SmokePing cgi.
166
 
.IP "\fBdatadir\fR \fI(mandatory setting)\fR" 4
167
 
.IX Item "datadir (mandatory setting)"
168
 
The directory where SmokePing can keep its rrd files.
169
 
.IP "\fBpagedir\fR" 4
170
 
.IX Item "pagedir"
171
 
Directory to store static representations of pages.
172
 
.IP "\fBpiddir\fR \fI(mandatory setting)\fR" 4
173
 
.IX Item "piddir (mandatory setting)"
174
 
The directory where SmokePing keeps its pid when daemonised.
175
 
.IP "\fBsendmail\fR" 4
176
 
.IX Item "sendmail"
177
 
Path to your sendmail binary. It will be used for sending mails in connection with the support of \s-1DYNAMIC\s0 addresses.                          
178
 
.IP "\fBoffset\fR" 4
179
 
.IX Item "offset"
180
 
If you run many instances of smokeping you may want to prevent them from
181
 
hitting your network all at the same time. Using the offset parameter you
182
 
can change the point in time when the probes are run. Offset is specified
183
 
in % of total interval, or alternatively as 'random'. I recommend to use
184
 
\&'random'. Note that this does \s-1NOT\s0 influence the rrds itself, it is just a
185
 
matter of when data acqusition is initiated.  The default offset is 'random'.
186
 
.IP "\fBsmokemail\fR \fI(mandatory setting)\fR" 4
187
 
.IX Item "smokemail (mandatory setting)"
188
 
Path to the mail template for \s-1DYNAMIC\s0 hosts. This mail template
189
 
must contain keywords of the form \fB<##\fR\fIkeyword\fR\fB##>\fR. There is a sample
190
 
template included with SmokePing.
191
 
.IP "\fBcgiurl\fR \fI(mandatory setting)\fR" 4
192
 
.IX Item "cgiurl (mandatory setting)"
193
 
Complete \s-1URL\s0 path of the SmokePing.cgi
194
 
.IP "\fBmailhost\fR" 4
195
 
.IX Item "mailhost"
196
 
Instead of using sendmail, you can specify the name of an smtp server 
197
 
and use perl's Net::SMTP module to send mail to \s-1DYNAMIC\s0 host owners (see below).
198
 
.IP "\fBcontact\fR \fI(mandatory setting)\fR" 4
199
 
.IX Item "contact (mandatory setting)"
200
 
Mail address of the person responsible for this smokeping installation.
201
 
.IP "\fBnetsnpp\fR" 4
202
 
.IX Item "netsnpp"
203
 
.PD 0
204
 
.IP "\fBsyslogfacility\fR" 4
205
 
.IX Item "syslogfacility"
206
 
.PD
207
 
The syslog facility to use, eg. local0...local7. 
208
 
Note: syslog logging is only used if you specify this.
209
 
.IP "\fBsyslogpriority\fR" 4
210
 
.IX Item "syslogpriority"
211
 
The syslog priority to use, eg. debug, notice or info. 
212
 
Default is info.
213
 
.IP "\fBconcurrentprobes\fR" 4
214
 
.IX Item "concurrentprobes"
215
 
If you use multiple probes or multiple instances of the same probe and you
216
 
want them to run concurrently in separate processes, set this to 'yes'. This
217
 
gives you the possibility to specify probe-specific step and offset parameters 
218
 
(see the 'Probes' section) for each probe and makes the probes unable to block
219
 
each other in cases of service outages. The default is 'yes', but if you for
220
 
some reason want the old behaviour you can set this to 'no'.
221
 
.IP "\fBchangeprocessnames\fR" 4
222
 
.IX Item "changeprocessnames"
223
 
When using 'concurrentprobes' (see above), this controls whether the probe
224
 
subprocesses should change their argv string to indicate their probe in
225
 
the process name.  If set to 'yes' (the default), the probe name will
226
 
be appended to the process name as '[probe]', eg.  '/usr/bin/smokeping
227
 
[FPing]'. If you don't like this behaviour, set this variable to 'no'.
228
 
If 'concurrentprobes' is not set to 'yes', this variable has no effect.
229
 
.Sh "*** Database *** \fI(mandatory section)\fP"
230
 
.IX Subsection "*** Database *** (mandatory section)"
231
 
Describes the properties of the round robin database for storing the
232
 
SmokePing data. Note that it is not possible to edit existing RRDs
233
 
by changing the entries in the cfg file.
234
 
.PP
235
 
The following variables can be set in this section:
236
 
.IP "\fBstep\fR \fI(mandatory setting)\fR" 4
237
 
.IX Item "step (mandatory setting)"
238
 
Duration of the base operation interval of SmokePing in seconds.
239
 
SmokePing will venture out every \fBstep\fR seconds to ping your target hosts.
240
 
If 'concurrent_probes' is set to 'yes' (see above), this variable can be 
241
 
overridden by each probe. Note that the step in the \s-1RRD\s0 files is fixed when 
242
 
they are originally generated, and if you change the step parameter afterwards, 
243
 
you'll have to delete the old \s-1RRD\s0 files or somehow convert them. 
244
 
.IP "\fBpings\fR \fI(mandatory setting)\fR" 4
245
 
.IX Item "pings (mandatory setting)"
246
 
How many pings should be sent to each target. Suggested: 20 pings.
247
 
This can be overridden by each probe. Some probes (those derived from
248
 
basefork.pm, ie. most except the FPing variants) will even let this
249
 
be overridden target-specifically in the \s-1PROBE_CONF\s0 section (see the
250
 
basefork documentation for details).  Note that the number of pings in
251
 
the \s-1RRD\s0 files is fixed when they are originally generated, and if you
252
 
change this parameter afterwards, you'll have to delete the old \s-1RRD\s0
253
 
files or somehow convert them.
254
 
.PP
255
 
This section also contains a table describing the setup of the
256
 
SmokePing database. Below are reasonable defaults. Only change them if
257
 
you know rrdtool and its workings. Each row in the table describes one \s-1RRA\s0.
258
 
.PP
259
 
.Vb 8
260
 
\& # cons   xff steps rows
261
 
\& AVERAGE  0.5   1   1008
262
 
\& AVERAGE  0.5  12   4320
263
 
\&     MIN  0.5  12   4320
264
 
\&     MAX  0.5  12   4320
265
 
\& AVERAGE  0.5 144    720
266
 
\&     MAX  0.5 144    720
267
 
\&     MIN  0.5 144    720
268
 
.Ve
269
 
.IP "column 0" 4
270
 
.IX Item "column 0"
271
 
Consolidation method.
272
 
.IP "column 1" 4
273
 
.IX Item "column 1"
274
 
What part of the consolidated intervals must be known to warrant a known entry.
275
 
.IP "column 2" 4
276
 
.IX Item "column 2"
277
 
How many \fBsteps\fR to consolidate into for each \s-1RRA\s0 entry.
278
 
.IP "column 3" 4
279
 
.IX Item "column 3"
280
 
How many \fBrows\fR this \s-1RRA\s0 should have.
281
 
.Sh "*** Presentation *** \fI(mandatory section)\fP"
282
 
.IX Subsection "*** Presentation *** (mandatory section)"
283
 
Defines how the SmokePing data should be presented.
284
 
.PP
285
 
The following variables can be set in this section:
286
 
.IP "\fBtemplate\fR \fI(mandatory setting)\fR" 4
287
 
.IX Item "template (mandatory setting)"
288
 
The webpage template must contain keywords of the form 
289
 
\&\fB<##\fR\fIkeyword\fR\fB##>\fR. There is a sample
290
 
template included with SmokePing; use it as the basis for your
291
 
experiments. Default template contains a pointer to the SmokePing
292
 
counter and homepage. I would be glad if you would not remove this as
293
 
it gives me an indication as to how widely used the tool is.
294
 
.IP "\fBcharset\fR" 4
295
 
.IX Item "charset"
296
 
By default, SmokePing assumes the 'iso\-8859\-15' character set. If you use
297
 
something else, this is the place to speak up.
298
 
.PP
299
 
The following sections are valid on level 1:
300
 
.IP "\fB+overview\fR \fI(mandatory section)\fR" 4
301
 
.IX Item "+overview (mandatory section)"
302
 
The Overview section defines how the Overview graphs should look.
303
 
.Sp
304
 
The following variables can be set in this section:
305
 
.RS 4
306
 
.IP "\fBwidth\fR \fI(mandatory setting)\fR" 4
307
 
.IX Item "width (mandatory setting)"
308
 
Width of the Overview Graphs.
309
 
.IP "\fBheight\fR \fI(mandatory setting)\fR" 4
310
 
.IX Item "height (mandatory setting)"
311
 
Height of the Overview Graphs.
312
 
.IP "\fBrange\fR" 4
313
 
.IX Item "range"
314
 
How much time should be depicted in the Overview graph. Time must be specified
315
 
as a number followed by a letter which specifies the unit of time. Known units are:
316
 
\&\fBs\fReconds, \fBm\fRinutes, \fBh\fRours, \fBd\fRdays, \fBw\fReeks, \fBy\fRears.
317
 
.IP "\fBmax_rtt\fR" 4
318
 
.IX Item "max_rtt"
319
 
Any roundtrip time larger than this value will cropped in the overview graph
320
 
.IP "\fBmedian_color\fR" 4
321
 
.IX Item "median_color"
322
 
By default the median line is drawn in red. Override it here with a hex color
323
 
in the format \fIrrggbb\fR.
324
 
.IP "\fBstrftime\fR" 4
325
 
.IX Item "strftime"
326
 
Use posix strftime to format the timestamp in the left hand
327
 
lower corner of the overview graph
328
 
.RE
329
 
.RS 4
330
 
.RE
331
 
.IP "\fB+detail\fR \fI(mandatory section)\fR" 4
332
 
.IX Item "+detail (mandatory section)"
333
 
The following variables can be set in this section:
334
 
.RS 4
335
 
.IP "\fBwidth\fR \fI(mandatory setting)\fR" 4
336
 
.IX Item "width (mandatory setting)"
337
 
How many pixels wide should detail graphs be
338
 
.IP "\fBheight\fR \fI(mandatory setting)\fR" 4
339
 
.IX Item "height (mandatory setting)"
340
 
How many pixels high should detail graphs be
341
 
.IP "\fBlogarithmic\fR" 4
342
 
.IX Item "logarithmic"
343
 
should the graphs be shown in a logarithmic scale (yes/no)
344
 
.IP "\fBunison_tolerance\fR" 4
345
 
.IX Item "unison_tolerance"
346
 
if a graph is more than this factor of the median 'max' it drops out of the unison scaling algorithm. A factor of two would mean that any graph with a max either less than half or more than twice the median 'max' will be dropped from unison scaling
347
 
.IP "\fBmax_rtt\fR" 4
348
 
.IX Item "max_rtt"
349
 
Any roundtrip time larger than this value will cropped in the detail graph
350
 
.IP "\fBstrftime\fR" 4
351
 
.IX Item "strftime"
352
 
Use posix strftime to format the timestamp in the left hand
353
 
lower corner of the detail graph
354
 
.IP "\fBnodata_color\fR" 4
355
 
.IX Item "nodata_color"
356
 
Paint the graph background in a special color when there is no data for this period because smokeping has not been running (#rrggbb)
357
 
.RE
358
 
.RS 4
359
 
.Sp
360
 
The detailed display can contain several graphs of different resolution. In this
361
 
table you can specify the resolution of each graph.
362
 
.Sp
363
 
Example:
364
 
.Sp
365
 
.Vb 4
366
 
\& "Last 3 Hours"    3h
367
 
\& "Last 30 Hours"   30h
368
 
\& "Last 10 Days"    10d
369
 
\& "Last 400 Days"   400d
370
 
.Ve
371
 
.IP "column 0" 4
372
 
.IX Item "column 0"
373
 
Description of the particular resolution.
374
 
.IP "column 1" 4
375
 
.IX Item "column 1"
376
 
How much time should be depicted. The format is the same as for the \fBage\fR  parameter of the Overview section.
377
 
.RE
378
 
.RS 4
379
 
.Sp
380
 
The following sections are valid on level 2:
381
 
.IP "\fB++loss_colors\fR" 4
382
 
.IX Item "++loss_colors"
383
 
In the Detail view, the color of the median line depends
384
 
the amount of lost packets. SmokePing comes with a reasonable default setting,
385
 
but you may choose to disagree. The table below
386
 
lets you specify your own coloring.
387
 
.Sp
388
 
Example:
389
 
.Sp
390
 
.Vb 4
391
 
\& Loss Color   Legend
392
 
\& 1    00ff00    "<1"
393
 
\& 3    0000ff    "<3"
394
 
\& 100  ff0000    ">=3"
395
 
.Ve
396
 
.RS 4
397
 
.IP "column 0" 4
398
 
.IX Item "column 0"
399
 
Activate when the lossrate (in percent) is larger of equal to this number
400
 
.IP "column 1" 4
401
 
.IX Item "column 1"
402
 
Color for this range.
403
 
.IP "column 2" 4
404
 
.IX Item "column 2"
405
 
Description for this range.
406
 
.RE
407
 
.RS 4
408
 
.RE
409
 
.IP "\fB++uptime_colors\fR" 4
410
 
.IX Item "++uptime_colors"
411
 
When monitoring a host with \s-1DYNAMIC\s0 addressing, SmokePing will keep
412
 
track of how long the machine is able to keep the same \s-1IP\s0
413
 
address. This time is plotted as a color in the graphs
414
 
background. SmokePing comes with a reasonable default setting, but you
415
 
may choose to disagree. The table below lets you specify your own
416
 
coloring
417
 
.Sp
418
 
Example:
419
 
.Sp
420
 
.Vb 5
421
 
\& # Uptime      Color     Legend
422
 
\& 3600          00ff00   "<1h"
423
 
\& 86400         0000ff   "<1d"
424
 
\& 604800        ff0000   "<1w"
425
 
\& 1000000000000 ffff00   ">1w"
426
 
.Ve
427
 
.Sp
428
 
Uptime is in days!
429
 
.RS 4
430
 
.IP "column 0" 4
431
 
.IX Item "column 0"
432
 
Activate when uptime in days is larger of equal to this number
433
 
.IP "column 1" 4
434
 
.IX Item "column 1"
435
 
Color for this uptime range range.
436
 
.IP "column 2" 4
437
 
.IX Item "column 2"
438
 
Description for this range.
439
 
.RE
440
 
.RS 4
441
 
.RE
442
 
.RE
443
 
.RS 4
444
 
.RE
445
 
.Sh "*** Probes *** \fI(mandatory section)\fP"
446
 
.IX Subsection "*** Probes *** (mandatory section)"
447
 
The Probes Section configures Probe modules. Probe modules integrate an external ping command into SmokePing. Check the documentation of the FPing module for configuration details.
448
 
.PP
449
 
The following sections are valid on level 1:
450
 
.IP "\fB+/[\-_0\-9a\-zA\-Z]+/\fR" 4
451
 
.IX Item "+/[-_0-9a-zA-Z]+/"
452
 
Each module can take specific configuration information from this area. The jumble of letters above is a regular expression defining legal module names.
453
 
.Sp
454
 
The following variables can be set in this section:
455
 
.RS 4
456
 
.IP "\fBstep\fR" 4
457
 
.IX Item "step"
458
 
Duration of the base interval that this probe should use, if different
459
 
from the one specified in the 'Database' section. Note that the step in 
460
 
the \s-1RRD\s0 files is fixed when they are originally generated, and if you
461
 
change the step parameter afterwards, you'll have to delete the old \s-1RRD\s0
462
 
files or somehow convert them. (This variable is only applicable if 
463
 
the variable 'concurrentprobes' is set in the 'General' section.)
464
 
.IP "\fBoffset\fR" 4
465
 
.IX Item "offset"
466
 
If you run many probes concurrently you may want to prevent them from
467
 
hitting your network all at the same time. Using the probe-specific
468
 
offset parameter you can change the point in time when each probe will
469
 
be run. Offset is specified in % of total interval, or alternatively as
470
 
\&'random', and the offset from the 'General' section is used if nothing
471
 
is specified here. Note that this does \s-1NOT\s0 influence the rrds itself,
472
 
it is just a matter of when data acqusition is initiated. 
473
 
(This variable is only applicable if the variable 'concurrentprobes' is set
474
 
in the 'General' section.)
475
 
.IP "\fBpings\fR" 4
476
 
.IX Item "pings"
477
 
How many pings should be sent to each target, if different from the global
478
 
value specified in the Database section.  Some probes (those derived from
479
 
basefork.pm, ie. most except the FPing variants) will even let this be
480
 
overridden target-specifically in the \s-1PROBE_CONF\s0 section (see the
481
 
basefork documentation for details).  Note that the number of pings in
482
 
the \s-1RRD\s0 files is fixed when they are originally generated, and if you
483
 
change this parameter afterwards, you'll have to delete the old \s-1RRD\s0
484
 
files or somehow convert them.
485
 
.IP "\fB/[\-_0\-9a\-zA\-Z.]+/\fR" 4
486
 
.IX Item "/[-_0-9a-zA-Z.]+/"
487
 
Each module defines which
488
 
variables it wants to accept. So this expression here just defines legal variable names.
489
 
.RE
490
 
.RS 4
491
 
.Sp
492
 
The following sections are valid on level 2:
493
 
.IP "\fB++/[\-_0\-9a\-zA\-Z]+/\fR" 4
494
 
.IX Item "++/[-_0-9a-zA-Z]+/"
495
 
You can define multiple instances of the same probe with subsections. 
496
 
These instances can have different values for their variables, so you
497
 
can eg. have one instance of the FPing probe with packet size 1000 and
498
 
step 30 and another instance with packet size 64 and step 300.
499
 
The name of the subsection determines what the probe will be called, so
500
 
you can write descriptive names for the probes.
501
 
.Sp
502
 
If there are any subsections defined, the main section for this probe
503
 
will just provide default parameter values for the probe instances, ie.
504
 
it will not become a probe instance itself.
505
 
.Sp
506
 
The following variables can be set in this section:
507
 
.RS 4
508
 
.IP "\fBstep\fR" 4
509
 
.IX Item "step"
510
 
.PD 0
511
 
.IP "\fBoffset\fR" 4
512
 
.IX Item "offset"
513
 
.IP "\fBpings\fR" 4
514
 
.IX Item "pings"
515
 
.IP "\fB/[\-_0\-9a\-zA\-Z.]+/\fR" 4
516
 
.IX Item "/[-_0-9a-zA-Z.]+/"
517
 
.PD
518
 
Each module defines which
519
 
variables it wants to accept. So this expression here just defines legal variable names.
520
 
.RE
521
 
.RS 4
522
 
.RE
523
 
.RE
524
 
.RS 4
525
 
.RE
526
 
.Sh "*** Alerts ***"
527
 
.IX Subsection "*** Alerts ***"
528
 
The Alert section lets you setup loss and \s-1RTT\s0 pattern detectors. After each
529
 
round of polling, SmokePing will examine its data and determine which
530
 
detectors match. Detectors are enabled per target and get inherited by
531
 
the targets children.
532
 
.PP
533
 
Detectors are not just simple thresholds which go off at first sight
534
 
of a problem. They are configurable to detect special loss or \s-1RTT\s0
535
 
patterns. They let you look at a number of past readings to make a
536
 
more educated decision on what kind of alert should be sent, or if an
537
 
alert should be sent at all.
538
 
.PP
539
 
The patterns are numbers prefixed with an operator indicating the type
540
 
of comparison required for a match.
541
 
.PP
542
 
The following \s-1RTT\s0 pattern detects if a target's \s-1RTT\s0 goes from constantly
543
 
below 10ms to constantly 100ms and more:
544
 
.PP
545
 
.Vb 2
546
 
\& old ------------------------------> new
547
 
\& <10,<10,<10,<10,<10,>10,>100,>100,>100
548
 
.Ve
549
 
.PP
550
 
Loss patterns work in a similar way, except that the loss is defined as the
551
 
percentage the total number of received packets is of the total number of packets sent.
552
 
.PP
553
 
.Vb 2
554
 
\& old ------------------------------> new
555
 
\& ==0%,==0%,==0%,==0%,>20%,>20%,>=20%
556
 
.Ve
557
 
.PP
558
 
Apart from normal numbers, patterns can also contain the values \fB*\fR
559
 
which is true for all values regardless of the operator. And \fBU\fR
560
 
which is true for \fBunknown\fR data together with the \fB==\fR and \fB=!\fR operators.
561
 
.PP
562
 
Detectors normally act on state changes. This has the disadvantage, that
563
 
they will fail to find conditions which were already present when launching
564
 
smokeping. For this it is possible to write detectors that begin with the
565
 
special value \fB==S\fR it is inserted whenever smokeping is started up.
566
 
.PP
567
 
You can write
568
 
.PP
569
 
.Vb 1
570
 
\& ==S,>20%,>20%
571
 
.Ve
572
 
.PP
573
 
to detect lines that have been losing more than 20% of the packets for two
574
 
periods after startup.
575
 
.PP
576
 
Sometimes it may be that conditions occur at irregular intervals. But still
577
 
you only want to throw an alert if they occur several times within a certain
578
 
amount of times. The operator \fB*X*\fR will ignore up to \fIX\fR values and still
579
 
let the pattern match:
580
 
.PP
581
 
.Vb 1
582
 
\&  >10%,*10*,>10%
583
 
.Ve
584
 
.PP
585
 
will fire if more than 10% of the packets have been losst twice over the
586
 
last 10 samples.
587
 
.PP
588
 
A complete example
589
 
.PP
590
 
.Vb 3
591
 
\& *** Alerts ***
592
 
\& to = admin@company.xy,peter@home.xy
593
 
\& from = smokealert@company.xy
594
 
.Ve
595
 
.PP
596
 
.Vb 5
597
 
\& +lossdetect
598
 
\& type = loss
599
 
\& # in percent
600
 
\& pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20%
601
 
\& comment = suddenly there is packet loss
602
 
.Ve
603
 
.PP
604
 
.Vb 5
605
 
\& +miniloss
606
 
\& type = loss
607
 
\& # in percent
608
 
\& pattern = >0%,*12*,>0%,*12*,>0%
609
 
\& comment = detected loss 3 times over the last two hours
610
 
.Ve
611
 
.PP
612
 
.Vb 5
613
 
\& +rttdetect
614
 
\& type = rtt
615
 
\& # in milliseconds
616
 
\& pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100
617
 
\& comment = routing messed up again ?
618
 
.Ve
619
 
.PP
620
 
.Vb 5
621
 
\& +rttbadstart
622
 
\& type = rtt
623
 
\& # in milliseconds
624
 
\& pattern = ==S,==U
625
 
\& comment = offline at startup
626
 
.Ve
627
 
.PP
628
 
The following variables can be set in this section:
629
 
.IP "\fBto\fR \fI(mandatory setting)\fR" 4
630
 
.IX Item "to (mandatory setting)"
631
 
.PD 0
632
 
.IP "\fBfrom\fR \fI(mandatory setting)\fR" 4
633
 
.IX Item "from (mandatory setting)"
634
 
.PD
635
 
.PP
636
 
The following sections are valid on level 1:
637
 
.IP "\fB+/[^\es,]+/\fR" 4
638
 
.IX Item "+/[^s,]+/"
639
 
The following variables can be set in this section:
640
 
.RS 4
641
 
.IP "\fBtype\fR \fI(mandatory setting)\fR" 4
642
 
.IX Item "type (mandatory setting)"
643
 
Currently the pattern types \fBrtt\fR and \fBloss\fR and \fBmatcher\fR are known
644
 
.IP "\fBpattern\fR \fI(mandatory setting)\fR" 4
645
 
.IX Item "pattern (mandatory setting)"
646
 
a comma separated list of comparison operators and numbers. rtt patterns are in milliseconds, loss patterns are in percents
647
 
.IP "\fBcomment\fR \fI(mandatory setting)\fR" 4
648
 
.IX Item "comment (mandatory setting)"
649
 
.PD 0
650
 
.IP "\fBto\fR" 4
651
 
.IX Item "to"
652
 
.RE
653
 
.RS 4
654
 
.RE
655
 
.PD
656
 
.Sh "*** Targets *** \fI(mandatory section)\fP"
657
 
.IX Subsection "*** Targets *** (mandatory section)"
658
 
The Target Section defines the actual work of SmokePing. It contains a hierarchical list
659
 
of hosts which mark the endpoints of the network connections the system should monitor.
660
 
Each section can contain one host as well as other sections.
661
 
.PP
662
 
The following variables can be set in this section:
663
 
.IP "\fBprobe\fR \fI(mandatory setting)\fR" 4
664
 
.IX Item "probe (mandatory setting)"
665
 
The name of the probe module to be used for this host. The value of
666
 
this variable gets propagated
667
 
.IP "\fBmenu\fR \fI(mandatory setting)\fR" 4
668
 
.IX Item "menu (mandatory setting)"
669
 
Menu entry for this section. If not set this will be set to the hostname.
670
 
.IP "\fBtitle\fR \fI(mandatory setting)\fR" 4
671
 
.IX Item "title (mandatory setting)"
672
 
Title of the page when it is displayed. This will be set to the hostname if
673
 
left empty.
674
 
.IP "\fBremark\fR" 4
675
 
.IX Item "remark"
676
 
An optional remark on the current section. It gets displayed on the webpage.
677
 
.IP "\fBalerts\fR" 4
678
 
.IX Item "alerts"
679
 
A comma separated list of alerts to check for this target. The alerts have
680
 
to be setup in the Alerts section. Alerts are inherited by child nodes. Use
681
 
an empty alerts definition to remove inherited alerts from the current target
682
 
and its children.
683
 
.PP
684
 
The following sections are valid on level 1:
685
 
.IP "\fB+PROBE_CONF\fR" 4
686
 
.IX Item "+PROBE_CONF"
687
 
Probe specific variables. 
688
 
.Sp
689
 
The following variables can be set in this section:
690
 
.RS 4
691
 
.IP "\fB/[\-_0\-9a\-zA\-Z.]+/\fR" 4
692
 
.IX Item "/[-_0-9a-zA-Z.]+/"
693
 
Should be found in the documentation of the
694
 
corresponding probe. The values get propagated to those child
695
 
nodes using the same Probe.
696
 
.RE
697
 
.RS 4
698
 
.RE
699
 
.IP "\fB+/[\-_0\-9a\-zA\-Z]+/\fR" 4
700
 
.IX Item "+/[-_0-9a-zA-Z]+/"
701
 
Each target section can contain information about a host to monitor as
702
 
well as further target sections. Most variables have already been
703
 
described above. The expression above defines legal names for target
704
 
sections.
705
 
.Sp
706
 
The following variables can be set in this section:
707
 
.RS 4
708
 
.IP "\fBprobe\fR" 4
709
 
.IX Item "probe"
710
 
.PD 0
711
 
.IP "\fBmenu\fR" 4
712
 
.IX Item "menu"
713
 
.IP "\fBtitle\fR" 4
714
 
.IX Item "title"
715
 
.IP "\fBalerts\fR" 4
716
 
.IX Item "alerts"
717
 
.PD
718
 
Comma separated list of alert names
719
 
.IP "\fBnote\fR" 4
720
 
.IX Item "note"
721
 
Some information about this entry which does \s-1NOT\s0 get displayed on the web.
722
 
.IP "\fBemail\fR" 4
723
 
.IX Item "email"
724
 
This is the contact address for the owner of the current host. In connection with the \fB\s-1DYNAMIC\s0\fR hosts,
725
 
the address will be used for sending the belowmentioned script.
726
 
.IP "\fBhost\fR" 4
727
 
.IX Item "host"
728
 
Can either contain the name of a target host or the string \fB\s-1DYNAMIC\s0\fR.
729
 
.Sp
730
 
In the second case, the target machine has a dynamic \s-1IP\s0 address and
731
 
thus is required to regularly contact the SmokePing server to verify
732
 
its \s-1IP\s0 address.  When starting SmokePing with the commandline argument
733
 
\&\fB\-\-email\fR it will add a secret password to each of the \fB\s-1DYNAMIC\s0\fR
734
 
host lines and send a script to the owner of each host. This script
735
 
must be started regularly on the host in question to make sure
736
 
SmokePing monitors the right box. If the target machine supports
737
 
\&\s-1SNMP\s0 SmokePing will also query the hosts
738
 
sysContact, sysName and sysLocation properties to make sure it is
739
 
still the same host.
740
 
.IP "\fBremark\fR" 4
741
 
.IX Item "remark"
742
 
.PD 0
743
 
.IP "\fBrawlog\fR" 4
744
 
.IX Item "rawlog"
745
 
.PD
746
 
Log the raw data, gathered for this target, in tab separated format, to a file with the
747
 
same basename as the corresponding \s-1RRD\s0 file. Use posix strftime to format the timestamp to be
748
 
put into the file name. The filename is built like this:
749
 
.Sp
750
 
.Vb 1
751
 
\& basename.strftime.csv
752
 
.Ve
753
 
.Sp
754
 
Example:
755
 
.Sp
756
 
.Vb 1
757
 
\& rawlog=%Y-%m-%d
758
 
.Ve
759
 
.Sp
760
 
this would create a new logfile every day with a name like this: 
761
 
.Sp
762
 
.Vb 1
763
 
\& targethost.2004-05-03.csv
764
 
.Ve
765
 
.IP "\fBalertee\fR" 4
766
 
.IX Item "alertee"
767
 
If you want to have alerts for this target and all targets below it go to a particular address
768
 
on top of the address already specified in the alert, you can add it here. This can be a comma separated list of items.
769
 
.RE
770
 
.RS 4
771
 
.Sp
772
 
The following sections are valid on level 2:
773
 
.IP "\fB++PROBE_CONF\fR" 4
774
 
.IX Item "++PROBE_CONF"
775
 
Probe specific variables. 
776
 
.Sp
777
 
The following variables can be set in this section:
778
 
.RS 4
779
 
.IP "\fB/[\-_0\-9a\-zA\-Z.]+/\fR" 4
780
 
.IX Item "/[-_0-9a-zA-Z.]+/"
781
 
Should be found in the documentation of the
782
 
corresponding probe. The values get propagated to those child
783
 
nodes using the same Probe.
784
 
.RE
785
 
.RS 4
786
 
.RE
787
 
.IP "\fB++/[\-_0\-9a\-zA\-Z]+/\fR" 4
788
 
.IX Item "++/[-_0-9a-zA-Z]+/"
789
 
Each target section can contain information about a host to monitor as
790
 
well as further target sections. Most variables have already been
791
 
described above. The expression above defines legal names for target
792
 
sections.
793
 
.RE
794
 
.RS 4
795
 
.RE
796
 
.SH "COPYRIGHT"
797
 
.IX Header "COPYRIGHT"
798
 
Copyright (c) 2001\-2003 by Tobias Oetiker. All right reserved.
799
 
.SH "LICENSE"
800
 
.IX Header "LICENSE"
801
 
This program is free software; you can redistribute it
802
 
and/or modify it under the terms of the \s-1GNU\s0 General Public
803
 
License as published by the Free Software Foundation; either
804
 
version 2 of the License, or (at your option) any later
805
 
version.
806
 
.PP
807
 
This program is distributed in the hope that it will be
808
 
useful, but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied
809
 
warranty of \s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0
810
 
\&\s-1PURPOSE\s0.  See the \s-1GNU\s0 General Public License for more
811
 
details.
812
 
.PP
813
 
You should have received a copy of the \s-1GNU\s0 General Public
814
 
License along with this program; if not, write to the Free
815
 
Software Foundation, Inc., 675 Mass Ave, Cambridge, \s-1MA\s0
816
 
02139, \s-1USA\s0.
817
 
.SH "AUTHOR"
818
 
.IX Header "AUTHOR"
819
 
Tobias Oetiker <tobi@oetiker.ch>