Problem with nagios logs

jeff vier jeff.vier at tradingtechnologies.com
Thu Sep 16 21:27:46 CEST 2004


Use sed & awk.  I can't imagine that being too slow (we have over a year
of logs, and will occasionally need to parse for trends).

How real-time are you needing this?

On Thu, 2004-09-16 at 19:32 +0300, YAVUZ TEMIZKAN wrote:
> Hi folks,
> 
> Currently i have an intention to parse nagios log files according to hosts and/or time. But my problem is that nagios logs the time according to unix time i mean like this:
> [1095351602] Auto-save of retention data completed successfully.
> [1095351882] HOST FLAPPING ALERT: www.someurl.com;STOPPED; Host appears to have stopped flapping (0.0% change < 5.0% threshold)
> 
> İ have to change these logs to normal time ie
> 16-09-2004 19:28:59 EEST 2004
> 
> However i have nearly 6 months logs and this will be too much time consuming even if done with a script.(i have a script to translate this time written in perl)
> 
> What i want to find out is  how can we change the logging format in nagios ( cant find anything useful in nagios.log)
> 
> Thanks in advance
> 
> Yavuz Temizkan
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> 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



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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