Nagios Query Handler error on Mac OSX

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.
Locked
frusconi
Posts: 1
Joined: Thu Nov 05, 2015 7:08 pm

Nagios Query Handler error on Mac OSX

Post by frusconi »

I am trying to run Nagios on my Mac OS X 10.11, the core compiled fine but I can't start the daemon. The nagio.qh file doesn't exist and I can't seem to find where I can get it.

Any help would be great!


$ sudo /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Password:

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Nagios 4.1.1 starting... (PID=20407)
Local time is Thu Nov 05 18:37:44 CST 2015
qh: Failed to init socket '/usr/local/nagios/var/rw/nagios.qh'. bind() failed: No such file or directory
Error: Failed to initialize query handler. Aborting
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Query Handler error on Mac OSX

Post by rkennedy »

Try adding -

Code: Select all

query_socket=/usr/local/nagios/var/rw/query.sh
to the end of your nagios.cfg. This might work for you, let us know.
Former Nagios Employee
Locked