Getting Nagios setup for the first time.


I am pretty new to Linux and I am trying to build a Nagios Monitoring System using CentOS7 Minimal version.

I follow this instruction on building my Nagios (

However, I cannot seem to start my nagios webpage. Below are some of the command that might help.

service httpd status

Redirecting to /bin/systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:httpd(8) man:apachectl(8)

service nagios status

nagios (pid 3968) is running…

sudo apachectl configtest

AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using fe80::215:5dff:fe47:a10. Set the ‘ServerName’ directive globally to suppress this message Syntax OK

Would really appreciate any help.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Oh that’s great! Well done :)

Regards, Bobby

Just an update, after I run all these command again ( it started my nagios. I just don’t know how messy this is now :)

Will just need to learn how to user Nagios. Thanks.


Can you try the following:

  • First try starting your httpd service and then check the status again (the hostname warning that you are getting is not a problem)
  • If httpd fails to start, check your httpd error logs for the exact error that you get
  • Also use the netstat -plant command to check your ports, maybe there’s another service already listening on port 80 and that’s why apache is failing to start

If you wish you could provide me with your httpd error logs and the output of the netstat command so that I could advice further.

Regards, Bobby