Page 1 of 1

Nagios Service fails to start

Posted: Wed Nov 20, 2013 9:38 am
by xltkx
Hi there!

I'm new to nagios and tried to setup my first installation today on Centos 6.4 x64 VM.
Installation with plugins and dependencies worked, but now nagios service crashes right after starting it.
Log sais:

Code: Select all

[1384957453] Local time is Wed Nov 20 15:24:13 CET 2013
[1384957453] LOG VERSION: 2.0
[1384957453] qh: Failed to init socket '/usr/local/nagios/var/rw/query.sh'. bind() failed: No such file or directory
[1384957453] Error: Failed to initialize query handler. Aborting
any ideas on that?

Thanks!
Lorenz

Re: Nagios Service fails to start

Posted: Wed Nov 20, 2013 10:13 am
by slansing
What version of nagios is this, on what distro, and how did you build it?

Re: Nagios Service fails to start

Posted: Wed Nov 20, 2013 11:18 am
by xltkx
slansing wrote:What version of nagios is this, on what distro, and how did you build it?
Hi!

- Newest Nagios DIY from Nagios-Website
- Centos 6.4
- Built from package according to instructions in INSTALL-File

Thanks

Re: Nagios Service fails to start

Posted: Wed Nov 20, 2013 11:46 am
by abrist
I would assume that you installed core 4.0.1? This bug was fixed prior to this, so your issue is an odd one. You can workaround this by adding the following line to your nagios.cfg and then restarting nagios:

Code: Select all

query_socket=/usr/local/nagios/var/rw/query.sh
And the restart:

Code: Select all

service nagios restart

Re: Nagios Service fails to start

Posted: Fri Nov 22, 2013 6:48 am
by xltkx
abrist wrote:I would assume that you installed core 4.0.1? This bug was fixed prior to this, so your issue is an odd one. You can workaround this by adding the following line to your nagios.cfg and then restarting nagios:

Code: Select all

query_socket=/usr/local/nagios/var/rw/query.sh
And the restart:

Code: Select all

service nagios restart
Thank you, that did the trick!