XI Cent OS 7.0 upgrade issue from Cent OS 5.7

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

XI Cent OS 7.0 upgrade issue from Cent OS 5.7

Postby comeonyoyo » Fri Apr 13, 2018 4:48 am

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
Attachments
forbidden-a.png
forbidden
comeonyoyo
 
Posts: 5
Joined: Fri Apr 13, 2018 4:30 am

XI install error in Cent OS 7.X

Postby comeonyoyo » Fri Apr 13, 2018 5:34 am

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^^
Attachments
E-importnagiosql.png
comeonyoyo
 
Posts: 5
Joined: Fri Apr 13, 2018 4:30 am

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

Postby tgriep » Fri Apr 13, 2018 1:20 pm

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!
User avatar
tgriep
Madmin
 
Posts: 6551
Joined: Thu Oct 30, 2014 9:02 am

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

Postby comeonyoyo » Sun Apr 15, 2018 11:04 pm

Hi
The attchment is the output, pls help to see, thank you
Attachments
install.log
(920.36 KiB) Downloaded 5 times
nagios tail log.log
(8.46 KiB) Downloaded 6 times
httpd.log
(774 Bytes) Downloaded 6 times
Last edited by comeonyoyo on Mon Apr 16, 2018 7:59 pm, edited 1 time in total.
comeonyoyo
 
Posts: 5
Joined: Fri Apr 13, 2018 4:30 am

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

Postby tgriep » Mon Apr 16, 2018 2:14 pm

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!
User avatar
tgriep
Madmin
 
Posts: 6551
Joined: Thu Oct 30, 2014 9:02 am

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

Postby comeonyoyo » Mon Apr 16, 2018 9:27 pm

Here is the output, pls help to check where should be modified, thank you
Attachments
ssl.conf
(9.58 KiB) Downloaded 5 times
nagiosxi.conf
(373 Bytes) Downloaded 8 times
httpd.conf
(11.48 KiB) Downloaded 6 times
comeonyoyo
 
Posts: 5
Joined: Fri Apr 13, 2018 4:30 am

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

Postby scottwilkerson » Tue Apr 17, 2018 8:17 am

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
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby comeonyoyo » Tue Apr 17, 2018 8:38 pm

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~
comeonyoyo
 
Posts: 5
Joined: Fri Apr 13, 2018 4:30 am

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

Postby scottwilkerson » Wed Apr 18, 2018 6:59 am

Glad that was the trick.

Locking as Resolved.
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 9 guests