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.
Similar to issue faced at https://support.nagios.com/forum/viewto ... =7&t=22141 , I installed Nagios Core 4.0.8 on CentOS7 and running into same issue inspite of configuring the query_socket variable. Even after adding the said variable, I run into error:
Dec 11 06:05:56 0.nserver.com nagios[23593]: Nagios 4.0.8 starting... (PID=23593)
Dec 11 06:05:56 0.nserver.com nagios[23593]: Local time is Fri Dec 11 06:05:56 UTC 2015
Dec 11 06:05:56 0.nserver.com nagios[23593]: qh: Failed to init socket '/usr/local/nagios/var/rw/query.sh'. bind() failed: No such file or directory
Dec 11 06:05:56 0.nserver.com nagios[23593]: Error: Failed to initialize query handler. Aborting
Dec 11 06:05:56 0.nserver.com systemd[1]: nagios.service: main process exited, code=exited, status=1/FAILURE
Dec 11 06:05:56 0.nserver.com systemd[1]: Unit nagios.service entered failed state.
I am installing Nagios using Salt from EPEL repo directly from binaries. I was able to work around the issue by creating the directory /usr/local/nagios/rw/query and making sure nagios and subdirectories are owned by user & group nagios. Though still wondering why would installation not do it by itself. Since the installation is done as root user through salt-minion, access should not be an issue.