Re: [Nagios-users] Log time stamps
On Sun, Jul 13, 2008 at 07:58:39PM -0400, Janet Post wrote: If you would like to see the log files with a human-readable timestamp: perl -pe 's/(\d+)/localtime($1)/e' logfile Janet Nice trick. I was surmising there might be some way to do that, but a perl one-liner didn't occur to me. Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Josef Stalin) - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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
[Nagios-users] Log time stamps
Can somebody please explain what these timestamps mean in the logs: [1215955229.159192] [032.0] [pid=885] Notification viability test failed. Does nagios have an option to use normal y:m:d:h:m:s or some other human readable timestamps in the logs? Best Regards, Jeff Koch, Intersessions - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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
Re: [Nagios-users] Log time stamps
On Jul 13, 2008, at 10:57 AM, Jeff Koch wrote: Can somebody please explain what these timestamps mean in the logs: [1215955229.159192] [032.0] [pid=885] Notification viability test failed. http://www.nagios.org/faqs/viewfaq.php?faq_id=68 http://www.nagios.org/faqs/viewfaq.php?faq_id=70 Does nagios have an option to use normal y:m:d:h:m:s or some other human readable timestamps in the logs? No. The logs are primarily for nagios' use and it's significantly easier to work with epoch time than the various and conflicting human readable versions of such. -- Marc - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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
Re: [Nagios-users] Log time stamps
Hello, If you would like to see the log files with a human-readable timestamp: perl -pe 's/(\d+)/localtime($1)/e' logfile Janet (Mark: sorry for the double emails...I didn't hit reply-to-all the first time.) On Sun, Jul 13, 2008 at 4:24 PM, Marc Powell [EMAIL PROTECTED] wrote: On Jul 13, 2008, at 10:57 AM, Jeff Koch wrote: Can somebody please explain what these timestamps mean in the logs: [1215955229.159192] [032.0] [pid=885] Notification viability test failed. http://www.nagios.org/faqs/viewfaq.php?faq_id=68 http://www.nagios.org/faqs/viewfaq.php?faq_id=70 Does nagios have an option to use normal y:m:d:h:m:s or some other human readable timestamps in the logs? No. The logs are primarily for nagios' use and it's significantly easier to work with epoch time than the various and conflicting human readable versions of such. -- Marc - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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 - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08___ 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