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
Cant add instance to cluster
Re: Cant add instance to cluster
What are the output of these commands (run as root)?
Thank you
Code: Select all
chage -l nagios
ls -ld /usr/local/nagioslogserver/var
ls -l /usr/local/nagioslogserver/var
grep nag /etc/groupRe: Cant add instance to cluster
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
48:nagios
nagios
1000:nagios,apache
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
nagios
Re: Cant add instance to cluster
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_uuidRe: Cant add instance to cluster
That seems to have done the trick. Thank you.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cant add instance to cluster
Great!cduffy wrote:That seems to have done the trick. Thank you.
Locking thread