xi event logs page blank

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
mrjsokol
Posts: 109
Joined: Thu Apr 16, 2020 10:27 am

xi event logs page blank

Post by mrjsokol »

Good morning all,

We have an issue we noticed in 5.8.6 of xi that our event logs are showing blank. We do not know how long this issue persisted as we do not often use this page. See SS attached.
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi event logs page blank

Post by pbroste »

Hello @mrjsokol

Thanks for reaching out, took a look through solutions related to this issue and see that we need to take a look at your environment using your System Profile so we can narrow things down.

Please provide the results on the following and PM your updated system profile for us to review.

Code: Select all

echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
To send us your system profile.
  • Login to the Nagios xi GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via Private Message
Thanks,
Perry
mrjsokol
Posts: 109
Joined: Thu Apr 16, 2020 10:27 am

Re: xi event logs page blank

Post by mrjsokol »

Sent a profile and waiting for infrastructure to run the SQL statement.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi event logs page blank

Post by pbroste »

Hello @mrjsokol

Thanks for sending over the system profile, after review we see that there are database errors and want to start by running through the database repair.

Let's start off by looking through the columns to make sure that there isn't anything exceedingly large.

Code: Select all

echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
[/list]

Let us know how things are looking.

Thanks,
Perry
mrjsokol
Posts: 109
Joined: Thu Apr 16, 2020 10:27 am

Re: xi event logs page blank

Post by mrjsokol »

Sent a pm of the SQL results and the repair script was ran prior to making the post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi event logs page blank

Post by pbroste »

Hello @mrjsokol

Followed up with a pm reply, please follow up on this thread when you have sent the requested info.

Thanks
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi event logs page blank

Post by pbroste »

Hello @mrjsokol

Thanks for following up and sending over the updated System Profile, we see that the 'logs' table did not get repaired due to the size.

You will need to truncate these tables then run the repair on the database. Example:

Code: Select all

mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_logentries'
Note: You will lose the historical data that was stored in these tables.

For more info, read the following document:

http://assets.nagios.com/downloads/nagi ... tabase.pdf

Thanks,
Perry
mrjsokol
Posts: 109
Joined: Thu Apr 16, 2020 10:27 am

Re: xi event logs page blank

Post by mrjsokol »

Good evening,

After truncating the table we made some progress! We now are seeing events show up in the events but seeing the following for most events
See attachment
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi event logs page blank

Post by pbroste »

Hello @mrjsokol

Sounds like progress, let's take a look at the updated System Profile to see what is going on.

To send us your system profile.
  • Login to the Nagios xi GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via Private Message
Thanks,
Perry
mrjsokol
Posts: 109
Joined: Thu Apr 16, 2020 10:27 am

Re: xi event logs page blank

Post by mrjsokol »

Hey Perry sorry for the delay. I have sent you the latest profile.