log file keeps deleting upon rotation

w.pfeiffer at enbw.com w.pfeiffer at enbw.com
Tue Jan 13 14:52:46 CET 2004


Tory M. Skyers wrote:

> I had log rotation set to daily, recently Nagios has been 
> deleting all the contents of my logs on rotation. When I 
> look in the archives directory my logs are all 33bytes. 
> What gives, is this a bug? A bad setting on my part?
> Has anyone else experienced this? 
> 
> I tested it w/ weekly rotation, and sure enough at the end of 
> the week it wiped out the entire weeks log. 
> 
> In addition, I have notifications set to 60 minutes, I have 
> ping checks every 5 minutes, but Nagios sends out notifications 
> every 10  minutes, why I don't know. Nowhere in my conf files 
> do I have notifications set to 10 minutes, nor in my groups or 
> actually anywhere. Is there something I'm missing? 
> 
> One other issue, on the host or service status page the count 
> for the number of hosts and services fluctuates. It goes down 
> a couple hosts a couple services, but it never goes above the 
> number I have defined.

Strange stuff like this could happen because you have multiple
Nagios main processes running.  Shutdown Nagios, verify that 
no other Nagios processes are running, then start Nagios again.

See also: http://www.nagios.org/faqs/viewfaq.php?faq_id=21


Wolfram


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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