State History not displaying

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
remedsys
Posts: 5
Joined: Tue Apr 05, 2016 8:23 am

State History not displaying

Post by remedsys »

I am having an issue with my Nagios XI install. I'm not sure if this was before or after updating to 5.3.

I am unable to view the "State History" report for any hosts and services. Even though I know states have changed, the report remains empty when I run it. Also, if I check a host or service history using the small icon under the name of the host/service, that also returns blank.

I have attached my System Profile.
Last edited by dwhitfield on Mon Dec 05, 2016 3:33 pm, edited 2 times in total.
Reason: marking with green check mark
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: State History not displaying

Post by tgriep »

The log file from the profile shows that the Mysql statehistory table is corrupt and needs to be repaired.
Login as root to the XI server and run the following to repair it.

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
This should fix the table and then the State History report should have data.
Be sure to check out our Knowledgebase for helpful articles and solutions!
remedsys
Posts: 5
Joined: Tue Apr 05, 2016 8:23 am

Re: State History not displaying

Post by remedsys »

That worked, thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: State History not displaying

Post by dwhitfield »

Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!
Locked