Nagios Service fails to start

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
xltkx
Posts: 3
Joined: Wed Nov 20, 2013 9:34 am

Nagios Service fails to start

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Service fails to start

Post by slansing »

What version of nagios is this, on what distro, and how did you build it?
xltkx
Posts: 3
Joined: Wed Nov 20, 2013 9:34 am

Re: Nagios Service fails to start

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Service fails to start

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
xltkx
Posts: 3
Joined: Wed Nov 20, 2013 9:34 am

Re: Nagios Service fails to start

Post 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!
Locked