All dashboards disappeared, that dashboard is not valid...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rjjimenez
Posts: 16
Joined: Wed Dec 23, 2015 10:20 am

All dashboards disappeared, that dashboard is not valid...

Post by rjjimenez »

Hi

We were adding dashlet in dashboads and we have received the following error:

Bad Dashboard
Unfortunately for you, that dashboard is not valid... Too bad. Dashboard ID: fnrkq5k7


Now when we look dashboards, all they are gone.

Attached the screenshot of the error, http nagios logs and also the result of the dashboard in database.

NagiosXI Entreprise 5.2.3

Best regards
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: All dashboards disappeared, that dashboard is not valid.

Post by lmiltchev »

What dashlet were you adding to your dashboards? What is the user that you were logged in as while trying to view the dashboard - nagiosadmin, other user (admin, regular user, read-only user)? Do ALL users have issues with accessing the dashboard?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rjjimenez
Posts: 16
Joined: Wed Dec 23, 2015 10:20 am

Re: All dashboards disappeared, that dashboard is not valid.

Post by rjjimenez »

Hi

We were logged with the nagiosadmin user and we were adding service graphics.

Only disappeared the nagiosadmin user dashboars, the others users dashboards work correctly.

Best Regards
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: All dashboards disappeared, that dashboard is not valid.

Post by ssax »

First, take an XI backup:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf


You may have so much data in there that you're hitting the max byte limit of the DB field type, change the field type so that it will support at least 4GB by running this command:

Code: Select all

echo "alter table xi_usermeta modify keyvalue LONGTEXT;" | mysql -uroot -pnagiosxi nagiosxi

Now you should not experience the issue going forward.

You may need to delete what dashboards you currently have setup:

Code: Select all

echo "delete from xi_usermeta where keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi
Let us know the results.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: All dashboards disappeared, that dashboard is not valid.

Post by vAJ »

Just had this happen to my Network Engineering director... I'm trying the fix now as well, will report back success or fail.

He's tearing up over our IM session right now. ;(
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: All dashboards disappeared, that dashboard is not valid.

Post by vAJ »

Do they really lose all of that dashboard data?

I'm going to have some very unhappy people today...
Andrew J. - Do you even grok?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: All dashboards disappeared, that dashboard is not valid.

Post by ssax »

The problem is that the data is serialized, let me see if I can come up with a workaround to losing the data.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: All dashboards disappeared, that dashboard is not valid.

Post by ssax »

Do you still have the broken dashboards, if so, please run this command and PM me the data:

Code: Select all

echo "select * from xi_usermeta where keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi
Thank you
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: All dashboards disappeared, that dashboard is not valid.

Post by ssax »

Did that data that you PM'd contain the broken data? I'm unable to figure out what is wrong with it, the data unserializes properly and it doesn't look like it hit the byte limit. Have you deleted and tried to recreate to see if they show up?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: All dashboards disappeared, that dashboard is not valid.

Post by vAJ »

Man, I dropped the ball on this.

Are you suggesting that if we delete a given dashboard (which currently shows nothing) and recreate with the same name we potentially will get the dashboard contents back?
Andrew J. - Do you even grok?
Locked