Reports data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Reports data

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lgute
Posts: 410
Joined: Mon Apr 06, 2020 2:49 pm

Re: Reports data

Post by lgute »

Hi @BanditBBS,

Thanks for reaching out.

I'll have to do a bit of digging, to determine where the data comes from.
Please let us know if you have any other questions or concerns.

-Laura
User avatar
lgute
Posts: 410
Joined: Mon Apr 06, 2020 2:49 pm

Re: Reports data

Post 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
Please let us know if you have any other questions or concerns.

-Laura
Knotnint
Posts: 2
Joined: Mon Apr 07, 2025 10:04 pm

Re: Reports data

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