XI Cent OS 7.0 upgrade issue from Cent OS 5.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
comeonyoyo
Posts: 17
Joined: Fri Apr 13, 2018 4:30 am

XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Post 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
You do not have the required permissions to view the files attached to this post.
comeonyoyo
Posts: 17
Joined: Fri Apr 13, 2018 4:30 am

XI install error in Cent OS 7.X

Post 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^^
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
comeonyoyo
Posts: 17
Joined: Fri Apr 13, 2018 4:30 am

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

Post by comeonyoyo »

Hi
The attchment is the output, pls help to see, thank you
You do not have the required permissions to view the files attached to this post.
Last edited by comeonyoyo on Mon Apr 16, 2018 7:59 pm, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
comeonyoyo
Posts: 17
Joined: Fri Apr 13, 2018 4:30 am

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

Post by comeonyoyo »

Here is the output, pls help to check where should be modified, thank you
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
comeonyoyo
Posts: 17
Joined: Fri Apr 13, 2018 4:30 am

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

Post 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~
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Glad that was the trick.

Locking as Resolved.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked