systraq for Debian ------------------ This package will not do anything useful until it is configured, except send you a friendly and regular warning about how to do so. The files in the examples directory are here to help you. Configuring the weekly [Systraq] messages ----------------------------------------- Weekly, you'll get an email message with a subject likel "[Systraq] hostname YYYYMMDD". It'll show output of various commands. If you'd like to add output of another command, create a script /etc/systraq/systraq.d/AA-local. Use "hh" for "AA" if you'd like to see the output between ff-netstat's output and gg-ps's output. Use "-local" for the rest of the filename. If you'd like to disable one's scripts output (e.g. gg-ps), run: # rm /etc/systraq/systraq.d/gg-ps # ln -s /bin/true /etc/systraq/systraq.d/gg-ps . Email delivery problems ----------------------- The current approach to deliver systraq-related emails to the "right person" is to put `root' in the systraq user's .forward file. This works fine with exim which is the default MTA for Debian, but you may experience problems depending on your MTA and configuration, for example the `-' in systraq's username might cause confusion. It is left up to you to arrange for a correct email delivery in this case, for example by editing /etc/aliases. Purging the systraq package, dealing with systraq system account and group -------------------------------------------------------------------------- Since systraq version 0.0.20081217-6, the debian-systraq user account and the debian-systraq system group no longer get removed when the systraq package is purged. See http://wiki.debian.org/AccountHandlingInMaintainerScripts for rationale. After package purge, you might want to check whether any files belonging to the systraq user or group are still on your system: find / -owner debian-systraq -o -group debian-systraq You might want to keep these files; in that case, make sure they won't end up owned by a no longer known user or group. Assign them to user and group root like this: find / -owner debian-systraq -o -group debian-systraq -execdir chown root.root \{\} \+ Once you've done this, you can purge the user account and group. Use the following script for that: -------------- #! /bin/sh set -e if getent passwd debian-systraq > /dev/null 2>&1; then if [ -x "$(command -v deluser)" ]; then # --remove-home needs package perl-modules deluser --remove-home --system --quiet debian-systraq > /dev/null || ( deluser --system --quiet debian-systraq && rm -r ~debian-systraq ) > /dev/null || true else echo >&2 "not removing debian-systraq system account because deluser command was not found" fi fi if getent group debian-systraq > /dev/null 2>&1; then if [ -x "$(command -v delgroup)" ]; then delgroup --system --only-if-empty debian-systraq || true else echo >&2 "not removing debian-systraq system group because delgroup command was not found" fi fi -------------- -- Laurent Fousse , Wed, 21 Sep 2005 15:27:00 +0200, Joost van Baal-Ilić , пон, 18. нов 2013. 16:03:47 CET