Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod5 / afsmonitor.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3afsmonitor - Provides instructions for the afsmonitor command
4
5=head1 DESCRIPTION
6
7The afsmonitor configuration file determines which machines the
8B<afsmonitor> command probes for File Server or Cache Manager statistics
9and which statistics it gathers. Use the B<-config> argument to the
10B<afsmonitor> command to identify the configuration file to use.
11
12The instructions that can appear in the configuration file are as follows:
13
14=over 4
15
16=item cm <I<host name>>
17
18Names a client machine for which to display Cache Manager statistics. The
19order of C<cm> lines in the file determines the order in which client
20machines appear from top to bottom on the C<System Overview> and C<Cache
21Managers> output screens.
22
23=item fs <I<host name>>
24
25Names a file server machine for which to display File Server
26statistics. The order of C<fs> lines in the file determines the order in
27which file server machines appear from top to bottom on the C<System
28Overview> and C<File Servers> output screens.
29
30=item thresh (fs | cm) <I<field>> <I<thresh>> [<I<cmd>>] [<I<arg>> ...]
31
32Assigns the threshold value I<thresh> to the statistic I<field>, for
33either a File Server statistic (C<fs>) or a Cache Manager statistic
34(C<cm>). The optional I<cmd> field names a binary or script to execute
35each time the value of the statistic changes from being below I<thresh> to
36being at or above I<thresh>. A change between two values that both exceed
37I<thresh> does not retrigger the binary or script. The optional I<arg>
38fields are additional values that the B<afsmonitor> program passes as
39arguments to the I<cmd> command. If any of them include one or more
40spaces, enclose the entire field in double quotes.
41
42The B<afsmonitor> program passes the following parameters to the I<cmd>:
43
44 <hostname> (fs|cm) <field> <thresh> <actual> [<arg> ...]
45
46The parameters C<fs>, C<cm>, <field>, <thresh>, and <arg> correspond to
47the values with the same name on the thresh line. The <hostname> parameter
48identifies the file server or client machine where the statistic has
49crossed the threshold, and the <actual> parameter is the actual value of
50<field> that exceeds the threshold value.
51
52Use the C<thresh> line to set either a global threshold, which applies to
53all file server machines listed on C<fs> lines or client machines listed
54on C<cm> lines in the configuration file, or a machine-specific threshold,
55which applies to only one file server or client machine.
56
57=over 4
58
59=item *
60
61To set a global threshold, place the thresh line before any of the C<fs>
62or C<cm> lines in the file.
63
64=item *
65
66To set a machine-specific threshold, place the thresh line below the
67corresponding C<fs> or C<cm> line, and above any other C<fs> or C<cm>
68lines. A machine-specific threshold value always overrides the
69corresponding global threshold, if set. Do not place a C<thresh fs> line
70directly after a C<cm> line or a C<thresh cm> line directly after a C<fs>
71line.
72
73=back
74
75=item show (fs | cm) I<field/group/section>
76
77Specifies which individual statistic, group of statistics, or section of
78statistics to display on the C<File Servers> screen (C<fs>) or C<Cache
79Managers> screen (C<cm>) and the order in which to display them. The
80appendix of B<afsmonitor> statistics in the I<OpenAFS Administration
81Guide> specifies the group and section to which each statistic
82belongs. Include as many C<show> lines as necessary to customize the
83screen display as desired, and place them anywhere in the file. The
84top-to-bottom order of the C<show> lines in the configuration file
85determines the left-to-right order in which the statistics appear on the
86corresponding screen.
87
88If there are no C<show> lines in the configuration file, then the screens
89display all statistics for both Cache Managers and File
90Servers. Similarly, if there are no C<show fs> lines, the C<File Servers>
91screen displays all file server statistics, and if there are no C<show cm>
92lines, the C<Cache Managers> screen displays all client statistics.
93
94=item # I<comments>
95
96Precedes a line of text that the afsmonitor program ignores because of the
97initial number (C<#>) sign, which must appear in the very first column of
98the line.
99
100=item B<version>
101
102Print the OpenAFS command suite version and then exit.
103
104=back
105
106For a list of the values that can appear in the I<field/group/section>
107field of a C<show> instruction, see the B<afsmonitor> statistics appendix
108to the I<OpenAFS Administration Guide>.
109
110=head1 SEE ALSO
111
112L<afsmonitor(1)>
113
114=head1 COPYRIGHT
115
116IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
117
118This documentation is covered by the IBM Public License Version 1.0. It was
119converted from HTML to POD by software written by Chas Williams and Russ
120Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.