Page 2 of 2

Re: Log-rotation and availability-report

Posted: Mon Feb 15, 2016 4:46 pm
by hsmith
That behavior doesn't sound quite right. There should be more than 24 states per day. If you're the code-savvy type of guy, you can find the Nagios Core 3.5.1 source code here: https://github.com/NagiosEnterprises/na ... ee/nagios3. I've also linked this thread to our core developer to take a look at and see if he can weigh in.

Re: Log-rotation and availability-report

Posted: Mon Feb 15, 2016 4:54 pm
by jfrickson
The state may be saved hourly (or daily or whatever interval you specify) but since the report reads the log files, how many state files you have doesn't matter. Each check and each status change is recorded in the current nagios.log, and in the archives.

Since log rotation wasn't working because of the directory permissions, there probably aren't any archives, so nothing to search back for status.