Page 1 of 1

Generate new Fusion key

Posted: Wed Feb 16, 2022 2:52 am
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?

Re: Generate new Fusion key

Posted: Wed Feb 16, 2022 5:55 pm
by ssax
I've reached out to development to get clarification on this, I will let you know what they say.

Re: Generate new Fusion key

Posted: Wed Feb 16, 2022 7:20 pm
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';"

Re: Generate new Fusion key

Posted: Thu Feb 17, 2022 9:58 am
by nagios-retail
That worked out great ..thx
This can be closed