Convert timestamps in Nagios log

/var/log/nagios2/nagios.log prints computer timestamps that aren't that easy to read.

Run this instead:

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

Or better yet put it in a script and just run it as 'nagioslog' or something...

This site is archived. mig5 is taking a break from writing.