04.06.2013 Views

UCS 2.4 - Univention

UCS 2.4 - Univention

UCS 2.4 - Univention

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.6 Logging of system messages and system status<br />

The <strong>Univention</strong> Configuration Registry variable proxy/http can also be used to activate the setting of<br />

this environment variable via an entry in /etc/profile.<br />

The proxy URL must be specified for this, e.g., http://192.168.1.100. The proxy port<br />

can be specified in the proxy URL using a colon, e.g., http://192.168.1.100:3128. If<br />

the proxy requires authentication for the accessing user, this can be provided in the form<br />

http://username:password@192.168.1.100.<br />

The environment variable is not adopted for sessions currently opened. A relogin is required for the change<br />

to be activated.<br />

The <strong>Univention</strong> tools for software updates also support operation via a proxy and query the <strong>Univention</strong><br />

Configuration Registry variable .<br />

Individual domains can be excluded from use by the proxy by including them separated by commas in the<br />

<strong>Univention</strong> Configuration Registry variable proxy/no_proxy. Subdomains are taken into account; e.g.<br />

an exception for univention.de also applies for apt.univention.de.<br />

10.6 Logging of system messages and system status<br />

10.6.1 Log files<br />

All <strong>UCS</strong>-specific log files (e.g., for the listener/notifier replication) are stored in the<br />

/var/log/univention directory. Services log in their own standard log files: for example, Samba in<br />

/var/log/samba/log.smbd and /var/log/samba/log.nmbd.<br />

The log files are managed by Logrotate. It ensures that log files are named in series in intervals (can<br />

be configured in weeks using the <strong>Univention</strong> Configuration Registry variable log/rotate/weeks, with<br />

the default setting being 12) and older log files are then deleted. For example, the current log file for<br />

the <strong>Univention</strong> Directory Listener is found in the listener.log file; the one for the previous week in<br />

listener.log.1, etc.<br />

The <strong>Univention</strong> Configuration Registry variable log/rotate/univention/compress is used to config-<br />

ure whether the older log files are additionally zipped with Gzip.<br />

10.6.2 Logging the system status<br />

univention-system-stats (available as of <strong>UCS</strong> <strong>2.4</strong>-1) can be used to document the current system<br />

status in the /var/log/univention/system-stats.log file. The following values are logged:<br />

• The free disk space on the system partitions (df -lhT)<br />

• The current process list (ps auxf)<br />

• Two top lists of the current processes and system load (top -b -n2)<br />

• The current free system memory (free)<br />

• The time elapsed since the system was started (uptime)<br />

• Temperature, fan and voltage indices from LM sensors (sensors)<br />

229

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!