Page 1 of 1
About keeping historical data
Posted: Tue Oct 29, 2013 4:35 am
by NagAlf
Hi!
Please advice. I see Nagios does keep historical data some about 3 days. If I correct, is it possible to some devices/hosts to set keeping history for longer time period? I'm using Nagios 3 on SLES.
More thanks, Alar.
Re: About keeping historical data
Posted: Tue Oct 29, 2013 1:14 pm
by sreinhardt
Which historical data? In general it should be kept for a much longer time than that, however it may get moved to rotating archives opposed to live history, again depending on which particular data you are referring to.
Re: About keeping historical data
Posted: Wed Oct 30, 2013 4:14 am
by NagAlf
Hi and thanks!
Well, yes, You're correct, after some three days logs rotated to zipped archives and via console I get error "Error: Could not open log file '/var/log/nagios/archives/nagios-10-26-2013-00.log' for reading!".
More thanks, Alar.
Re: About keeping historical data
Posted: Wed Oct 30, 2013 1:25 pm
by slansing
What are the permissions on this file:
Code: Select all
ll /var/log/nagios/archives/nagios-10-26-2013-00.log
Re: About keeping historical data
Posted: Wed Nov 06, 2013 3:29 am
by NagAlf
Hi again and thanks!
Sorry, missed this post. "nagios - User for Nagios" has Read and write, group nagios Read-only and Others Read-only.
More thanks, Alar.
Re: About keeping historical data
Posted: Wed Nov 06, 2013 2:16 pm
by slansing
What report are you getting this error on?
Re: About keeping historical data
Posted: Mon Nov 11, 2013 1:42 am
by NagAlf
Hi and thanks!
Well, whatever - I suppose - report I try to see I see only last three days. But when I click on Notifications and Latest Archive then at some point to move onto earlier than three days ... I get this error I described (Error: Cannot open log file '/var/log/nagios/archives/nagios-11-09-2013-00.log' for reading!). Well, just sometimes is good to have an earlier look.
More thanks, Alar.
Re: About keeping historical data
Posted: Mon Nov 11, 2013 11:41 am
by abrist
What is the output of (post in code wraps please):
Code: Select all
ls -lad /var/log/nagios/archives/
ls -la /var/log/nagios/archives/