Nagios not starting

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios not starting

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
brooks05
Posts: 7
Joined: Wed Jun 07, 2017 8:08 am

Re: Nagios not starting

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios not starting

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked