On Oct 4, 2010, at 9:05 PM, HyunSung Jang wrote: > hi folks, > sometimes it is very useful to find some issues from log history. > but nagios log file shows me unix timestamp i belive. > is there any way to change it to human readable format?? > version of nagios is 3.2.0
Hi HyunSung, No, you cannot change the log date format. Nagios requires that it be a unix timestamp in order for the reporting to work. This FAQ details a little perl script to print out a more human readable format -- http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=70&expand=false&showdesc=true or you could use a one-liner like -- perl -pe 's/(\d+)/localtime($1)/e' nagios.log -- Marc ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ 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
