timeout

I can’t believe I’ve missed this: the timeout command of coreutils. It kills a job if it runs longer than a specific time. So if you want to make sure your long_running_job is furnished the next day, when production hours start again:

timeout --kill-after 12h --signal 9 long_running_job

Opsview and large check results (patch NSCA)

Ton posted how to increase the NRPE data load to 16k. But if you use Opsview in a distributed environment (got slaves) you also have to adjust NSCA for large output.

That’s quite easy. Patch and recompile nsca-2.7.2 and change the nsca binary on the master and send_nrpe on the slaves. So the now-up-to-16k check results are sent to, and recieved by, the master. Here’s the NSCA-2.7.2 16k patch containing the necessary changes to common.h.

Die Abenteuer des Veit Rahm

Veit Rahm, mein Urururgroßvater, reiste in den 1850er Jahren durch die ganze Welt. Seine Aufzeichnungen über diese Reise und Erelebnisse sind zum Teil erhalten geblieben und wurden zum 85. Geburtstag meiner Oma – alles gute Oma! – zu einem Büchlein zusammengefasst. Hier ein kurzer Auszug aus den Texten:

Plötzlich fiel dicht am Wagen ein Schuss, und ich fühlte, dass die Kugel in den Wagensitz hinein gegangen sei. Ganz unerschrocken griff ich nach meinem Säbel, da fiel ein zweiter Schuss, aber ohne mich zu verletzen. Und ein Mann sprang auf den Wagentritt, um mich zu packen. Schnell zog ich den Säbel und hieb ihm den Kopf entzwei. Der Mann fiel zu Boden, da fällt ein dritter Schuß. Ich sagte zum Kutscher:
„Fahre so schnell, als Du kannst!“

Die Handschrift mit Transkription steht als koprimiertes PDF zur Verfügung (CC BY-NC-SA).

Visualize your nagios configuration

It’s unfair: The database admin got his DB layout, net network admin the network diagram. The sysadmin looses.

Now you’re able to plot the Nagios configuration with plot-config.pl to compete with others!  And it comes in handy to show it off, search for errors or documentation.

plot-config.pl walks through nagios configuration files and draws depencies between hosts (parent-child) and (optionally) shows the services per host. You can plot the graphviz graph bottom-up or left-right and even neato or circo graphs. Though the output is a colored SVG it’s jut a quick & dirty hack.

Here an example output of plot-config.pl (without services):

very minimal output of plog-config.pl
very minimal output of plog-config.pl

gentoo: stablize a ~x86 system

Of course I run gentoo and I like it to stick to the latest (masked) Gnome version. As it is quite a task to control every package prior to adding it to package.keywords, I worte upgrade_all.

‘upgrade_all’ walks through ‘world’ and finds all packages that would be downgraded on next emerge, shows the according eix-stanza and prompts before adding a stablilizing line to package.keywords. Though it’s a quick shot it works for me, so feel free to edit and extend it, but don’t forget to let me know.

Couchsurfing

“Participate in Creating a Better World, One Couch at a Time” that the misson statement on couchsurfing.com. I like the idea of offering your couch to travellers and to get in touch with the world right at your home. I appreciate the spirit of all the people out there offering their couch, because i know how preicous an accomodation can be. I invite couchsurfers to lay down their weary head at my couch.

Henry’s Good Ol’ Riebel

Neben Käsknöpfle wohl die vorarlberger Landesspeise. Hier meine Variante dieses Maisgerichts, das früher als Arme-Leute-Essen galt.

Zutaten
0,5l Milch
250g Riebelgrieß (Mischung aus schalenhaltigem Weizengrieß und Maisgrieß)
Salz
Butter
Muskatnuss

Zubereitung
Butterschmalz in einer Pfanne sehr heiß werden lassen, Milch und eine Prise Salz dazugeben und alles zusammen aufkochen. Die Milch vorsichtig mit etwas Muskat verfeinern.
Riebelgriess einrühren und so lange rühren, bis sich die Masse vom Geschirr löst.
Anschliessend auskühlen lassen.
In einer Pfanne Butter erhitzen, die ausgekühlte Masse hinein geben und langsam backen. Die Masse laufend zerkleinern und durchrösten lassen.

Genossen wird der Riebel am einfachsten mit einer Tasse Milch oder Kaffe. Bestreut mit Zucker und neben Apfelmuss (oder auch Kompott) serviert, ist er eine köstliche Süßspeise.

Gödels Unvollständigkeits-Theorem

“Epimenides, der Kreter, sagte alle Kreter wären Lügner und alle sonst von den Kretern aufgestellten Behauptungen wären gewiß Lügen. War das eine Lüge?”

Für die Lehrveranstaltung “Grundlagen methodischen Arbeitens” erstellte ich einen Artikel über Gödels Unvollständigkeitssatz. Ein kurzer, gegen Ende aber durchaus detaillierter Einstieg in die Zeit, die Umstände, die Idee, die Durchführung des Gödelschen Satzes.

Abstract – Ein Essay über die Formalisierung der Mathematik, die Zerstörung der Hilbertschen Vision durch  Gödel und das Halteproblem als praktisches, an den Gödelschen Beweis angelehntes Beispiel. Die wichtigsten Begriffe wie formales System, Widerspruchsfreiheit und Vollständigkeit werden eingeführt. Abschließend wird Gödels Unvollständigkeits-Theorem nah am Originalartikel erklärt. 

Gödels Unvollständigkeits-Theorem (pdf)