Page 1 of 1

XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Fri Apr 13, 2018 4:48 am
by comeonyoyo
Hi Guys

Originally I use CentOS release 5.7 (Final), XI Version : 2014R2.7
Now I have to upgrade to Cent OS 7.0 cos OS 5 doesn`t support TLS 1.2

I`ve installed a new CentOS Linux release 7.0.1406 (Core) XI Version : 2014R2.7.
And restores the old OS 5 backup successfully.

Now I can access http://X.X.X.X/nagios/

But can`t access http://X.X.X.X/nagiosxi/

It shows

------------------------------------------------------
Forbidden
You don't have permission to access /nagiosxi/ on this server
------------------------------------------------------

Does anyone encounter this situation ? any solution?

Thank you in advance

XI install error in Cent OS 7.X

Posted: Fri Apr 13, 2018 5:34 am
by comeonyoyo
Hi Guys

I`ve installed a new nagios XI Version : 2014R2.7. to CentOS Linux release 7.2, 7.3 ,7.4
But they all showed the error : The script that failed was `./ E-importnagiosql`

Please help to see how can solve the problem ,thanks^^

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Fri Apr 13, 2018 1:20 pm
by tgriep
Your first post accessing the Nagios XI GUI could be caused by a Apache Configuration issue.
Try this, login to the server as root and run the following command.

Code: Select all

tail -f /var/log/httpd/*_log
Then try and access the XI GUI. Post the output of the tail command so we can view the errors.
Post the Apache configuration files as well so we can check them.

Code: Select all

/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
In the folder where you extracted the XI source installer, there should be an install.log file.
Can you post that so we can view the full installation log?

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Sun Apr 15, 2018 11:04 pm
by comeonyoyo
Hi
The attchment is the output, pls help to see, thank you

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Mon Apr 16, 2018 2:14 pm
by tgriep
This error
AH01630: client denied by server configuration:
Is an Apache configuration issue and if you want to try and fix the issue on your server, you can take a look at this link for instructions.
http://httpd.apache.org/docs/2.4/upgrading.html#access

If not, I will need you to copy these files

Code: Select all

/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
from the Nagios server and upload them to the post so I can check the settings.

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Mon Apr 16, 2018 9:27 pm
by comeonyoyo
Here is the output, pls help to check where should be modified, thank you

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Tue Apr 17, 2018 8:17 am
by scottwilkerson
lets change your nagiosxi.conf to

Code: Select all

<Directory "/usr/local/nagiosxi/html">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   Require all granted
</Directory>

Alias /nagiosxi "/usr/local/nagiosxi/html"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
Then restart https

Code: Select all

systemctl restart httpd

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Tue Apr 17, 2018 8:38 pm
by comeonyoyo
WoW , It works .. I can access it right now.

This command ''Require all granted'' fixs it.

Thank you very much.. wish you have a wonderful day~

Re: XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Posted: Wed Apr 18, 2018 6:59 am
by scottwilkerson
Glad that was the trick.

Locking as Resolved.