Small Mosaic


Categories:

books
career
codinghorrors
comics
events
geekstuff
justdont
languages
languages/bash
linkshot
magazines
meta
misctech
movies
nottech
operatingsystems
operatingsystems/linux
operatingsystems/linux/debian
operatingsystems/solaris
paranoidadmin
perl
presentations
programming
python
ruby
security
security/apache
security/tools
serversmells
services
services/dns
sites
specifications
sysadmin
tools
tools/commandline
tools/firefox
tools/gui
tools/network
tools/online
tools/online/greasemonkey
tools/puppet
unixdaemon

Archives:

February 20101
January 20102
October 20092
September 200910
August 200910
July 20094
June 20091
April 20093
March 20097
February 20094
January 200917
December 20081
November 20084
October 20085
September 20084
August 200812
July 20089
April 20084
March 20081
February 20081
January 200815
August 20072
June 20079
May 20076
April 20078
March 200731
February 20073
January 200721
December 20061
November 20064
October 20066
September 200632
August 200617
July 200614
June 20069
May 200613
March 200611
February 200616
January 200611
December 20051
November 20056
October 200519
September 200525
August 200516
July 200516
June 200513
May 20052
April 200519
March 200531
February 200520
January 200531
December 200421
November 200430
October 200432
September 200418
August 20047
July 200414
June 20045

Sat, 21 Feb 2009

GDB Pocket Reference - (Very) Short Review
If you already know GDB then this book might be useful. It's full of command summaries and option listings but lacks an actual introduction or any walk through examples.

A google for GDB tutorials bought back some well written intros with actual sample code I could work through which is probably a more useful approach for most people.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2009/02/21 12:05 | /books | Permanent link to this entry | This entry + same date


Wed, 04 Feb 2009

Nagios check_http flaps
We recently had an odd one where the Nagios check_http check, which was both checking for the presence of a string in the response and that the page loaded in a certain time frame, went from reporting a 'CRITICAL - string not found' to a 'HTTP WARNING: HTTP/1.1 200 OK'. My first thought, as this was a site pending migration, was that the URL had moved to a slower machine with the fixes released to it. Alas, it's seldom that obvious.

It turns out that somewhere in the Nagios check a slow page that exceeds the -w options threshold overrides the fact that the string is missing, even though that's a warn replacing a crit. Bah.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2009/02/04 16:53 | /sysadmin | Permanent link to this entry | This entry + same date


Tue, 03 Feb 2009

Simple, Single Document Bookmarks in vim
I like vim, I think it's a great editor worth investing time and effort in to learning but I also think it's one of the most horrible things to watch an inexperienced user typo his way through while you're urgently waiting for them to finish the damn edit. My favourite one this week (and it's only Tuesday) is looking for probably unique phrases that you can later search for to return to a specific part of a document.

In an attempt to stop my laptop getting any more back of the head shaped dents in it from when I've failed to restrain myself I thought I should point out a much simpler way of doing this. Once you're at the part of a document you want to return to press m<letter>. This sets a mark. To return to it press '<letter>. That's it. No more pasting in chunks of a string hoping it only occurs once in the damn document. If you need to mark a couple of locations then fine just use different letters to set and return to the places you want. And save me sending another laptop back in for warranty.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2009/02/03 22:05 | /tools/commandline | Permanent link to this entry | This entry + same date


Splitting Syslogs by Facility
Logs are a wonderful thing. If done correctly they point out the source of all errors, show you what's running slow and contain useful information on how your system is running. At every place I've ever worked they've been busy, full of odd one offs and too often overlooked.

I'm going to be doing a fair bit of log processing next week so expect lots of little toolchain scripts like syslog-splitter.pl to be checked in to git and mentioned here.

syslog-splitter takes a logfile as an argument and breaks the logfiles in to many smaller units, one file per facility (which contains all the lines for that facility from the logfile), to make it easier to process. I seem to invoke it followed by wc -l out/* | sort -nr when on new machines to work out where I need to invest some time. Over the next week or so I'll come back to the topic and show how I'm reducing the noise to help me find the important lines.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2009/02/03 21:49 | /sysadmin | Permanent link to this entry | This entry + same date


books career codinghorrors events geekstuff justdont languages/bash magazines meta misctech movies nottech operatingsystems/linux operatingsystems/linux/debian operatingsystems/solaris perl presentations programming python ruby security security/apache security/tools serversmells services/dns sites sysadmin tools/commandline tools/firefox tools/gui tools/network tools/online tools/online/greasemonkey tools/puppet unixdaemon

Copyright © 2000-2005 Dean Wilson XML feed logo