date/time format in nagios logs

Brian Wilson wilson at ifndef.com
Wed Sep 25 04:54:06 CEST 2002


On Tue, 24 Sep 2002, bernie liwanag wrote:

>
> Hi, Anybody can tell me How can I change the date/time format of nagios
> logs,such that it could easily be read.
>
> Example of nagios.log
>
> [1032912585]  Nagios 1.0b5 starting
> [1032912585]  HOST
> NOTIFICATION:nagios;server1;DOWN;...
>
> Example of status.log
>
> [1032917145]  SERVICE:proxyserver;ssh;ok;1/3;HARD;102
>
>

If you want to translate it to something more meaningful, just do it in a
perl script:

$ perl -e 'print scalar localtime(1032917145)'
Tue Sep 24 21:25:45 2002

-B

--
Brian Wilson  <wilson at ncsu.edu>      Network Analyst
Communication Technologies, ATD      W: 919.513.3472
North Carolina State University      www.ncstate.net



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list