This page details the Anaconda Monitoring service available in cobbler. As anamon is rather distribution specific, support for it is considered deprecated at this time.
Prior to Cobbler 1.6 , remote monitoring of installing systems was limited to distributions that accept the the boot argument syslog=. While this is supported in RHEL-5 and newer Red Hat based distributions, it has several shortcomings.
The kernel command-line has a limited amount of space, relying on syslog=somehost.example.com reduces available argument space. Cobbler has smarts to not add the syslog= parameter if no space is available. But doing so disables remote monitoring.
The syslog= approach will only capture syslog-style messages. Any command-specific output (
/tmp/X.config) or installation failure (
/tmp/anacdump.txt) information is not sent.
While capturing syslog information is key for remote monitoring of installations, the anaconda installer only supports sending syslog data for RHEL-5 and newer distributions.
In order to overcome the above obstacles, the syslog= remote monitoring has been replaced by a python service called anamon (Anaconda Monitor). Anamon is a python daemon (which runs inside the installer while it is installing) that connects to the cobbler server via XMLRPC and uploads a pre-determined set of files. Anamon will continue monitoring files for updates and send any new data to the cobbler server.
To enable anamon for your Red Hat based distribution installations, edit /etc/cobbler/settings and set:
NOTE: Enabling anamon allows an xmlrpc call to send create and update log files in the anamon directory, without authentication, so enable only if you are ok with this limitation. It could be potentially used by users to flood the log files or fill up the server, which you probably don't want in an untrusted environment. However, even so, it may be good for debugging complex installs.
You will also need to update your kickstart templates to include the following snippets.
Anamon can also send
/var/log/boot.log once your provisioned system has booted. To also enable post-install boot notification, you must enable the following snippet:
All anamon logs are stored in a system-specific directory under /var/log/cobbler/anamon/systemname. For example,
Anamon relies on a %pre installation script that uses a python xmlrpc library. The installation image used by Red Hat Enterprise Linux 4 and older distributions for http:// installs does not provide the needed python libraries. There are several ways to get around this ...
More information on building and using an updates.img is available from http://fedoraproject.org/wiki/Anaconda/Updates.