Generate new Fusion key

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagios-retail
Posts: 36
Joined: Mon Feb 09, 2015 3:32 am

Generate new Fusion key

Post by nagios-retail »

Hello,

We have serveral Nagios servers running and we are using fusion to have an overview.
Since we are not installing a new server from scratch when we need a new one, and take a copy of an existing server the Fusion key on the new server is the same as then one we made the copy from.
For the Fusion server this does not appear to be a problem but I would like to have a uniek Fusion key for every server.
How do I generate a new Fusion key on an existing server?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Generate new Fusion key

Post by ssax »

I've reached out to development to get clarification on this, I will let you know what they say.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Generate new Fusion key

Post by ssax »

You can regenerate the fusekey like this:

Code: Select all

mysql -unagiosxi -p'n@gweb' nagiosxi -e "UPDATE xi_options SET value = '$(php -r 'echo strtoupper(md5(uniqid()));')' WHERE name = 'fusekey';"
For an offloaded DB (database stored on a separate server):

Code: Select all

mysql -h X.X.X.X -unagiosxi -p'n@gweb' nagiosxi -e "UPDATE xi_options SET value = '$(php -r 'echo strtoupper(md5(uniqid()));')' WHERE name = 'fusekey';"
nagios-retail
Posts: 36
Joined: Mon Feb 09, 2015 3:32 am

Re: Generate new Fusion key

Post by nagios-retail »

That worked out great ..thx
This can be closed
Locked