Question

Getting Nagios setup for the first time.

Hello,

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 (https://www.digitalocean.com/community/tutorials/how-to-install-nagios-4-and-monitor-your-servers-on-centos-7)

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.

Subscribe
Share

Sorry for the format text above, I didn’t know how to edit my post to fix it.


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

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.

Oh that’s great! Well done :)

Regards, Bobby

Just an update, after I run all these command again (https://assets.nagios.com/downloads/nagioscore/docs/Nagios-Core-Installing-On-Centos7.pdf#_ga=2.175257890.1451548335.1562281975-513490159.1562281975) it started my nagios. I just don’t know how messy this is now :)

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

Hello,

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