Exporting Dashboards

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Exporting Dashboards

Post by blariv »

Hi,

built a latest version nagiosXI server. I have exported everything over but cant figure out if I can export the custom dashboards we created, any ideas?

Thanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Exporting Dashboards

Post by npolovenko »

Hello, @blariv. Did you use a backup-restore to transfer everything over to the new server? Or did you manually export the configuration files?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Exporting Dashboards

Post by blariv »

I had to do it manually since I went from 2012 to the latest version
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Exporting Dashboards

Post by npolovenko »

@blariv, There's no easy way to do this since all dashboards information is stored in the database. So, technically you could dump the database tables and entries from the old system and then reinsert them into the new one. But there's no guarantee that the table structure stayed the same in the new XI. So you risk damaging your new XI database. Here's the MYSQL query to extract the dashboard information from the database:

Code: Select all

echo "select * from xi_usermeta where keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Exporting Dashboards

Post by blariv »

that is not working on the old system.

what are people doing other than recreating all their dashboards?

[root@nagiosxi ~]# echo "select * from xi_usermeta where keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi
ERROR 1049 (42000): Unknown database 'nagiosxi'
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Exporting Dashboards

Post by tgriep »

The old system is probably using the Postgress database so you would have to use this command instead.

Code: Select all

echo "select * from xi_usermeta where keyname = 'dashboards';" | psql nagiosxi nagiosxi
Be sure to check out our Knowledgebase for helpful articles and solutions!
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Exporting Dashboards

Post by blariv »

thanks for all the help, you can close this
Locked