Page 1 of 1

Import/Export of Full Dashboards

Posted: Fri Jun 12, 2015 10:18 am
by sav2880
Wondering if there is a way to import/export dashboards from the XI environment? Reason being, we're setting up methods for automatically creating an XI server, and while in most cases, we can do the hosts, services, hostgroups through config files that are imported outside of the Core Config environment, but is there a way to export and import a dashboard view for later use?

Re: Import/Export of Full Dashboards

Posted: Fri Jun 12, 2015 10:46 am
by jolson
Currently there is no way to backup dashboards in a granular way. If you run the backup_xi/restore_xi scripts from the /usr/local/nagiosxi/scripts directory, the backup will contain a copy of all of your dashboards.

Re: Import/Export of Full Dashboards

Posted: Fri Jun 12, 2015 11:14 am
by sav2880
Is the dashboard data stored in a file, or as records in a database?

Re: Import/Export of Full Dashboards

Posted: Fri Jun 12, 2015 12:28 pm
by ssax
It is stored as records in the postgresql database.

There are a few things to note:
- They are serialized
- I have no idea of the effect of importing them, I assume you need all the same IDs for everything so I'm not sure if they will work for importing, it could break something.

If you want to view them, you can grab them with:

Code: Select all

echo "SELECT * FROM xi_usermeta WHERE keyname = 'dashboards';" | psql nagiosxi nagiosxi