Config import now test server redirects to prod

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Config import now test server redirects to prod

Post by jkinning »

I was performing some testing and needed some live data so I had exported and imported the information from our production Nagios XI 5.3.0 server to our test server. Now when ever you key in the IP address or the DNS name for our test instance I am presented with the production site. I was wondering where the site URL is located so I can try and change it back to the test site within the config file.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Config import now test server redirects to prod

Post by rkennedy »

Are you using SSL? I wonder if it's hardcoded to redirect to the IP / hostname here. Take a look at /etc/httpd/conf.d/ and see if you can find it in there. A grep -R 'ip or hostname of your old server' /etc/httpd/conf.d/ should help as well.

If that doesn't work, I would try to run the recursive grep against your whole filesystem and see if that helps pinpoint which file contains the redirection data.
Former Nagios Employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Config import now test server redirects to prod

Post by bwallace »

I think you mean you want to change the program URL? It's under Admin > System Setting..... the General Tab.
Be sure to check out the Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Config import now test server redirects to prod

Post by jkinning »

No, I didn't need to change the program URL as I couldn't get to the site. I was always being redirected. The solution rkennedy provided did the trick.

Thanks and you can close this at your convenience.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Config import now test server redirects to prod

Post by bwallace »

Aah, I see. Thanks for the update and I'll lock this thread now.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked