On Dec 8, 2008, at 12:42 AM, Gaurav Ghimire wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dear all, > > I wanna know more about the Nagios Alert History. What does it log? > Is it only that it logs the downtimes and their corresponding > uptimes? OR it
Typically only state changes since that's primarily what the CGI's report on. You have some control over the logging of additional information for your own purposes by changing the log_* values in nagios.cfg. > The case is in my nagios installation. I can see only the history > for today. Once I try to see the same for the earlier days. It says > that no information was found in the log files. And I think that > this mustn't be the case.I should be seeing any information > collected for the host in the period of time. Is log_rotation_method in nagios.cfg set to 'd' (daily)? Current logs (based on the value of log_rotation_method) are in /usr/local/nagios/ var/nagios.log. Historical logs are in /usr/local/nagios/var/ archives/, one per log_rotation_method interval. Nagios automatically rotates them there and they, and the directory they are in, should be readable by your web server. They are simple text files so you could easily examine them to verify that what you're looking for exists in them. Be aware that depending on the version of nagios you are using, it will log usually only when a host or service changes state. If the host you are searching for has not changed state during your reporting window you'll need to use the backtracked archives setting to include a time period when it did or set the first assumed state to give nagios a starting state for the host. -- Marc ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ 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
