5 Non-critical systems are those that are managed by the infrastructure
34 .. todo:: consider whether a central MySQL service should be setup
36 Many containers contain their own instance of MySQL. It might be a better
37 idea to centralize the MySQL setups in a single container.
39 .. todo:: consider whether a central PostgreSQL service should be setup
43 setup a central syslog service and install syslog clients in each container
45 .. _setup_apt_checking:
47 .. topic:: Setup package update monitoring for a new container
49 For Icinga to be able to check the update status of packages on you server
50 you need to install NRPE, a helper service. Install the necessary packages::
52 sudo aptitude install nagios-plugins-basic nagios-nrpe-server
54 Put :doc:`systems/monitor` on the list of allowed hosts to access the NRPE
55 service by adding the following line to :file:`/etc/nagios/nrpe_local.cfg`::
57 allowed_hosts=172.16.2.18
59 Tell the NRPE service that there is such a thing as the check_apt command by
60 creating the file :file:`/etc/nagios/nrpe.d/apt.cfg` with the following
63 # 'check_apt' command definition
64 command[check_apt]=/usr/lib/nagios/plugins/check_apt
66 # 'check_apt_distupgrade' command definition
67 command[check_apt_distupgrade]=/usr/lib/nagios/plugins/check_apt -d
69 Restart the NRPE service::
71 sudo service nagios-nrpe-server restart
73 Check that everything went well by going to https://monitor.cacert.org/,
74 going to the APT service on the host and clicking :guilabel:`"Re-schedule
75 the next check of this service"`. Make sure that :guilabel:`"Force Check"`
76 is checked and click :guilabel:`"Commit"`. Now you should see a page with a
77 green background. If not something went wrong, please contact the
78 :doc:`systems/monitor` administrators with the details.
80 That's it, now the package update status should be properly displayed in
83 .. todo:: think about replacing nrpe with Icinga2 satellites
92 * All containers should be monitored by :doc:`systems/monitor` and should
93 therefore have :program:`nagios-nrpe-server` installed
94 * All containers should use :program:`etckeeper` to put their local setup into
95 version control. All local setup should use :file:`/etc` to make sure it is
96 handled by :program:`etckeeper`
97 * All infrastructure systems must send their mail via :doc:`systems/emailout`
98 * All infrastructure systems should have an system-admin@cacert.org alias to
100 * The installation of :index:`systemd-sysv` in containers can be blocked by
101 putting the following lines in :file:`/etc/apt/preferences.d/systemd-sysv`::
103 Package: systemd-sysv
104 Pin: release a=stable
107 .. todo:: document how to setup the system-admin alias on the email system