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.
Reports data
Reports data
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
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
Re: Reports data
Hi @BanditBBS,
Thanks for reaching out.
I'll have to do a bit of digging, to determine where the data comes from.
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
-Laura
Re: Reports data
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.
If you find matches, run the database repair script.
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
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
Please let us know if you have any other questions or concerns.
-Laura
-Laura
Re: Reports data
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.