Timestamp

Richard Gliebe richard.gliebe at fhv.at
Wed Sep 21 12:04:41 CEST 2005


On Wed, 2005-09-21 at 11:58 +0200, Richard Gliebe wrote:
> Hi,
> 
> how can I translate the timestamps in nagios.log to a real date/time:
> 
> [1127294282] Auto-save of retention data completed successfully.
> ^^^^^^^^^^^^

Ooops, I found the solution:

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

> 
> thanks in advance.
> 
> Richard




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list