Email reports fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mrbrico
Posts: 4
Joined: Tue Sep 17, 2013 3:37 am

Email reports fails

Post by mrbrico »

NagiosXI 2012R2.5

Issue
Downloading pdf report works fine, sending the report via email ends up with empty report

httpd error log warning certificate common name does not match hostname

I checked the CN in the cert and it matches.. I am not sure where its getting the CN mentioned in the error

WARNING: certificate common name `access.qualitas-it.com' doesn't match requested host name `access.centerpriseps.co.uk'.
HTTP request sent, awaiting response... 404 Not Found

Cert subject output
subject= /C=UK/ST=London/L=London/O=Centerprise International/OU=Professional Services/CN=access.centerpriseps.co.uk

Thanks in advance
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email reports fails

Post by abrist »

Do you use ssl then?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mrbrico
Posts: 4
Joined: Tue Sep 17, 2013 3:37 am

Re: Email reports fails

Post by mrbrico »

Hi

Yes SSL is enabled, although the error is the same if I access using http..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email reports fails

Post by lmiltchev »

Go to CCM->Manage System Config and post a screenshot of this page. Also, run the following command and post the output:

Code: Select all

cat /etc/hosts
Be sure to check out our Knowledgebase for helpful articles and solutions!
mrbrico
Posts: 4
Joined: Tue Sep 17, 2013 3:37 am

Re: Email reports fails

Post by mrbrico »

Hosts file
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
172.20.10.126 qualngs.local.qualitas-it.net qualngs
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost

I do not see anything related to the error though..
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email reports fails

Post by lmiltchev »

Can you go to Admin->Manage System Config and clear out temporarily the text from the "External URL" text box, click on the "Update Settings", and test reporting again? I believe this can be causing the issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mrbrico
Posts: 4
Joined: Tue Sep 17, 2013 3:37 am

Re: Email reports fails

Post by mrbrico »

I removed the external address and it does now work..

Thank you very much for the help
Locked