36 | 36 |
<refsect1 id="description">
|
37 | 37 |
|
38 | 38 |
<title>DESCRIPTION</title>
|
39 | |
<Para>metche is a tool meant to facilitate collective sysadmin, by
|
40 | |
monitoring changes in the system configuration. At least
|
41 | |
<envar>WATCHED_DIR</envar> (default: <filename>/etc</filename>) is
|
42 | |
monitored ; optionally, metche can also monitor :</Para>
|
|
39 |
|
|
40 |
<Para>metche is a tool meant to facilitate collective sysadmin by
|
|
41 |
monitoring changes in the system configuration.</Para>
|
|
42 |
|
|
43 |
<Para>At least, metche monitors one directory, usually
|
|
44 |
<filename>/etc</filename> ; optionally, metche can also
|
|
45 |
monitor:</Para>
|
43 | 46 |
<ItemizedList>
|
44 | 47 |
<ListItem>
|
45 | |
<Para>system Changelog files located in <filename><envar>CHANGELOG_DIR</envar>/*/Changelog</filename> (default:
|
46 | |
<filename>/root/changelogs/*/Changelog</filename>)</Para>
|
|
48 |
<Para>one ore more user maintained changelog files,
|
47 | 49 |
</ListItem>
|
48 | 50 |
<ListItem>
|
49 | |
<Para>Debian packages states and versions</Para>
|
|
51 |
<Para>Debian packages states and versions.</Para>
|
50 | 52 |
</ListItem>
|
51 | 53 |
</ItemizedList>
|
52 | 54 |
|
|
55 |
<Para>metche should be installed with a cronjob regularly running to
|
|
56 |
automatically save the system state as needed. These states are saved in a
|
|
57 |
way looking like the Debian development model:</Para>
|
|
58 |
<ItemizedList>
|
|
59 |
<ListItem>
|
|
60 |
<Para><emphasis>unstable</emphasis> states are saved as soon as
|
|
61 |
a change is detected. They are kept until a new
|
|
62 |
<emphasis>testing</emphasis> state appears.</Para>
|
|
63 |
</ListItem>
|
|
64 |
<ListItem>
|
|
65 |
<Para><emphasis>testing</emphasis> states is created from the last
|
|
66 |
<emphasis>unstable</emphasis> state that has not been changed
|
|
67 |
after a short amount of time (by default, one hour). Old
|
|
68 |
<emphasis>unstable</emphasis> states are deleted afterwards.</Para>
|
|
69 |
</ListItem>
|
|
70 |
<ListItem>
|
|
71 |
<Para><emphasis>stable</emphasis> states are created from the last
|
|
72 |
<emphasis>testing</emphasis> state, either manually, or after a
|
|
73 |
long amount of time (by default, 3 days). Old <emphasis
|
|
74 |
>testing</emphasis> states are deleted afterwards.</Para>
|
|
75 |
</ListItem>
|
|
76 |
</ItemizedList>
|
|
77 |
|
|
78 |
<Para>When a new <emphasis>testing</emphasis> state is saved, an email is
|
|
79 |
sent to a configurable address, giving an overwiew of
|
|
80 |
the differences with the previous <emphasis>testing</emphasis>.
|
|
81 |
A notification is also sent when a new <emphasis>stable</emphasis> state is
|
|
82 |
saved.</Para>
|
|
83 |
|
|
84 |
<!-- XXX: add a CONFIGURATION section -->
|
53 | 85 |
<Para><envar>WATCHED_DIR</envar> and <envar>CHANGELOG_DIR</envar> options
|
54 | 86 |
can me customized in metche's configuration file, as well as a few other
|
55 | 87 |
ones.</Para>
|
|
88 |
|
|
89 |
</refsect1>
|
|
90 |
<refsect1 id="options">
|
|
91 |
|
|
92 |
<title>OPTIONS</title>
|
56 | 93 |
|
57 | 94 |
<Para>If <command>-h</command> <emphasis>HOST</emphasis> is specified,
|
58 | 95 |
<filename>/etc/metche/HOST.conf</filename> is used instead of
|
|
60 | 97 |
<envar>VSERVER_EXEC_PREFIX</envar> option, allows to monitor several
|
61 | 98 |
vservers running on a system.</Para>
|
62 | 99 |
|
63 | |
<Para>Anyway, one of the following commands has to be specified on the
|
64 | |
command line :</Para>
|
|
100 |
<Para>One of the following commands must be specified on the
|
|
101 |
command line:</Para>
|
65 | 102 |
|
66 | 103 |
<VariableList>
|
67 | 104 |
|
|
83 | 120 |
<VarListEntry><Term><command>stabilize</command></Term>
|
84 | 121 |
<ListItem>
|
85 | 122 |
<Para>When run with the <command>stabilize</command> command, metche
|
86 | |
turns the given "testing state", if specified, or the latest one,
|
87 | |
otherwise, into a "stable state".</Para>
|
|
123 |
turns a "testing state" into a "stable state". By default, it will
|
|
124 |
use the last "testing state", but this can be overriden by giving
|
|
125 |
a specific state as argument.</Para>
|
88 | 126 |
</ListItem>
|
89 | 127 |
|
90 | 128 |
<VarListEntry><Term><command>cron</command></Term>
|
91 | 129 |
<ListItem>
|
92 | |
<Para>When run (usually by a cronjob) with the <command>cron</command> command, metche :
|
93 | |
<ItemizedList>
|
94 | |
<ListItem>
|
95 | |
<Para>saves a "unstable", "testing", "stable" state, or none, as
|
96 | |
needed ;</Para>
|
97 | |
</ListItem>
|
98 | |
<ListItem>
|
99 | |
<Para>sends you a report if needed (see <ulink
|
100 | |
url="https://poivron.org/dev/metche/">metche's homepage</ulink>
|
101 | |
for an example) ;</Para>
|
102 | |
</ListItem>
|
103 | |
</ItemizedList>
|
104 | |
The following algorithm is used to decide exactly what to do :
|
105 | |
<screen>
|
106 | |
if (no change happened for TESTING_TIME) then
|
107 | |
if (something has changed since the last testing) then
|
108 | |
send a report against last testing
|
109 | |
save a new testing state
|
110 | |
delete all saved unstable states
|
111 | |
elif (no change happened for STABLE_TIME) then
|
112 | |
if (something has changed since the last stable) then
|
113 | |
save a new stable state and notify EMAIL_ADDRESS
|
114 | |
delete all saved testing states older than STABLE_TIME
|
115 | |
fi
|
116 | |
fi
|
117 | |
elif (last unstable exists) then
|
118 | |
if (something has changed since the last unstable) then
|
119 | |
save a new unstable state
|
120 | |
fi
|
121 | |
else
|
122 | |
save a new unstable state
|
123 | |
fi
|
124 | |
</screen>
|
125 | |
</Para>
|
|
130 |
<Para>This command should not be called manually, but used from
|
|
131 |
a cronjob. When called, it can perform various operations like:
|
|
132 |
saving "unstable", "testing" or "stable" states as needed and
|
|
133 |
sending reports and notification if configured to do so.</Para>
|
126 | 134 |
</ListItem>
|
127 | 135 |
|
128 | 136 |
</VariableList>
|
|
163 | 171 |
|
164 | 172 |
<refsect1 id="bugs"><title>BUGS</title>
|
165 | 173 |
<Para>See <ulink url="https://poivron.org/dev/metche/">metche's ticket
|
166 | |
system</ulink> to see the bugs, missing features, and development
|
167 | |
road-map.</Para>
|
|
174 |
system</ulink> to see the bugs, missing features, and development
|
|
175 |
road-map.</Para>
|
168 | 176 |
</refsect1>
|
169 | 177 |
|
170 | 178 |
<refsect1 id="author"><title>AUTHOR</title>
|
171 | |
<Para>This manual page was written by Ben Voui
|
172 | |
<email>intrigeri@boum.org</email>.</Para>
|
|
179 |
<Para>This manual page was written by the boum collective
|
|
180 |
<email>boum@anargeek.net</email>.</Para>
|
173 | 181 |
</refsect1>
|
174 | 182 |
|
175 | 183 |
</RefEntry>
|