Problem Description
When entering in your license key in Nagios Log Server, after clicking the Set Key button the screen refreshes and the license key you just entered is not shown.
Resolution
To resolve this problem you will need to enter the license key in a terminal session on one of your Nagios Log Server instances.
Establish a terminal session to one of your Nagios Log Server nodes.
Execute this command first:
curl -XDELETE 'http://localhost:9200/nagioslogserver/cf_option/license_key'
You should get output similar to this retuned:
{"found":false,"_index":"nagioslogserver","_type":"cf_option","_id":"license_key","_version":1}
The next command requires you to provide your license key, this this example it is AAAAAA-BBBBBB-CCCCCC-DDDDDD:
curl -XPUT 'http://localhost:9200/nagioslogserver/cf_option/license_key' -d '{"created":"date +\"%Y-%m-%d %T\"","created_by":"1","value":"AAAAAA-BBBBBB-CCCCCC-DDDDDD","modified_by":"1"}'
You should get output similar to this retuned:
{"_index":"nagioslogserver","_type":"cf_option","_id":"license_key","_version":4,"created":true}
You can now navigate to the License page in Nagios Log Server and you'll see the license key is now applied.
Final Thoughts
For any support related questions please visit the Nagios Support Forums at: