Archive for the 'Admin' Category

Automate ‘periodic daily’ e-mail reading

Many systems send status e-mails from their periodic {daily,weekly,monthly} cronjobs. But just as with log messages you probably stop reading them because there are too many mails (one or two mails per day and host) and they are very repetitious (on healthy systems they should not change too much). — This demands automation.

A simple solution is to eliminate variable fields from the periodic output and only send an e-mail if the output is different from the expected or the previous output.

Read the rest of this entry »

OpenSSH mit sftp-internal

Seit OpenSSH 4.9 ist das sftp-Subsystem endlich Teil des sshd, so dass ein sftp-Login auch ohne Shell funktioniert (Anleitung zur Konfiguration). Jetzt hab ich’s endlich mal getestet und es sieht wirklich praktisch aus. Die vorherige Implementierung mit sftp-server, die zu so Krücken wie scponly führte, hab ich schon immer für einen Design-Fehler gehalten.

Read the rest of this entry »

Spam-Pause

Am Wochenende blieb einfach der Spam weg. Ich fürchtete schon Fehler im DNS oder Paketfilter… aber der RackBlogger und Heise beobachteten das gleiche Phänomen und heute hat sich alles wieder normalisiert:

DTAZV mit PHP

Ich betreue eine PHP-Anwendung die Überweisungen vorbereitet, mithilfe der PEAR Payment_DTA Klasse als DTA-Datei formatiert und per E-Mail an die Finanzabteilung schickt.
Um damit auch EU-Überweisungen erfassen zu können habe ich eine Klasse DTAZV geschrieben.

Read the rest of this entry »

mailgraph und rejects

Ich hab mal wieder an meinem mailgraph gedreht weil seit ca. einem Jahr die Zahl der Rejects um ein vielfaches größer ist als die Zahl der angenommenen Mails.

Read the rest of this entry »

Syslog line length statistic

Time for some useless statistics… Because I had to set some initial buffer sizes in syslogd I took a closer look at my log files. I used all logs from last month and counted the line lengths for every message to get an impression of real-life requirements on message/line lenghts.

Read the rest of this entry »

How to check a disk after RAID error

Once in a while my 3ware SATA RAID controller reports a hard disk error. Often the disk can be checked manually and turns out to be still usable. This is a short walkthrough how to check the drive.

Read the rest of this entry »

Das Keyboard

I got my pre-ordered “Das Keyboard” a week ago and it rocks!