Cant add instance to cluster

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Cant add instance to cluster

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Cant add instance to cluster

Post 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
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Re: Cant add instance to cluster

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Cant add instance to cluster

Post 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
cduffy
Posts: 13
Joined: Fri Apr 17, 2015 7:27 am

Re: Cant add instance to cluster

Post by cduffy »

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

Post by scottwilkerson »

cduffy wrote:That seems to have done the trick. Thank you.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked