Page 1 of 1
trimmin the log.
Posted: Thu Oct 11, 2012 3:24 pm
by benhank
is there a way to have nagios limit the size of its log files?
Re: trimmin the log.
Posted: Thu Oct 11, 2012 4:11 pm
by slansing
The Nagios system automatically archives the logs and it needs them in that archive for various reports. So it is not really recommended to fiddle around with changing or limiting the Nagios system's log's.
Re: trimmin the log.
Posted: Thu Oct 11, 2012 4:17 pm
by benhank
I was thinking more of the event logs. We once screwed up notifications and ended up with a 20gig log file ...4 of them
Re: trimmin the log.
Posted: Thu Oct 11, 2012 4:37 pm
by mguthrie
You can't really limit the log size, just the frequency of the rotation, which is in the main nagios.cfg file. You can however turn off some of the logging features so that less data gets logged. This will actually help performance if you don't need the data.
Code: Select all
log_event_handlers=0
log_notifications=0
log_passive_checks=0
log_service_retries=0
log_host_retries=0
Re: trimmin the log.
Posted: Fri Oct 12, 2012 9:10 am
by benhank
excellent! that's just what I needed!