Internal server error following login

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Internal server error following login

Post by jsharris »

Files are attached. I have no included the SSL output as SSL is not used.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Internal server error following login

Post by hsmith »

Is SELinux running? getenforce
Former Nagios Employee.
me.
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Internal server error following login

Post by jsharris »

Returns "Disabled".
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Internal server error following login

Post by hsmith »

Interesting.

How about:

Code: Select all

service httpd status
cat /etc/httpd/conf.d/nagiosxi
ls -l /usr/local/nagiosxi/html/
** I really don't think it's IPTables, but doesn't hurt... **
service iptables stop
** Then try to access your XI page ** 
Former Nagios Employee.
me.
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Internal server error following login

Post by jsharris »

[root@spnagios ~]# service httpd status
httpd (pid 1009) is running...
[root@spnagios ~]# ls -l /usr/local/nagiosxi/html/
total 432
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 about
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 account
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 addons
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 admin
-rwxr-x--- 1 nagios nagios 26932 Nov 25 14:00 ajaxhelper.php
-rwxr-x--- 1 nagios nagios 1652 Nov 25 14:00 ajaxproxy.php
drwxr-x--- 4 nagios nagios 4096 Nov 3 10:57 api
drwxr-x--- 3 nagios nagios 4096 Apr 5 2013 backend
drwxr-x--- 3 nagios nagios 4096 Nov 3 10:57 config
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.dist
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.php
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.saved
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 dashboards
drwxr-x--- 4 nagios nagios 4096 Apr 5 2013 db
drwxr-x--- 3 nagios nagios 4096 Apr 5 2013 downloads
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 help
drwxr-x--- 4 nagios nagios 12288 Nov 25 08:31 images
drwxr-x--- 12 nagios nagios 4096 Nov 3 10:57 includes
-rwxr-x--- 1 nagios nagios 884 Nov 25 14:00 index.php
-rwxr-x--- 1 nagios nagios 10086 Nov 25 14:00 install.php
-rwxr-x--- 1 nagios nagios 236960 Nov 25 14:00 login.php
-rwxr----- 1 nagios nagios 2303 Nov 25 14:00 loginsplash.inc.dist
-rwxr----- 1 nagios nagios 2212 Nov 25 14:00 loginsplash.inc.php
-rw-r----- 1 nagios nagios 2212 Nov 25 14:00 loginsplash.inc.saved
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 perfgraphs
drwxr-x--- 2 nagios nagios 4096 May 13 2014 reports
-rwxr----- 1 nagios nagios 20509 Nov 25 14:00 rr.php
-rwxr-x--- 1 nagios nagios 12206 Nov 25 14:00 suggest.php
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 tools
-rwxr-x--- 1 nagios nagios 2010 Nov 25 14:00 upgrade.php
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 views
[root@spnagios ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]

Still unable to access page. Same results.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Internal server error following login

Post by hsmith »

Can you please post the contents of /etc/httpd/conf/httpd.conf?

Also, from my previous post: cat /etc/httpd/conf.d/nagiosxi
Former Nagios Employee.
me.
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Internal server error following login

Post by jsharris »

Can you please post the contents of /etc/httpd/conf/httpd.conf?
File attached.
Also, from my previous post: cat /etc/httpd/conf.d/nagiosxi
[root@spnagios ~]# cat /etc/httpd/conf.d/nagiosxi
cat: /etc/httpd/conf.d/nagiosxi: No such file or directory

Contents of nagiosxi.conf:
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</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>
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Internal server error following login

Post by rkennedy »

Odd - looking through your config nothing stands out either. What happens if you try to access it within core at http://yourserverhere/nagios/ rather than http://yourserverhere/nagiosxi/?

When prompt, use the nagiosadmin username and password.
Former Nagios Employee
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Internal server error following login

Post by jsharris »

I can log in to core with no problem.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Internal server error following login

Post by tgriep »

Thanks for the logs but we may have missed the error. Can you run the following tail command as root in a console ion the Xi server and then try to login to XI and post the output of the tail here?

Code: Select all

tail -f /var/log/httpd/error_log
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked