Page 1 of 1

reusing dashboard?

Posted: Wed Jan 02, 2019 2:14 pm
by lukesullivan
I need to make a series of dashboards, where the panels and layouts will all be the same. The one thing that varies from dashboard to dashboard is the hostgroup that the dashboard is built from.

Is there a way outside of the nagiosxi web ui to duplicate or modify dashboards? I would prefer not to have to rebuild each dashboard by clicking through the ui. Not only is that time consuming and cumbersome, it's also error prone.

thanks,

-Luke

Re: reusing dashboard?

Posted: Wed Jan 02, 2019 4:17 pm
by npolovenko
@lukesullivan, Unfortunately, this is not supported. Dashboards are php-serialized in the database making it hard to make changes on the fly.
echo "SELECT * FROM xi_usermeta WHERE keyname = 'dashboards';" | mysql -uroot -pnagiosxi nagiosxi

Re: reusing dashboard?

Posted: Thu Jan 03, 2019 8:37 am
by lukesullivan
thanks. I dont need to make the changes on the fly, I would just like a way to build one dashboard, then make N copies of the dashboard referencing different hostgroups.

Is the direct access / modification of the database a supported mechanism? I dont mind doing that, it's straightforward enough.

thanks,

-Luke

Re: reusing dashboard?

Posted: Thu Jan 03, 2019 12:28 pm
by npolovenko
@lukesullivan, Making direct changes in the database is not recommended or supported. But if you choose to try this on your own please make a backup of your XI server or take a snapshot of the VM. That way you could always revert back if something unexpected happens.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf