On Jul 15, 2009, at 8:23 AM, Chris Waters wrote:
You could do something like this:
Replace the paths to reflect your environment.
tail -f /usr/local/nagios/var/nagios.log | perl -pe
's/(\d+)/localtime($1)/e'
or
grep 'something important to look for'
somelogfilewithepochtimestamps.log | perl -pe 's/(\d+)/localtime($1)/
e'
or
perl -pe 's/(\d+)/localtime($1)/e' somelogfilewithepochtimestamps.log
Thank you! This is (for me at least) a much better approach than the
one specified in the FAQ, in that I can (as in your first example) use
it with tail -f for real-time monitoring when testing stuff. Any
chance of getting this approach incorporated into the FAQ's?
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
Chris Waters
________________________________
From: shadih rahman [mailto:shadhi...@gmail.com]
Sent: Wednesday, July 15, 2009 9:10 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios log file date format
Is there any way to change nagios log file date format to human
readable
format. I did not see any option in nagios.cfg file. Please advise
on
this. Thanks
--
Cordially,
Shadhin Rahman
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited
time,
vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See
full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users@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
BEGIN:VCARD
VERSION:3.0
N:Brewster;Israel;;;
FN:Israel Brewster
ORG:Frontier Flying Service;MIS
TITLE:PC Support Tech II
EMAIL;type=INTERNET;type=WORK;type=pref:isr...@frontierflying.com
TEL;type=WORK;type=pref:907-450-7293
item1.ADR;type=WORK;type=pref:;;5245 Airport Industrial Wy;Fairbanks;AK;99701;
item1.X-ABADR:us
X-ABUID:36305438-95EA-4410-91AB-45D16CABCDDC\:ABPerson
END:VCARD
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users@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