Codebase list metche / upstream/1.1 metche.8
upstream/1.1

Tree @upstream/1.1 (Download .tar.gz)

metche.8 @upstream/1.1raw · history · blame

.\"     Title: metche
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\"      Date: 09/16/2006
.\"    Manual: 
.\"    Source: 
.\"
.TH "METCHE" "8" "09/16/2006" "" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
metche \- reducing root bus factor
.SH "SYNOPSIS"
.HP 7
\fBmetche\fR [\-h\ \fIvserver\fR] {[report\ [\ {[stable]\ |\ [testing]\ |\ [unstable]}\-\fIYYYYMMDDHHMM\fR\ ]] | [list] | [stabilize\ [testing\-\fIYYYYMMDDHHMM\fR]]}
.SH "DESCRIPTION"
.PP
metche is a tool meant to ease collective system administration by monitoring changes in the system configuration.
.PP
metche basic usage is to monitor changes in a directory, usually
\fI/etc\fR
; optionally, metche can also monitor:
.TP 3n
\(bu
one or more user maintained changelog files,
.TP 3n
\(bu
the state of Debian packages and versions.
.sp
.RE
.PP
metche should be installed with a cronjob that regularly runs to automatically save the system state as needed. These states are saved in a way similar to the Debian development model:
.TP 3n
\(bu
\fIunstable\fR
states are saved as soon as a change is detected. They are kept until a new
\fItesting\fR
state appears.
.TP 3n
\(bu
\fItesting\fR
states is created from the last
\fIunstable\fR
state that has not been changed after a short amount of time (by default, one hour). Old
\fIunstable\fR
states are deleted afterwards.
.TP 3n
\(bu
\fIstable\fR
states are created from the last
\fItesting\fR
state, either manually, or after a long amount of time (by default, 3 days). Old
\fItesting\fR
states are deleted afterwards.
.sp
.RE
.PP
When a new
\fItesting\fR
state is saved, an email is sent to a configurable address, giving an overwiew of the differences with the previous
\fItesting\fR. A notification is also sent when a new
\fIstable\fR
state is saved.
.PP
metche's configuration is read from
\fI/etc/metche.conf\fR. Various settings like changelog monitoring or time between system state switches are described there.
.SH "OPTIONS"
.PP
If
\fB\-h\fR
\fIVSERVER\fR
is specified, the VServer
\fIVSERVER\fR
is operated on instead of the host system. This, along with the
\fBVSNAMES\fR
option, allows to monitor several VServers running on the system.
.PP
One of the following commands must be specified on the command line:
.TP 3n
\fBreport\fR
When run with the
\fBreport\fR
command, metche displays a report against the specified saved state, or if unspecified, against the latest testing state. This is useful when you have broken your system and want to know which changes have been made since a given, known working, system state.
.TP 3n
\fBlist\fR
When run with the
\fBlist\fR
command, metche displays a list of all the saved states.
.TP 3n
\fBstabilize\fR
When run with the
\fBstabilize\fR
command, metche turns a "testing state" into a "stable state". By default, it will use the last "testing state", but this can be overriden by giving a specific state as argument.
.TP 3n
\fBcron\fR
This command should not be called manually, but used from a cronjob. When called, it can perform various operations like: saving "unstable", "testing" or "stable" states as needed and sending reports and notification if configured to do so. This command does not support the
\fB\-h\fR
option.
.SH "FILES"
.PP
\fI/etc/metche.conf\fR
contains metche configuration.
.PP
When configured to monitor one changelog,
\fBCHANGELOG_FILE\fR
(default:
\fI/root/Changelog\fR).
.PP
When configured to monitor multiple changelogs,
\fICHANGELOG_DIR/*/Changelog\fR
(default:
\fI/root/changelogs\fR).
.PP
System states are saved in
\fBBACKUP_DIR\fR
(default:
\fI/var/lib/metche)\fR.
.SH "SECURITY"
.PP
metche is able to use GnuPG to encrypt the email it sends, but does not by default; just enable the
\fBENCRYPT_EMAIL\fR
configuration option, and make sure
\fBEMAIL_ADDRESS\fR' public key is in root's keyring, trusted enough to be used blindly by metche.
.PP
When
\fBDO_DETAILS\fR
is enabled and
\fBENCRYPT_EMAIL\fR
is disabled, metche sends in
\fIclear text email\fR
the changes made to the watched directory... either make sure that the
\fBEXCLUDES\fR
configuration variable prevents it to send sensitive information, or triple check that secure connections will be used end\-to\-end on the email path. If unsure, set
\fBEMAIL_ADDRESS\fR
configuration variable to a local mailbox. Please note that
\fBEMAIL_ADDRESS\fR
is not used for VServers: a VServer's report messages are sent to its root email address.
.PP
metche stores, in
\fBBACKUP_DIR\fR
(default :
\fI/var/lib/metche\fR), various backups of
\fBWATCHED_DIR\fR. Make sure that this backup place is at least as secured as the source.
.SH "BUGS"
.PP
See
[1]\&\fImetche's ticket system\fR
for known bugs, missing features, and the development road\-map.
.SH "AUTHOR"
.PP
metche and this manual page were written by the boum.org collective
<metche@lists.riseup.net>.
.SH "REFERENCES"
.TP 3
1.\ metche's ticket system
\%https://poivron.org/dev/metche/