Timestamp in logs

Marc Powell marc at ena.com
Tue Apr 27 14:57:07 CEST 2004


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

--
Marc


-------------------------------------------------------
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/?cpg297
_______________________________________________
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