Page 1 of 1

Report Emails

Posted: Wed Apr 09, 2014 12:29 pm
by Sbergonzi
I'm setting up the production server for our NagiosXI implementation and testing different features. Sending a report via email isn't working. It works fine in our non-production server installation.

I noticed the URL has a %2F in the non-prod and not in the prod email sent out. I added this to the prod URL and it works fine. Where does this URL get build from?

Non-Prod: .....%2Fnagiosxi%2Freports%2Favailability.php%3F
Production: .....%2Fnagiosxireports%2Favailability.php%3F

Re: Report Emails

Posted: Wed Apr 09, 2014 4:23 pm
by tmcdonald
Can you go to Admin -> Manage System Config and confirm what is in the Program URL and External URL fields for each server? I have a feeling the prod might be missing a trailing forward slash in the Program URL.

Re: Report Emails

Posted: Wed Apr 09, 2014 4:33 pm
by Sbergonzi
That was it! I had changed from IP to DNS and took out the trailing '/' by accident.

thank you!!

Re: Report Emails

Posted: Wed Apr 09, 2014 4:45 pm
by tmcdonald
Sbergonzi wrote:That was it! I had changed from IP to DNS and took out the trailing '/' by accident.

thank you!!
No problem, glad it was a quick fix. The %2F is the URL-encoded version of a forward slash. I will make a note to the devs to check for the existence of a trailing slash when building the URLs. Going to close the thread now, but feel free to open another if you need to in the future.