NAGIOS.log file...

Marc Powell marc at ena.com
Fri Jun 22 15:59:37 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Lacayo, Luis F
> Sent: Friday, June 22, 2007 8:35 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NAGIOS.log file...
> 
> Does anyone how to convert the date/time stamp of the nagios.log file
so
> that I can tell what time the event happened.  I am trying to track
don't
> why the emails are not getting received if the Nagios.logs say they
were
> sent out.
> 

Tail, cat, grep, whatever nagios.log | perl -pe
's/(\d+)/localtime($1)/e' | less

Or to do the whole log --
< /usr/local/nagios/var/nagios.log perl -pe 's/(\d+)/localtime($1)/e'

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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