Timestamp in logs

Upayavira uv at upaya.co.uk
Tue Apr 27 19:41:28 CEST 2004


Marc Powell wrote:

>Upayavira <mailto:uv at upaya.co.uk> wrote:
>  
>
>>My nagios.log file shows the timestamp in integer form, such as:
>>[1083063994] SERVICE NOTIFICATION........
>>
>>How can I switch it to show a more human readable timestamp?
>>    
>>
>
>
>The timestamp is in unix time and cannot be permanently changed. Nagios
>needs it in this format to more easily calculte availablility, etc. The
>FAQ contains a perl script that will convert the timestamps to a more
>human readable format for display only here:
>http://www.nagios.org/faqs/viewfaq.php?faq_id=70
>  
>
Seems fair enough. I'd just seen a quote from a log on this list that 
used human readable entires, and assumed there was something wrong with 
my setup.

I've now written my own check, and a custom notification, and I'm really 
happy!! Thanks for a great tool guys!

Thanks,

Upayavira




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
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