Page 1 of 1

Display normal time in Nagios Log

Posted: Tue Jan 15, 2013 11:02 am
by liquidcool
Hi,

Is there any way to get the nagios.log file to have normal human readable time instead of UTC time for each entry ?

Thanks

Re: Display normal time in Nagios Log

Posted: Tue Jan 15, 2013 12:03 pm
by abrist
Many. This link may be of interest to you . . .
http://www.epochconverter.com/

Re: Display normal time in Nagios Log

Posted: Wed Jan 16, 2013 5:31 am
by liquidcool
I know about this site, but I want to know if nagios can have non utc time in the logs so when I trawl through it to debug certain events then it will be easier.

Re: Display normal time in Nagios Log

Posted: Wed Jan 16, 2013 11:38 am
by abrist
Not as far as I know. Nagios uses those logs for check results and historical data. There is a good change that converting them without leaving the originals intact would lead to severe breakage in historical reporting and check results. You could write a script that reads in the logs and outputs new files (named differently) with the time stamps converted to date time from Epoch.