Certificate error during apply and in system profile

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Certificate error during apply and in system profile

Post by WillemDH »

Hello,

Since I configured an SSL certificate for our server, I'm seeing this error in our system profile and during apply configuration in cmdsubsys.log:

ERROR: certificate common name "nagios.fqdn" doesn't match requested host name "localhost".

How can I make the error go away? Everything seems to work normally, so it is probably a cosmetic error related to Nagios using localhost in the target url, instead of the fqdn hostname for which the certificate is created.

Willem
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Certificate error during apply and in system profile

Post by rkennedy »

Can you verify what your Program URL, and External URL are set to? This might be where localhost needs to be changed.
Former Nagios Employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Certificate error during apply and in system profile

Post by WillemDH »

Program URL is: https://nagiosserver/nagiosxi/

External URL is: https://nagiosserver/nagiosxi/

I don't think the issue is in the program settings.
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Certificate error during apply and in system profile

Post by scottwilkerson »

WillemDH wrote:How can I make the error go away? Everything seems to work normally, so it is probably a cosmetic error related to Nagios using localhost in the target url, instead of the fqdn hostname for which the certificate is created.
It is just that. Because your certificate doesn't match you are getting this error in the underlying calls to localhost. These calls are designed to ignore domain mismatches but we do push the full output to the cmdsubsys.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Certificate error during apply and in system profile

Post by WillemDH »

Scott,

Ok, so I can safely ignore this I guess? Sorry I can't help it, the words warning and error make my head spin and just make me start looking for ways to get rid of them..

Grtz
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Certificate error during apply and in system profile

Post by tmcdonald »

I worried about the same thing the first time I set up my own server. It is cosmetic, and I have never seen it actually affect anything.
Former Nagios employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Certificate error during apply and in system profile

Post by scottwilkerson »

WillemDH wrote:Scott,

Ok, so I can safely ignore this I guess? Sorry I can't help it, the words warning and error make my head spin and just make me start looking for ways to get rid of them..

Grtz
Yes you can safely ignore them. 99.99% of users never need to look at the cmdsbsys.log. We purposely log all error/warning output though simply because that log file is used for debugging purposes and we want the verbose output.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Certificate error during apply and in system profile

Post by hsmith »

Willem, you can also add the -q flag to the wget commands in the scripts, and the error won't jump out at you. It's not really a 'fix', but it won't be in your face.
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Certificate error during apply and in system profile

Post by WillemDH »

Ok all thanks for the input. Please close.
Nagios XI 5.8.1
https://outsideit.net
Locked