Timestamp
Andreas Ericsson
ae at op5.se
Wed Sep 21 21:30:54 CEST 2005
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.
> ^^^^^^^^^^^^
>
There's a very small C-program at http://oss.op5.se/nagios/naglog.c that
does this for you. You can either pipe the log to it or give it one or
more filenames to parse. The output format is in european style, so it
looks like this; 2005-09-21 21:30:41
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
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