logfile rotation and showlog.cgi

Jaap Hogenberg jaap.hogenberg at marketxs.com
Fri Jul 23 16:46:01 CEST 2004


Hmm, 

It seems that in my case I was lacking the archives directory,
probably causing the log rotation not to work.

So I don't need a cronjob to do this after all.

Thanks,
Jaap



On Fri, 2004-07-23 at 14:04, Patrick Stockton wrote:
> It was my understanding that the logs were supposed to be automatically rotated by the nagios 
> application.  I just originally set up Nagios on a test box and the logs were rotating just fine.
> 
> Three days ago I just completed setting it up on our production box copying over the configuration 
> files over exactly.  The logs do not seem to be rotating.
> 
> The log section of my nagios.cfg looks like this:
> 
> log_rotation_method=d
> 
> log_archive_path=/var/nagios/archives
> 
> use_syslog=1
> 
> log_notifications=1
> 
> log_service_retries=1
> 
> log_host_retries=1
> 
> log_event_handlers=1
> 
> log_external_commands=1
> 
> log_passive_service_checks=1
> 
> inter_check_delay_method=s
> 
> I have verified that the permissions on the archives folder matches my test setup.
> 
> I'm using gentoo and have used the latest ebuild.
> 
> Help here would be greatly appricated.
> 
> Thanks.
> 
> 
> 
> Jaap Hogenberg wrote:
> 
> > Hi,
> > 
> > I'm not sure if I missed something, but I found that
> > the showlog.cgi does expect some logfile rotation to 
> > be done on the nagios.log logfile.
> > I have set up a cron job and a script to do this, but
> > want some confirmation that this is the right thing to do.
> > 
> > Anyone care to comment ?    :-)
> > 
> > 
> > Thanks 
> > 
> > Jaap
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by BEA Weblogic Workshop
> > FREE Java Enterprise J2EE developer tools!
> > Get your free copy of BEA WebLogic Workshop 8.1 today.
> > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> > _______________________________________________
> > 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 BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> 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 BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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