web service that uses client certificates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tdang
Posts: 4
Joined: Thu Dec 24, 2015 10:58 am

Re: web service that uses client certificates

Post by tdang »

permission is 777
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: web service that uses client certificates

Post by rkennedy »

Can you run the actual ls -l /usr/local/nagiosxi command and post the result?
Former Nagios Employee
awang
Posts: 25
Joined: Wed Jun 17, 2015 12:32 pm

Re: web service that uses client certificates

Post by awang »

output:

Code: Select all

lrwxrwxrwx 1 nagios nagios 14 Jan 18 16:50 /usr/local/nagiosxi -> /data/nagiosxi
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: web service that uses client certificates

Post by rkennedy »

Since it's linked, can you run this? -

Code: Select all

ls -l /data/nagiosxi
Former Nagios Employee
awang
Posts: 25
Joined: Wed Jun 17, 2015 12:32 pm

Re: web service that uses client certificates

Post by awang »

output:

Code: Select all

[awang@lltcnagios-sed02 ~]$ ls -l /data/nagiosxi
total 56
drwxr-xr-x  2 nagios nagios 4096 Jun  5  2015 cron
drwxr-xr-x  3 nagios nagios 4096 Jun  5  2015 etc
drwxr-xr-x 19 nagios nagios 4096 Jan 18 18:24 html
-rwxrwxrwx  1 root   root   4424 Nov 12 15:57 NagiosCertificate.pem
-rwxr--r--  1 root   root   8952 Nov 12 15:57 NagiosCert.pem
-rw-r--r--  1 root   root      0 Nov 12 15:57 NagiosCert.pvk
-rwxrwxrwx  1 root   root   1679 Nov 12 15:57 NagiosKey.pem
drwxr-xr-x  3 nagios nagios 4096 Jun  5  2015 nom
drwxr-xr-x  2 nagios nagios 4096 Jan 20 10:35 scripts
drwsrwsr-x  2 apache nagios 4096 Jan 19 15:07 tmp
drwxr-xr-x  2 nagios nagios 4096 Jun  5  2015 tools
drwxr-xr-x  5 nagios nagios 4096 Jan 21 08:30 var
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: web service that uses client certificates

Post by rkennedy »

I think the issue is going to be the root:root permissions on those files. Can you change them to apache:nagios?

Code: Select all

-rwxrwxrwx  1 root   root   4424 Nov 12 15:57 NagiosCertificate.pem
-rwxr--r--  1 root   root   8952 Nov 12 15:57 NagiosCert.pem
-rw-r--r--  1 root   root      0 Nov 12 15:57 NagiosCert.pvk
-rwxrwxrwx  1 root   root   1679 Nov 12 15:57 NagiosKey.pem
Former Nagios Employee
tdang
Posts: 4
Joined: Thu Dec 24, 2015 10:58 am

Re: web service that uses client certificates

Post by tdang »

We're still having the same issue after changing to apache.

[awang@lltcnagios-sed02 ~]$ ls -l /data/nagiosxi
-rwxrwxrwx 1 apache nagios 4424 Nov 12 15:57 NagiosCertificate.pem
-rwxrwxrwx 1 apache nagios 1679 Nov 12 15:57 NagiosKey.pem
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: web service that uses client certificates

Post by rkennedy »

This may be the root permissions then, can you verify what the permissions are on /data/nagiosxi, and /data/?
Former Nagios Employee
Locked