Nagiosxi Apache failed to start

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jdk
Posts: 10
Joined: Tue Mar 31, 2020 2:48 am

Nagiosxi Apache failed to start

Post by jdk »

Reported to me this morning - this was working on the 11 Mar - no changes that I am aware of. GUI not available.

[root@cr-netmon ~]# apachectl status
* httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-03-13 09:23:11 GMT; 7min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 21411 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 21327 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 21327 (code=exited, status=1/FAILURE)

Mar 13 09:23:10 cr-netmon.pharms-services.com systemd[1]: Starting The Apache HTTP Server...
Mar 13 09:23:11 cr-netmon.pharms-services.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 13 09:23:11 cr-netmon.pharms-services.com kill[21411]: kill: cannot find process ""
Mar 13 09:23:11 cr-netmon.pharms-services.com systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 13 09:23:11 cr-netmon.pharms-services.com systemd[1]: Failed to start The Apache HTTP Server.
Mar 13 09:23:11 cr-netmon.pharms-services.com systemd[1]: Unit httpd.service entered failed state.
Mar 13 09:23:11 cr-netmon.pharms-services.com systemd[1]: httpd.service failed.

Config test is okay

[root@cr-netmon ~]# apachectl configtest
Syntax OK

httpd error.log file has the following

[root@cr-netmon httpd]# cat error_log
[Sun Mar 13 03:23:02.108575 2022] [lbmethod_heartbeat:notice] [pid 689] AH02282: No slotmem from mod_heartmonitor
[Sun Mar 13 03:23:02.112151 2022] [ssl:emerg] [pid 689] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more informat ion
[Sun Mar 13 06:54:42.164307 2022] [suexec:notice] [pid 1147] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 13 06:54:42.169068 2022] [ssl:emerg] [pid 1147] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
[Sun Mar 13 09:17:39.305739 2022] [suexec:notice] [pid 1150] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 13 09:17:39.315150 2022] [ssl:emerg] [pid 1150] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
[Sun Mar 13 09:23:11.081069 2022] [suexec:notice] [pid 21327] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 13 09:23:11.084447 2022] [ssl:emerg] [pid 21327] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information

I have restarted the VM, however same issue exists.

Any assistance would be great.
jdk
Posts: 10
Joined: Tue Mar 31, 2020 2:48 am

Re: Nagiosxi Apache failed to start

Post by jdk »

I got this resolved by recreating the self signed certificate on the server. Once I did this, Apache restarted okay.
User avatar
kfanselow
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm

Re: Nagiosxi Apache failed to start

Post by kfanselow »

Hi JDK,

Glad you were able to resolve the issue and thank you for the explanation.

We'll lock out the thread.

Thanks and Best Regards,
Keith
Locked