500 Internal Server Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

500 Internal Server Error

Post by nareshtis »

Hello All,

Frequently i am getting internal server error on gui, after few refresh clicks it will display the home page.
I dont see much load on the server and the network as well.
Server running with centos 7.4 and latest version of Nagios core.
I cant find anything interesting in the Nagios logs.
Please help me.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: 500 Internal Server Error

Post by cdienger »

I would take a look into /var/log/messages, /var/log/httpd/access_log, and /var/log/httpd/error_log.

How much memory is on the system? Is your browser going through a web proxy?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: 500 Internal Server Error

Post by nareshtis »

Here you go...
[root@nagiosprd]$ tail -10 /var/log/messages
Jan 18 03:55:30 nagiosprd check_nrpe: Remote 10.40.12.13 does not support Version 3 Packets
Jan 18 03:55:31 nagiosprd check_nrpe: Remote 10.40.12.15 does not support Version 3 Packets
Jan 18 03:55:31 nagiosprd check_nrpe: Remote 10.40.12.18 does not support Version 3 Packets
Jan 18 03:55:39 nagiosprd check_nrpe: Remote 10.40.12.19 does not support Version 3 Packets
Jan 18 03:55:42 nagiosprd check_nrpe: Remote 10.40.12.20 does not support Version 3 Packets
Jan 18 03:55:42 nagiosprd check_nrpe: Remote 10.40.12.21 does not support Version 3 Packets
Jan 18 03:55:51 nagiosprd check_nrpe: Remote 10.40.12.22 does not support Version 3 Packets
Jan 18 03:55:51 nagiosprd check_nrpe: Remote 10.40.12.23 does not support Version 3 Packets
Jan 18 03:55:51 nagiosprd check_nrpe: Remote 10.40.12.24 does not support Version 3 Packets


[root@nagiosprd]$ tail -10 /var/log/httpd/access_log
10.40.12.10 - - [18/Jan/2018:03:48:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:49:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:50:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:51:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:52:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:53:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:54:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:55:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:56:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
10.40.12.10 - - [18/Jan/2018:03:57:52 +0000] "GET / HTTP/1.0" 302 213 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"

[root@nagiosprd]$ tail -10 /var/log/httpd/error_log
[Wed Jan 17 11:04:06.482357 2018] [lbmethod_heartbeat:notice] [pid 14710] AH02282: No slotmem from mod_heartmonitor
[Wed Jan 17 11:04:06.491194 2018] [mpm_prefork:notice] [pid 14710] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Wed Jan 17 11:04:06.491210 2018] [core:notice] [pid 14710] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Jan 17 11:06:14.657349 2018] [mpm_prefork:notice] [pid 14710] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Jan 17 11:06:15.719621 2018] [suexec:notice] [pid 17294] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 17 11:06:15.749376 2018] [alias:warn] [pid 17294] AH00671: The Alias directive in /etc/httpd/conf.d/nagios.conf at line 71 will probably never match because it overlaps an earlier Alias.
[Wed Jan 17 11:06:15.749951 2018] [auth_digest:notice] [pid 17294] AH01757: generating secret for digest authentication ...
[Wed Jan 17 11:06:15.750473 2018] [lbmethod_heartbeat:notice] [pid 17294] AH02282: No slotmem from mod_heartmonitor
[Wed Jan 17 11:06:15.759710 2018] [mpm_prefork:notice] [pid 17294] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Wed Jan 17 11:06:15.759733 2018] [core:notice] [pid 17294] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


System has 8GB of memory and i dont use proxy to browse the nagios instance.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: 500 Internal Server Error

Post by tgriep »

Can you post your /etc/httpd/conf.d/nagios.conf file so we can check it's settings?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: 500 Internal Server Error

Post by nareshtis »

Seems like issue has been resolved, AD search taking long time to fetch the credentials.
I have fixed it.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: 500 Internal Server Error

Post by tgriep »

Glad it is working. I'll lock the post for you but feel free to open a new one for any other issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked