Page 1 of 1

Cant add instance to cluster

Posted: Wed Apr 08, 2020 9:24 am
by cduffy
Getting the following error when trying to add an instance to the cluster. What file permissions do I check?

Could not generate node_uuid - check file permissions

Re: Cant add instance to cluster

Posted: Fri Apr 10, 2020 3:06 pm
by ssax
What are the output of these commands (run as root)?

Code: Select all

chage -l nagios
ls -ld /usr/local/nagioslogserver/var
ls -l /usr/local/nagioslogserver/var
grep nag /etc/group
Thank you

Re: Cant add instance to cluster

Posted: Fri Apr 10, 2020 3:28 pm
by cduffy
chage -l nagios
Last password change : Oct 23, 2019
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

ls -ld /usr/local/nagioslogserver/var
drwxrwxr-x 2 nagios nagios 141 Apr 2 12:54 /usr/local/nagioslogserver/var

ls -l /usr/local/nagioslogserver/var
total 12
-rwxrwxr-x 1 nagios nagios 0 Feb 10 10:31 auditlog.log
-rwxrwxr-x 1 nagios nagios 318 Apr 8 10:22 cluster_hosts
-rw-rw-r-- 1 nagios nagios 36 Apr 8 10:22 cluster_uuid
-rw-r--r-- 1 nagios users 90 Apr 10 16:00 hosts.log
-rw-r--r-- 1 apache apache 0 Apr 10 16:27 jobs_apache.log
-rw-r--r-- 1 nagios users 0 Apr 10 16:27 jobs.log
-rw-r--r-- 1 nagios users 0 Apr 10 16:27 poller.log

grep nag /etc/group
apache:x:48:nagios
nagios:x:1000:nagios,apache

Re: Cant add instance to cluster

Posted: Fri Apr 10, 2020 4:07 pm
by ssax
Please run these commands and then try to connect it again:

Code: Select all

touch /usr/local/nagioslogserver/var/node_uuid
chown nagios.nagios /usr/local/nagioslogserver/var/node_uuid
chmod 0664 /usr/local/nagioslogserver/var/node_uuid

Re: Cant add instance to cluster

Posted: Fri Apr 10, 2020 4:35 pm
by cduffy
That seems to have done the trick. Thank you.

Re: Cant add instance to cluster

Posted: Mon Apr 13, 2020 7:38 am
by scottwilkerson
cduffy wrote:That seems to have done the trick. Thank you.
Great!

Locking thread