nagios archives in var/archives

Ben Clewett Ben at clewett.org.uk
Mon Jun 14 18:35:36 CEST 2004


Maybe there is a bug in Nagios when it does log rotation:

	if (time == "11:59") rotate()

If you have reduced the time to 15s, it might be doing the above three 
to four times.  Wiping your good logs after the first attempt.  It would 
explain the time difference.

But thats only a guess...

Ben


Neil wrote:

> This started happening when I modified my nagios.cfg's interval from the 
> default 1 minute to 15s. The reason I brought it down is for getting 
> ping response every 15s. I will restore it back to 60 but, is there a 
> way to have a service check be in the interval of 15s even if our 
> default is 60 seconds?
> Thanks.
> Ben Clewett writes:
> 
>> Just a thought.  The second set of files are a minute after the first 
>> set.  Is the rotation being completed twice?  The second time from an 
>> empty log file, wiping the already rotated log?
>> Ben
>> Neil wrote:
>>
>>> Hey guys,
>>> Look at this:
>>> -rw-rw-r--    1 nagios   nagios    1023305 Jun  1 23:59 
>>> nagios-06-02-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios     969582 Jun  2 23:59 
>>> nagios-06-03-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios    1018123 Jun  3 23:59 
>>> nagios-06-04-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios    1030579 Jun  4 23:59 
>>> nagios-06-05-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios     975405 Jun  5 23:59 
>>> nagios-06-06-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios     809465 Jun  6 23:59 
>>> nagios-06-07-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios     932407 Jun  7 23:59 
>>> nagios-06-08-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun  9 00:00 
>>> nagios-06-09-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun 10 00:00 
>>> nagios-06-10-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun 11 00:00 
>>> nagios-06-11-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun 12 00:00 
>>> nagios-06-12-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun 13 00:00 
>>> nagios-06-13-2004-00.log
>>> -rw-rw-r--    1 nagios   nagios         33 Jun 14 00:00 
>>> nagios-06-14-2004-00.log
>>> What could be the reason why nagios stopped archiving? I still have 
>>> about 400mb of free disk.
>>> The small file contains the following message:
>>> [1087196400] LOG ROTATION: DAILY
>>> Any help will be greatly appreciated.
>>> Thanks.
>>> Neil
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by the new InstallShield X.
>>>
>>>> From Windows to Linux, servers to mobile, InstallShield X is the
>>>
>>>
>>> one installation-authoring solution that does it all. Learn more and
>>> evaluate today! http://www.installshield.com/Dev2Dev/0504
>>> _______________________________________________
>>> 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 the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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