Are NLS Cluster IDs supposed to be unique?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
jaimie.livingston
Posts: 59
Joined: Wed Nov 23, 2016 10:41 am

Are NLS Cluster IDs supposed to be unique?

Post by jaimie.livingston »

We are evaluating NLS for our environments, and I've noticed that the cluster IDs for servers deployed from a common VM template are the same...

In the current iteration of our tests the VM template used was created in a Test&Dev environment and NLS was installed up to the point of the first login via the WebUI. We then copied the templates into the secured staging environments for additional testing. We do it in this manner as the staging environments do NOT have Internet access which appears to be required to install the NLS software.

After the NLS server VM is created in the target environment, the server hostname and IPs are set specific to that environment, and we load the NLS start/install page (http://targetserver/nagioslogserver/install) to complete the installation.

It's at this point that we've noticed that the Cluster ID for each and every cluster created from the common template is the same...

So, my questions:

How important is it for the cluster ids to be unique?
Does it matter that the cluster IDs for clusters in completely separate environments are the same?

If Cluster IDs must be unique, at what stage are they created?
Can they be changed via script, command, or config file?

Is there a better way to deploy NLS into a secure environment where Internet access is restricted or unavailable?

Thanks,

Jaimie Livingston
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Are NLS Cluster IDs supposed to be unique?

Post by scottwilkerson »

Yes they are supposed to be unique and you could run into big trouble if you had 2 different clusters with the same ID identify themselves and join one-another.

The cluster ID is set on install. If you are going to deploy from templates like this I would strongly recommend doing the following on your template machine

Code: Select all

systemctl stop cron
wait at least 1 minute from php cron's to exit

remove uuid file

Code: Select all

rm -f /usr/local/nagioslogserver/var/*_uuid
then shutdown the machine.

Or alternatively, run the following when you bring up a new template

Code: Select all

rm -f /usr/local/nagioslogserver/var/*_uuid
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jaimie.livingston
Posts: 59
Joined: Wed Nov 23, 2016 10:41 am

Re: Are NLS Cluster IDs supposed to be unique?

Post by jaimie.livingston »

Thanks. I'll test and then add this to the deployment procedures.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Are NLS Cluster IDs supposed to be unique?

Post by scottwilkerson »

jaimie.livingston wrote:Thanks. I'll test and then add this to the deployment procedures.
Sounds good
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jaimie.livingston
Posts: 59
Joined: Wed Nov 23, 2016 10:41 am

Re: Are NLS Cluster IDs supposed to be unique?

Post by jaimie.livingston »

All good.
Deleting the node and cluster UUID files on the template worked a charm.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Are NLS Cluster IDs supposed to be unique?

Post by scottwilkerson »

jaimie.livingston wrote:All good.
Deleting the node and cluster UUID files on the template worked a charm.
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked