Import/Export of Full Dashboards

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sav2880
Posts: 60
Joined: Tue Mar 13, 2012 8:24 am

Import/Export of Full Dashboards

Post 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?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Import/Export of Full Dashboards

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
sav2880
Posts: 60
Joined: Tue Mar 13, 2012 8:24 am

Re: Import/Export of Full Dashboards

Post by sav2880 »

Is the dashboard data stored in a file, or as records in a database?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Import/Export of Full Dashboards

Post 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
Locked