File: README

package info (click to toggle)
metche 1%3A1.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 368 kB
  • ctags: 72
  • sloc: sh: 1,925; makefile: 23
file content (129 lines) | stat: -rw-r--r-- 5,926 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
metche - reducing root bus factor
homepage: https://labs.riseup.net/code/projects/metche
Git repository: git://labs.riseup.net/metche.git
dev team: metche AT lists DOT riseup DOT net

,-------------------------------------------------------------------------------
| Copyright (C) 2004-2006 boum.org collective - property is theft !
| Copyright (C) 2009-2011 metche developers <metche@lists.riseup.net>
`-------------------------------------------------------------------------------

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA.

,-------------------------------------------------------------------------------
| OVERVIEW
`-------------------------------------------------------------------------------

metche is a tool meant to ease collective system administration. It does
periodically :
   - save the "system state" of 
      . $WATCHED_DIR (default: /etc)
      . $CHANGELOG_FILE (default /root/Changelog)
        or $CHANGELOG_DIR/*/Changelog (default: /root/changelogs/*/Changelog)
      . Debian packages states and versions if $DO_PACKAGES is set to "yes"
        (default: no)
     to $BACKUP_DIR (default: /var/lib/metche).
   - send a nicely formatted email to a defined email address, listing the last
     changes that have been made to the system.
     See https://labs.riseup.net/code/projects/metche for an example.

,-------------------------------------------------------------------------------
| BASIC USAGE
`-------------------------------------------------------------------------------

When installed and configured, metche is run by a cron job. You just have to
read the report emails. Of course it's not useful at all if you don't:
   - set the $EMAIL_ADDRESS config variable to your sysadmins' collective 
     mailing-list or email address;
   - use the Changelog files in a rigorous way.

Note: It is dangerous to use metche without reading the SECURITY section
of the manpage before.

For further explanation of the way metche works, read the metche(8) manpage and
the FAQ file.

,-------------------------------------------------------------------------------
| REQUIREMENTS
`-------------------------------------------------------------------------------

   * Debian GNU/Linux and apt-show-versions (if Debian package monitoring is
     enabled)
   * mutt or mail or sendmail
   * bzip2
   * If you want metche to encrypt the email it sends: gnupg
   * If you want metche to monitor your vservers as well: util-vserver tools
   * If you want metche to monitor one manually written Changelog file,
     it must be located at $CHANGELOG_FILE.
_or_ If you want metche to monitor multiple manually written Changelog
     files, they must be located in $CHANGELOG_DIR/*/Changelog;
     for example this way:
        /root/
            changelogs/
                common/Changelog
                apache/Changelog
                postfix/Changelog

,-------------------------------------------------------------------------------
| INSTALLATION
`-------------------------------------------------------------------------------

Please see the included INSTALL file.

,-------------------------------------------------------------------------------
| CONFIGURATION
`-------------------------------------------------------------------------------

1. Copy metche.conf.default to /etc/metche.conf and edit it so that it suits
   your needs.
2. Read the next sections of this document and the metche(8) manpage.
3. Add to /etc/cron.d/metche something like:
     0-59/5 * * * * root test -x /usr/local/sbin/metche && \
                         /usr/local/sbin/metche cron
   See the cron (8) manpage for further explanations on how to create a cron 
   job.

,-------------------------------------------------------------------------------
| VSERVERS SUPPORT
`-------------------------------------------------------------------------------

Just add one (or more) VServer name to the VSNAMES configuration variable, and
metche will monitor it in addition to the host system:
   - the WATCHED_DIR, CHANGELOG_DIR and CHANGELOG_FILE paths are also used,
     relatively to your VServer's root directory;
   - the "system state" backups will be saved in sub-directory in BACKUP_DIR's,
     called the same as the VServer;
   - EMAIL_ADDRESS is not used for the VServers: the report messages will be
     sent to the root email address of the VServer; if you're using
     ENCRYPT_EMAIL to encrypt the report messages, make sure the relevant
     public key are in the host system root's keyring, trusted enough to be
     used blindly by metche;
   - all other configuration variables are used as it.

Most of metche commands (namely: list, report and stabilize) support a
'-h <VSERVER>' option:
   - if -h is specified, metche only operates on the VServer provided as an
     argument;
   - else, metche only operates on the host system.

Troubleshooting: in case you have a not-purely-Debianish VServer setup, you may
have to customize some of the VServers-related configuration variables. See the
comments in metche.conf for more details.

,-------------------------------------------------------------------------------
| SECURITY WARNING
`-------------------------------------------------------------------------------

Read the SECURITY section of metche(8). Really.