Just a useful one line trick for Nagios logs

Nagios logs timestamp is not human readable, so how to see when something occurred? Here is a one line trick to convert log from epoch timestamp to human readable time:

cat nagios.log | perl -pe 's/(\d+)/localtime($1)/e'


Found on: http://unix.stackexchange.com/a/2992i

ASCII Bouquet

for i in {1..12} $(grep ^ru <<<$LANG);do printf "\033[32m%10s{\033[31m@\n\033[0m"|tr " " =; done

RT @climagic