active xi license from shell command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

active xi license from shell command

Post by elade »

Hi,

There is any way to activate XI license from server shell and not from the GUI?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: active xi license from shell command

Post by benjaminsmith »

Hi @elade,

That functionality doesn't exist int the API, and I can submit a feature request on your behalf if you'd like. However, the license keys are stored in the nagiosxi database, and you can query the db for view license keys/update values.

See this post: Get license Key from the command line

For a mysql/mariadb datatabase, run the following command to view the license:

Code: Select all

echo "SELECT value FROM xi_options where name='license_key';" | mysql -u root -pnagiosxi nagiosxi
To change the license key values, run the following command:

Code: Select all

echo "UPDATE xi_options SET value='###licensekey###' where name='license_key';" | mysql -u root -pnagiosxi nagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: active xi license from shell command

Post by elade »

Hi benjaminsmith,

I would like to add this as feature request.

You can close the topic.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: active xi license from shell command

Post by benjaminsmith »

Hi @elade,
I would like to add this as feature request.
Will do. Thanks for the input.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: active xi license from shell command

Post by benjaminsmith »

Hi @elade,

Update. Turns out that if you're running a recent version of Nagios XI, you can do this from the command line from the following script:

Code: Select all

/usr/local/nagiosxi/tools/mod_license.php --help
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: active xi license from shell command

Post by elade »

This mod is not appear in version 5.5.8 under /usr/local/nagiosxi/tools/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: active xi license from shell command

Post by scottwilkerson »

elade wrote:This mod is not appear in version 5.5.8 under /usr/local/nagiosxi/tools/
That is correct, it was added in 5.6.3
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked