Timestamp
Andreas Ericsson
ae at op5.se
Thu Sep 22 09:13:04 CEST 2005
Greg Vickers wrote:
> Andreas,
>
> Andreas Ericsson wrote:
>
>> 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
>
>
> I'm getting a:
>
> Not Found
> The requested URL /nagios/naglog.c was not found on this server.
>
> And I can't see anything like it on http://oss.op5.se/nagios - is the
> script in another location?
>
True. It seems I haven't actually bothered to upload it, though I
thought I had. It'll be there in 15 minutes or so.
>> 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
>
>
> Thank god! Who mixes up the order of significance (i.e. yy-dd-mm) in
> dates anyway??? :p
>
The british, the US folks, aussies and some other backwards people. The
logical thing to do with any form of numerals is to write out the field
incremented most often last. It's how we count, so it should be how we
write as well. It also sorts nicely.
--
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