> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F > Sent: Friday, June 22, 2007 8:35 AM > To: [email protected] > 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 [email protected] 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
