httpd.service start failed on Nagios XI offline install
Posted: Tue Jan 19, 2016 3:54 am
We tried Nagios XI offline install on RHEL 7.X and we couldn't complete the installation with these errors. Any help to resolve this issue would be much appreciated!
# cat xi-install.log
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl start mariadb.service
Initializing MySQL...
MySQL root password is now set to: nagiosxi
MySQL initialized OK
Note: Forwarding request to 'systemctl disable postgresql.service'.
Database servers initialized OK
/etc/services updated
sudoers configured OK
ln -s '/dev/null' '/etc/systemd/system/firewalld.service'
ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables.service'
Firewall rules updated OK
SELinux Disabled
Database backups configured OK
PHP limits configured OK
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Adding Sourceguardian extension to php.ini
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6 tmp]# systemctl status httpd.service -l
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Tue 2016-01-19 03:08:14 EST; 4min 28s ago
Process: 19543 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 19541 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 19541 (code=exited, status=1/FAILURE)
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c httpd[19541]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c httpd[19541]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is emptyJan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c kill[19543]: kill: cannot find process ""
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: Failed to start The Apache HTTP Server.
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: Unit httpd.service entered failed state.
[root@pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6 tmp]# journalctl -xn
-- Logs begin at Fri 2016-01-15 12:56:24 EST, end at Tue 2016-01-19 03:12:42 EST. --
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.336 1178 WARNING os_collect_config.local [
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.337 1178 WARNING os_collect_config.local [
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.337 1178 WARNING os_collect_config.zaqar [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.367 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.486 1178 WARNING os_collect_config.ec2 [-]
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.486 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.local [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.local [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.zaqar [
htttpd.service File
# cat /usr/lib/systemd/system/httpd.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
# We want systemd to give httpd some time to finish gracefully, but still want
# it to kill httpd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
# httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Note:
We actually conned to this Nagios XI node via "SSH -i" from a different node as we didn't have the login credentials. Unsure if this has anything to do with this error
Regards,
Sundar
# cat xi-install.log
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl start mariadb.service
Initializing MySQL...
MySQL root password is now set to: nagiosxi
MySQL initialized OK
Note: Forwarding request to 'systemctl disable postgresql.service'.
Database servers initialized OK
/etc/services updated
sudoers configured OK
ln -s '/dev/null' '/etc/systemd/system/firewalld.service'
ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables.service'
Firewall rules updated OK
SELinux Disabled
Database backups configured OK
PHP limits configured OK
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Adding Sourceguardian extension to php.ini
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6 tmp]# systemctl status httpd.service -l
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Tue 2016-01-19 03:08:14 EST; 4min 28s ago
Process: 19543 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 19541 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 19541 (code=exited, status=1/FAILURE)
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c httpd[19541]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c httpd[19541]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is emptyJan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c kill[19543]: kill: cannot find process ""
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: Failed to start The Apache HTTP Server.
Jan 19 03:08:14 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c systemd[1]: Unit httpd.service entered failed state.
[root@pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6 tmp]# journalctl -xn
-- Logs begin at Fri 2016-01-15 12:56:24 EST, end at Tue 2016-01-19 03:12:42 EST. --
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.336 1178 WARNING os_collect_config.local [
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.337 1178 WARNING os_collect_config.local [
Jan 19 03:12:12 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:12.337 1178 WARNING os_collect_config.zaqar [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.367 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.486 1178 WARNING os_collect_config.ec2 [-]
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.486 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os-collect-config [-] Sou
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.local [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.local [
Jan 19 03:12:42 pq-infra-001-711a62ae-5765-4d08-8242-f2d14cb648c6.ebiz.verizon.c os-collect-config[1178]: 2016-01-19 03:12:42.487 1178 WARNING os_collect_config.zaqar [
htttpd.service File
# cat /usr/lib/systemd/system/httpd.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
# We want systemd to give httpd some time to finish gracefully, but still want
# it to kill httpd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
# httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Note:
We actually conned to this Nagios XI node via "SSH -i" from a different node as we didn't have the login credentials. Unsure if this has anything to do with this error
Regards,
Sundar