Page 1 of 1
Reports data
Posted: Wed May 07, 2025 3:16 pm
by BanditBBS
Where does the availability report get its data? I thought it would be from the database of ndo database where I am keeping state history for 100 days, but it seems to be coming from /usr/local/nagios/var/archives/.
I ask, as I have a cron that deleted logs from that folder as needed as it is a very chatty XI server and it uses a crazy amount of space.
Re: Reports data
Posted: Thu May 15, 2025 4:45 pm
by lgute
Hi
@BanditBBS,
Thanks for reaching out.
I'll have to do a bit of digging, to determine where the data comes from.
Re: Reports data
Posted: Mon May 19, 2025 4:21 pm
by lgute
Hi
@BanditBBS,
Currently the data for the Availability report comes from both the
/usr/local/nagios/var/nagios.log file and the log files in
/usr/local/nagios/var/archives.
If there are database issues, the log files can grow too fast. To be safe, please run the following in a terminal session on your XI server.
Code: Select all
grep -r INSERT /usr/local/nagios/var
If you find matches, run the database repair script.
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
Re: Reports data
Posted: Mon May 19, 2025 8:40 pm
by Knotnint
If your cron job is deleting those archive logs, that would definitely explain why your availability reports might be incomplete or missing data for the periods where the logs have been purged.