Page 1 of 1

./fullinstall script failed to start httpd.service

Posted: Mon Sep 25, 2017 8:39 am
by btgnrw
Hi,

Followed the install instruction on a clean RHEL 7.4 HP Gen9 server.

When running the ./fullinstall as root it fails due to failure to start httpd. Trying to start httpd manually using systemctl start httpd.service using bash also fails.

ยค httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor prese
t: disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
Unit -.service could not be found.

Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor prese
t: disabled)
Active: failed (Result: signal) since Mon 2017-09-25 12:23:37 BST; 1min 46s a go
Docs: man:httpd(8)
man:apachectl(8)
Process: 2620 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, si
gnal=KILL)
Main PID: 2620 (code=killed, signal=KILL)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/s
ec"
CGroup: /system.slice/httpd.service

Sep 25 12:20:36 xxxxxx systemd[1]: Starting The Apache HTT...
Sep 25 12:22:07 xxxxxx systemd[1]: httpd.service start ope...
Sep 25 12:23:37 xxxxxx systemd[1]: httpd.service stop-fina...
Sep 25 12:23:37 xxxxxx systemd[1]: httpd.service: main pro...
Sep 25 12:23:37 xxxxxx systemd[1]: Failed to start The Apa...
Sep 25 12:23:37 xxxxxx systemd[1]: Unit httpd.service ente...
Sep 25 12:23:37 xxxxxx systemd[1]: httpd.service failed.

Re: ./fullinstall script failed to start httpd.service

Posted: Mon Sep 25, 2017 11:25 am
by dwasswa
Hi @ btgnrw,

What version of Nagios XI are you trying to install?
The reason why am asking is because XI runs or is configured differently for some versions of linux.

Also, please check if port 80 on your XI server is open.This is because the firewall (iptables) could be blocking blocking port 80.

Please run the command below to check if port 80 is open.

Code: Select all

iptables -L -n | grep 80
If the port is open,you should get the following output...

Code: Select all

ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80
In addition,httpd runs on port 80 so you need to make sure you didn't already assign another application or service to that port.

Here is how you can check on what ports are open or closed on your server and what services or applications are listening on those ports.
For example when i run the command

Code: Select all

nmap  <my ip address>
, it gives me back

Code: Select all

PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
443/tcp  open  https
3306/tcp open  mysql
5666/tcp open  nrpe
You can run

Code: Select all

man nmap 
for more options ports,hosts and services on your server or network

Re: ./fullinstall script failed to start httpd.service

Posted: Mon Sep 25, 2017 11:26 am
by dwhitfield
In addition to what @dwassea asked, what's the output of sestatus? Also, please attach your /etc/sudoers, the install log (in the same directory as the fullinstall script), and the contents of conf.d.

Lastly, can you link us to the install instructions you are using?

Re: ./fullinstall script failed to start httpd.service

Posted: Wed Sep 27, 2017 4:14 am
by btgnrw
I rebuilt the server and did a clean curl https://nagios.com/downloads/nagiosxi/install.sh | sh

The install was successful this time.

Thanks :D

Re: ./fullinstall script failed to start httpd.service

Posted: Wed Sep 27, 2017 10:01 am
by kyang
Glad the curl was successful!

I'll be locking this thread now as resolved if you have more questions feel free to create another thread.
Thank you for using Nagios Support Forums!