~ubuntu-branches/ubuntu/hardy/mon/hardy-security

« back to all changes in this revision

Viewing changes to doc/monshow.1

  • Committer: Bazaar Package Importer
  • Author(s): Roderick Schertler
  • Date: 2001-09-15 08:46:38 UTC
  • Revision ID: james.westby@ubuntu.com-20010915084638-cm3jl93lnhp6cdwg
Tags: upstream-0.99.2
ImportĀ upstreamĀ versionĀ 0.99.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" $Id: monshow.1 1.4 Tue, 31 Jul 2001 15:54:49 -0400 trockij $
 
2
.TH monshow 1 "$Date: Tue, 31 Jul 2001 15:54:49 -0400 $" Linux "monshow"
 
3
.SH NAME
 
4
monshow \- show operational status of mon server.
 
5
.SH SYNOPSIS
 
6
.B monshow
 
7
.RB [ \-\-help ]
 
8
.RB [ \-\-showall ]
 
9
.RB [ \-\-full ]
 
10
.RB [ \-\-disabled ]
 
11
.RB [ \-\-detail
 
12
.IR group,service ]
 
13
.RB [ \-\-view
 
14
.IR name ]
 
15
.RB [ \-\-auth ]
 
16
.RB [ \-\-login
 
17
.IR user ]
 
18
.RB [ \-\-old ]
 
19
.RB [ \-\-server
 
20
.IR hostname ]
 
21
.RB [ \-\-port
 
22
.IR portnum ]
 
23
.RB [ \-\-prot
 
24
.IR protocol ]
 
25
.RB [ \-\-rcfile
 
26
.IR file ]
 
27
.SH DESCRIPTION
 
28
.B monshow
 
29
show the operational status of the
 
30
.B mon
 
31
server. Both command-line and CGI interfaces are available.
 
32
.SH OPTIONS
 
33
.TP
 
34
.B \-\-help
 
35
show help
 
36
.\"
 
37
.\"
 
38
.\"
 
39
.TP
 
40
.B \-\-showall
 
41
Do not read configuration file, and show operational status of all groups
 
42
and services.
 
43
.\"
 
44
.\"
 
45
.\"
 
46
.TP
 
47
.B \-\-full
 
48
Instead of showing only failed services, show all services no matter the
 
49
state.
 
50
.\"
 
51
.TP
 
52
.BI \-\-detail\  group,service
 
53
Display detailed information for
 
54
.I group
 
55
and
 
56
.IR service .
 
57
This includes description, detailed output of the monitor,
 
58
dependency information, and more. When invoked via CGI,
 
59
append "detail=group,service" to get detail for a service.
 
60
.\"
 
61
.TP
 
62
.BI "--view " name
 
63
Display a pre-configured view. When invoked via CGI, supply
 
64
the arguments "view=name" in the URL, or by using this technique:
 
65
"http://monhost/monshow.cgi/name". For security reasons,
 
66
leading forward slashes and imbedded ".."s are removed from the
 
67
view name.
 
68
.\"
 
69
.TP
 
70
.B \-\-auth
 
71
Authenticate client to the mon server.
 
72
.\"
 
73
.\"
 
74
.\"
 
75
.TP
 
76
.B \-\-disabled
 
77
Show disabled groups, services, and hosts. The default is to not show
 
78
anything which is disabled, but this may be overridden by the config file.
 
79
.\"
 
80
.\"
 
81
.\"
 
82
.TP
 
83
.BI "--server " hostname
 
84
Connect to the mon server on host
 
85
.IR hostname .
 
86
.I hostname
 
87
can be either the name of a host or an IP address.
 
88
If this name is not supplied by this argument, then the environment variable
 
89
.I MONHOST
 
90
is used, if it exists. Otherwise,
 
91
.I monshow
 
92
will fail.
 
93
.\"
 
94
.\"
 
95
.\"
 
96
.TP
 
97
.BI \-\-login \ username
 
98
When authenticating, use
 
99
.IR username .
 
100
.\"
 
101
.\"
 
102
.\"
 
103
.TP
 
104
.BI \-\-port \ portnum
 
105
Connect to the server on
 
106
.BR portnum .
 
107
.\"
 
108
.\"
 
109
.\"
 
110
.TP
 
111
.BI \-\-prot \ protocol
 
112
Sets the protocol to
 
113
.IR protocol .
 
114
The protocol must match the format "1.2.3". If unset, the default
 
115
supplied by the Mon::Client module is used. Do not use this parameter
 
116
unless you really know what you are doing.
 
117
.\"
 
118
.\"
 
119
.\"
 
120
.TP
 
121
.B \-\-old
 
122
Use the old 0.37 protocol and port number (32777).
 
123
.\"
 
124
.\"
 
125
.\"
 
126
.TP
 
127
.BI \-\-rcfile \ file
 
128
Use configuration file
 
129
.I file
 
130
instead of ~/.monshowrc.
 
131
 
 
132
.SH CGI INVOCATION
 
133
If
 
134
.B monshow
 
135
is invoked with the "REQUEST_METHOD" environment variable
 
136
set, then CGI invocation is assumed. In that case,
 
137
.B monshow
 
138
gathers variables and commands submitted via the
 
139
POST method and QUERY_STRING. Command-line options
 
140
are ignored for security reasons.
 
141
 
 
142
All reports which are produced via the web interface have a text mode
 
143
equivalent.
 
144
 
 
145
.SH VIEWS
 
146
 
 
147
A view is a pre-defined configuration supplied to
 
148
.BR monshow .
 
149
Views can be used to generate different reports of the status
 
150
of certain services for different audiences. They are especially useful
 
151
if you are monitoring hundreds of things with mon, and you need to
 
152
see only a subset of the overall operational status.
 
153
For example, the web server admins can see a report which
 
154
has only the web server statuses, and the file server admins can
 
155
have their own report which shows only the servers. Users can customize
 
156
their own views by editing their own configurations.
 
157
 
 
158
Views are stored as files in a system-wide directory, typically
 
159
.IR /etc/mon/monshow ,
 
160
where each file specifies one view. If this path is not suitable
 
161
for any reason, it can be changed by modifying the
 
162
.B $VIEWPATH
 
163
variable in the
 
164
.B monshow
 
165
script.
 
166
 
 
167
When invoking
 
168
.B monshow
 
169
from the command line, the view to display is specified by the
 
170
.BI "--view=" name
 
171
argument. 
 
172
 
 
173
In the case of CGI invocation, views can be specified by
 
174
appending either
 
175
.I "?view=name"
 
176
or
 
177
.I "/name"
 
178
to the URL. For example, the following are equivalent:
 
179
 
 
180
.I "http://monhost/monshow.cgi?view=test"
 
181
.br
 
182
.I "http://monhost/monshow.cgi/test"
 
183
 
 
184
If a view is not specified, then a default configuration will be
 
185
loaded from
 
186
.I "$HOME/.monshowrc"
 
187
(command-line invocation) or
 
188
.I "cgi-path/.monshowrc"
 
189
(CGI invocation).
 
190
 
 
191
.SH VIEW CONFIGURATION FILE
 
192
 
 
193
The view file contains a list of which services
 
194
to display, how to display them, and a number of other parameters.
 
195
Blank lines and lines beginning with a # (pound) are ignored.
 
196
 
 
197
.TP
 
198
.BI "watch" " group"
 
199
Include the status of all the services for "group".
 
200
.\"
 
201
.TP
 
202
.BI "service" " group service"
 
203
Include the status of the service specified by
 
204
.I group
 
205
and
 
206
.IR service .
 
207
.\"
 
208
.P
 
209
If no
 
210
.B watch
 
211
or
 
212
.B service
 
213
configuration lines are present, then the status of all groups
 
214
and services are displayed.
 
215
.\"
 
216
.TP
 
217
.B "set show-disabled"
 
218
This has the same effect as using
 
219
the
 
220
.B \-\-disabled
 
221
option.
 
222
.\"
 
223
.TP
 
224
.BI "set host" " hostname"
 
225
Query the mon server
 
226
.IR hostname .
 
227
.\"
 
228
.TP
 
229
.BI "set port" " number"
 
230
The TCP port which the mon server is listening on.
 
231
.\"
 
232
.TP
 
233
.BI "set prot" " protocol"
 
234
Set the protocol. This probably should not be used unless
 
235
you really know what you're doing.
 
236
.\"
 
237
.TP
 
238
.B "set full"
 
239
Show everything disabled, all failures, all successes, and all
 
240
untested services.
 
241
.\"
 
242
.TP
 
243
.BI "set bg" " color"
 
244
Background color for the CGI report. The value of this
 
245
parameter should resemble "d5d5d5" (without the quotes).
 
246
.\"
 
247
.TP
 
248
.BI "set bg-ok" " color"
 
249
Background color for services which are in an "ok" state.
 
250
.\"
 
251
.TP
 
252
.BI "set bg-fail" " color"
 
253
Background color for services which are failing.
 
254
.\"
 
255
.TP
 
256
.BI "set bg-untested" " color"
 
257
Background color for services which have yet to be tested.
 
258
.\"
 
259
.TP
 
260
.BI "set refresh" " seconds"
 
261
For CGI output, set the frequency that the report reloads.
 
262
The default is to not reload.
 
263
.\"
 
264
.TP
 
265
.BI "summary-len" " len"
 
266
For CGI output, set the maximum length of the summary output
 
267
to display. Summary text which exceeds
 
268
.I len
 
269
will be truncated and replaced with ellipses.
 
270
.\"
 
271
.TP
 
272
.BI "link" " group service URL"
 
273
For the CGI report, make a link to
 
274
.I URL
 
275
at the bottom of the detail report for
 
276
.I "group/service"
 
277
for more information.
 
278
.\"
 
279
.TP
 
280
.BI "link-text" " group service"
 
281
Insert all HTML up until a line beginning with "END"
 
282
after the link specified
 
283
with the
 
284
.B "link"
 
285
setting.
 
286
.\"
 
287
.TP
 
288
.B "set html-header"
 
289
Lines after this statement, continuing up until a line beginning
 
290
with the word "END" will be displayed after the "</head>" tag
 
291
in the CGI output. Use this to display custom headers, including
 
292
images and other fancy things.
 
293
 
 
294
.SH "ENVIRONMENT VARIABLES"
 
295
 
 
296
.IP MONHOST
 
297
The hostname of the server which runs the
 
298
.B mon
 
299
process.
 
300
 
 
301
.SH SEE ALSO
 
302
mon(8)
 
303
.SH BUGS
 
304
Report bugs to the email address below.
 
305
.SH AUTHOR
 
306
Jim Trocki <trockij@transmeta.com>