Log-rotation and availability-report

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Log-rotation and availability-report

Post 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.
Former Nagios Employee.
me.
jfrickson

Re: Log-rotation and availability-report

Post 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.
Locked