Your host definition for server1 is missing a lot of the the required directives. Take a look at the link below for the needed directives, add them in and nagios should start.
https://assets.nagios.com/downloads/nag ... .html#host
Nagios not starting
Re: Nagios not starting
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios not starting
I can't win. -v passes, but -d fails now. still wont start
Code: Select all
● nagios.service - Nagios Network Monitoring
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-06-09 11:51:30 UTC; 45s ago
Docs: https://www.nagios.org/documentation/
Process: 27063 ExecStopPost=/usr/bin/rm -f /var/spool/nagios/cmd/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 27066 ExecStart=/usr/sbin/nagios -d /etc/nagios/nagios.cfg (code=exited, status=1/FAILURE)
Process: 27064 ExecStartPre=/usr/sbin/nagios -v /etc/nagios/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 17268 (code=exited, status=0/SUCCESS)
Jun 09 11:51:29 hostname systemd[1]: Starting Nagios Network Monitoring...
Jun 09 11:51:30 hostname systemd[1]: nagios.service: control process exited, code=exited status=1
Jun 09 11:51:30 hostname systemd[1]: Failed to start Nagios Network Monitoring.
Jun 09 11:51:30 hostname systemd[1]: Unit nagios.service entered failed state.
Jun 09 11:51:30 hostname systemd[1]: nagios.service failed.
Re: Nagios not starting
You would have to look in the log files in the /var/log folder but from an earlier post, is shows that selinux is enabled on the server and that is probably the issue.
Disable selinux on the server and see if it starts for you.
Disable selinux on the server and see if it starts for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!