Page 2 of 2

Re: Nagios not starting

Posted: Thu Jun 08, 2017 10:03 am
by tgriep
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

Re: Nagios not starting

Posted: Fri Jun 09, 2017 7:00 am
by brooks05
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

Posted: Fri Jun 09, 2017 9:04 am
by tgriep
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.