lmiltchev wrote:I see "500 Internal Server Error" in the log. Are you using a proxy or SSL?
I'm not sure I understand the question. Are we using proxy or SSL between what and what? The error is appearing inside nagios log performing a nagios internal command. The 500 response it to
http://localhost request so I doubt either ssl or proxy is in play.
lmiltchev wrote:Do you see the same error, when you run reconfigure_nagios.sh from the command line as nagios user?
Code: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Yes I do
Code: Select all
./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://loca lhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'subm it=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=5 XU7Aq7W9PMN' -O nagiosql.login--2017-11-13 09:05:00-- http://localhost/nagiosxi /includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
[ <=> ] 37,760 --.-K/s in 0.05s
2017-11-13 09:05:01 (750 KB/s) - ‘nagiosql.login’ saved [37760]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
Another reconfigure process is still running, sleeping...
........ 2 pages of the above message .......
Another reconfigure process is still running, sleeping...
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=5XU7Aq7W9PMN' -O nagiosql.login--2017-11-13 09:10:03-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
[ <=> ] 37,760 --.-K/s in 0.02s
2017-11-13 09:10:03 (1.85 MB/s) - ‘nagiosql.login’ saved [37760]
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2017-11-13 09:10:04-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2017-11-13 09:10:04 ERROR 500: Internal Server Error.
NAGIOSQL WRITE CONFIGS FAILED!\n
lmiltchev wrote:
Have you tried resetting the permissions?
Code: Select all
/usr/local/nagiosxi/scripts/reset_config_perms.sh
I have tried that and it did not help
lmiltchev wrote:
Is the nagios or apache user accounts expired (not active)?
No. They are set to never expire
Code: Select all
> chage nagios -l
Last password change : Sep 18, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
> chage apache -l
Last password change : Sep 18, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
lmiltchev wrote:
Do you see config errors when you run the Write Config Tool from the web UI (CCM > Tools > Config File Management > Write Configs > Verify Files)?
I don't think so. When I press "Write Configs" screen goes blank ( except menus on top and left . No errors in the cmdsubsys.log. "Verify Files" works
lmiltchev wrote:
What is the "max_execution_time" value in the php.ini file?
Code: Select all
grep max_execution_time /etc/php.ini
Code: Select all
> grep max_execution_time /etc/opt/rh/rh-php56/php.ini
max_execution_time = 60