CyberKeeda In Social Media

nagios 4.0.8 fails to start with "Error:




nagios 4.0.8 fails to start with "Error: Failed to initialize query handler" (bind() failed: No such file or directory)

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


Nagios Core responds me these errors while starting nagios.

Fix : Error itself give us an hint about no directory error, hence leading to failure while starting  the service.

Fix:  To fix this issue I will create the missing directory manually and aligning permissions to it.



  • Depending upon your error of missing directory create it.

cybeerkeeda@Linux-Maniac:~ mkdir -p  /usr/local/nagios/var/rw/
  • Provide full permission to it.
cybeerkeeda@Linux-Maniac:~ chmod -R 777  /usr/local/nagios/var/rw/
  • Restart Nagios again
cybeerkeeda@Linux-Maniac:~ sudo service nagios restart




No comments:

Post a Comment

Designed By Kunal Saha