1
SMOKEPING_CONFIG(1) SmokePing SMOKEPING_CONFIG(1)
5
OOOOVVVVEEEERRRRVVVVIIIIEEEEWWWW
6
SmokePing takes its configuration from a single central
7
configuration file. Its location must be hardcoded in the
8
smokeping script and smokeping.cgi.
10
The contents of this manual is generated directly from the
11
configuration file parser.
13
The Parser for the Configuration file is written using
14
David Schweikers ParseConfig module. Read all about it in
15
the ISG::ParseConfig manpage.
17
The Configuration file has a tree-like structure with sec-
18
tion headings at various levels. It also contains variable
19
assignements and tables.
21
RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEE
22
The text below describes the syntax of the SmokePing con-
25
************ GGGGeeeennnneeeerrrraaaallll ************ _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
27
General configuration values valid for the whole SmokePing
30
The following variables can be set in this section:
32
oooowwwwnnnneeeerrrr _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
33
Name of the person responsible for this smokeping
36
iiiimmmmggggccccaaaacccchhhheeee _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
37
A directory which is visible on your webserver where
38
SmokePing can cache graphs.
40
iiiimmmmgggguuuurrrrllll _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
41
Either an absolute URL to the iiiimmmmggggccccaaaacccchhhheeee directory or
42
one relative to the directory where you keep the
45
ddddaaaattttaaaaddddiiiirrrr _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
46
The directory where SmokePing can keep its rrd files.
48
ppppiiiiddddddddiiiirrrr _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
49
The directory where SmokePing keeps its pid when
52
sssseeeennnnddddmmmmaaaaiiiillll
53
Path to your sendmail binary. It will be used for
54
sending mails in connection with the support of
57
ssssmmmmooookkkkeeeemmmmaaaaiiiillll _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
58
Path to the mail template for DYNAMIC hosts. This mail
59
template must contain keywords of the form <<<<########_k_e_y_-
60
_w_o_r_d########>>>>. There is a sample template included with
63
ccccggggiiiiuuuurrrrllll _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
64
Complete URL path of the SmokePing.cgi
68
mmmmaaaaiiiillllhhhhoooosssstttt
69
Instead of using sendmail, you can specify the name of
70
an smtp server and use perl's Net::SMTP module to send
71
mail to DYNAMIC host owners (see below).
73
ccccoooonnnnttttaaaacccctttt _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
74
Mail address of the person responsible for this
75
smokeping installation.
77
************ DDDDaaaattttaaaabbbbaaaasssseeee ************ _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
79
Describes the properties of the round robin database for
80
storing the SmokePing data. Note that it is not possible
81
to edit existing RRDs by changeing the entries in the cfg
84
The following variables can be set in this section:
86
sssstttteeeepppp _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
87
Duration of the base operation interval of SmokePing
88
in seconds. SmokePing will venture out every sssstttteeeepppp
89
seconds to ping your target hosts.
91
ppppiiiinnnnggggssss _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
92
How many pings should be sent to each target. Sug-
95
This section also contains a table describing the setup of
96
the SmokePing database. Below are reasonable defaults.
97
Only change them if you know rrdtool and its workings.
98
Each row in the table describes one RRA.
100
# cons xff steps rows
111
Consolidation method.
114
What part of the consolidated intervals must be known
115
to warrant a known entry.
118
How many sssstttteeeeppppssss to consolidate into for each RRA entry.
121
How many rrrroooowwwwssss this RRA should have.
123
************ PPPPrrrreeeesssseeeennnnttttaaaattttiiiioooonnnn ************ _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
125
Defines how the SmokePing data should be presented.
127
The following variables can be set in this section:
129
tttteeeemmmmppppllllaaaatttteeee _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
130
The webpage template must contain keywords of the form
131
<<<<########_k_e_y_w_o_r_d########>>>>. There is a sample template included
132
with SmokePing; use it as the basis for your
133
experiments. Default template contains a pointer to
134
the SmokePing counter and homepage. I would be glad if
135
you would not remove this as it gives me an indication
136
as to how widely used the tool is.
138
cccchhhhaaaarrrrsssseeeetttt
139
By default, SmokePing assumes the 'iso-8859-15' char-
140
acter set. If you use something else, this is the
143
The following sections are valid on level 1:
145
++++oooovvvveeeerrrrvvvviiiieeeewwww _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
146
The Overview section defines how the Overview graphs
149
The following variables can be set in this section:
151
wwwwiiiiddddtttthhhh _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
152
Width of the Overview Graphs.
154
hhhheeeeiiiigggghhhhtttt _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
155
Height of the Overview Graphs.
158
How much time should be depicted in the Overview
159
graph. Time must be specified as a number followed
160
by a letter which specifies the unit of time.
161
Known units are: sssseconds, mmmminutes, hhhhours, dddddays,
164
mmmmaaaaxxxx____rrrrtttttttt
165
Any roundtrip time larger than this value will
166
cropped in the overview graph
168
mmmmeeeeddddiiiiaaaannnn____ccccoooolllloooorrrr
169
By default the median line is drawn in red. Over-
170
ride it here with a hex color in the format
173
ssssttttrrrrffffttttiiiimmmmeeee
174
Use posix strftime to format the timestamp in the
175
left hand lower corner of the overview graph
177
++++ddddeeeettttaaaaiiiillll _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
178
The following variables can be set in this section:
180
wwwwiiiiddddtttthhhh _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
181
How many pixels wide should detail graphs be
183
hhhheeeeiiiigggghhhhtttt _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
184
How many pixels high should detail graphs be
186
llllooooggggaaaarrrriiiitttthhhhmmmmiiiicccc
187
should the graphs be shown in a logarithmic scale
190
uuuunnnniiiissssoooonnnn____ttttoooolllleeeerrrraaaannnncccceeee
191
if a graph is more than this factor of the median
192
'max' it drops out of the unison scaling algo-
193
rithm. A factor of two would mean that any graph
194
with a max either less than half or more than
195
twice the median 'max' will be dropped from unison
200
mmmmaaaaxxxx____rrrrtttttttt
201
Any roundtrip time larger than this value will
202
cropped in the detail graph
204
ssssttttrrrrffffttttiiiimmmmeeee
205
Use posix strftime to format the timestamp in the
206
left hand lower corner of the detail graph
208
The detailed display can contain several graphs of
209
different resolution. In this table you can specify
210
the resolution of each graph.
221
Description of the particular resolution.
224
How much time should be depicted. The format is
225
the same as for the aaaaggggeeee parameter of the Overview
228
The following sections are valid on level 2:
230
++++++++lllloooossssssss____ccccoooolllloooorrrrssss
231
In the Detail view, the color of the median line
232
depends the amount of lost packets. SmokePing
233
comes with a reasonable default setting, but you
234
may choose to disagree. The table below lets you
235
specify your own coloring.
246
Activate when the lossrate is larger of equal
250
Color for this range.
253
Description for this range.
255
++++++++uuuuppppttttiiiimmmmeeee____ccccoooolllloooorrrrssss
256
When monitoring a host with DYNAMIC addressing,
257
SmokePing will keep track of how long the machine
258
is able to keep the same IP address. This time is
259
plotted as a color in the graphs background.
260
SmokePing comes with a reasonable default setting,
261
but you may choose to disagree. The table below
262
lets you specify your own coloring
270
1000000000000 ffff00 ">1w"
275
Activate when uptime in days is larger of
279
Color for this uptime range range.
282
Description for this range.
284
************ PPPPrrrroooobbbbeeeessss ************ _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
286
The Probes Section configures Probe modules. Probe modules
287
integrate an external ping command into SmokePing. Check
288
the documentation of the Ping module for configuration
291
The following sections are valid on level 1:
293
++++////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
294
Each module can take specific configuration informa-
295
tion from this area. The jumble of letters above is a
296
regular expression defining legal module names.
298
The following variables can be set in this section:
300
////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
301
Each module defines which variables it wants to
302
accept. So this expression here just defines legal
305
************ TTTTaaaarrrrggggeeeettttssss ************ _(_m_a_n_d_a_t_o_r_y _s_e_c_t_i_o_n_)
307
The Target Section defines the actual work of SmokePing.
308
It contains a hierarchical list of hosts which mark the
309
endpoints of the network connections the system should
310
monitor. Each section can contain one host as well as
313
The following variables can be set in this section:
315
pppprrrroooobbbbeeee _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
316
The name of the probe module to be used for this host.
317
The value of this variable gets propagated
319
mmmmeeeennnnuuuu _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
320
Menu entry for this section
322
ttttiiiittttlllleeee _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
323
Title of the page when it is displayed.
325
rrrreeeemmmmaaaarrrrkkkk
326
An optional remark on the current section. It gets
327
displayed on the webpage.
329
The following sections are valid on level 1:
332
++++PPPPRRRROOOOBBBBEEEE____CCCCOOOONNNNFFFF
333
Probe specific variables.
335
The following variables can be set in this section:
337
////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
338
Should be found in the documentation of the corre-
339
sponding probe. The values get propagated. If a
340
child node uses the same Probe as the parent.
342
++++////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
343
Each target section can contain information about a
344
host to monitor as well as further target sections.
345
Most variables have already been described above. The
346
expression above defines legal names for target sec-
349
The following variables can be set in this section:
352
mmmmeeeennnnuuuu _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
353
ttttiiiittttlllleeee _(_m_a_n_d_a_t_o_r_y _s_e_t_t_i_n_g_)
355
Some information about this entry which does NOT
356
get displayed on the web.
359
This is the contact address for the owner of the
360
current host. In connection with the DDDDYYYYNNNNAAAAMMMMIIIICCCC
361
hosts, the address will be used for sending the
362
belowmentioned script.
365
Can either contain the name of a target host or
366
the string DDDDYYYYNNNNAAAAMMMMIIIICCCC.
368
In the second case, the target machine has a
369
dynamic IP address and thus is required to regu-
370
larly contact the SmokePing server to verify its
371
IP address. When starting SmokePing with the com-
372
mandline argument --------eeeemmmmaaaaiiiillll it will add a secret
373
password to each of the DDDDYYYYNNNNAAAAMMMMIIIICCCC host lines and
374
send a script to the owner of each host. This
375
script must be started regularly on the host in
376
question to make sure SmokePing monitors the right
377
box. If the target machine supports SNMP SmokePing
378
will also query the hosts sysContact, sysName and
379
sysLocation properties to make sure it is still
382
rrrreeeemmmmaaaarrrrkkkk
384
The following sections are valid on level 2:
386
++++++++PPPPRRRROOOOBBBBEEEE____CCCCOOOONNNNFFFF
387
Probe specific variables.
389
The following variables can be set in this sec-
392
////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
393
Should be found in the documentation of the
394
corresponding probe. The values get propa-
395
gated. If a child node uses the same Probe as
398
++++++++////[[[[----____0000----9999aaaa----zzzzAAAA----ZZZZ]]]]++++////
399
Each target section can contain information about
400
a host to monitor as well as further target sec-
401
tions. Most variables have already been described
402
above. The expression above defines legal names
405
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
406
Copyright (c) 2001 by Tobias Oetiker. All right reserved.
408
LLLLIIIICCCCEEEENNNNSSSSEEEE
409
This program is free software; you can redistribute it
410
and/or modify it under the terms of the GNU General Public
411
License as published by the Free Software Foundation;
412
either version 2 of the License, or (at your option) any
415
This program is distributed in the hope that it will be
416
useful, but WITHOUT ANY WARRANTY; without even the implied
417
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
418
PURPOSE. See the GNU General Public License for more
421
You should have received a copy of the GNU General Public
422
License along with this program; if not, write to the Free
423
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
426
AAAAUUUUTTTTHHHHOOOORRRR
427
Tobias Oetiker <tobi@oetiker.ch>
431
2002-03-27 1.6 SMOKEPING_CONFIG(1)