In Search of Updates
2013-10-24
Printing readable dates from the Nagios log
Just because I always forget...
ben@nagios1:/var/log/nagios3$ grep 'mycheck-or-host' nagios.log |perl -pe 's/(\d+)/localtime($1)/e'
The perl snippet will translate the epoch-style timestamp to one that is readable.
‹
›
Home
View web version