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.
I have a problem. When i configure a host in /usr/local/nagios/etc/objects/switch.cfg I put all the appropriate values for the switch. I also change in the configuration of nagios the # in the next line:
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg and finally i reload nagios.
But when i try to access in host nagios via web this error appear:
Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
[1440448177] Nagios 4.0.4 starting... (PID=19415)
[1440448177] Local time is Mon Aug 24 22:29:37 CEST 2015
[1440448177] LOG VERSION: 2.0
[1440448177] qh: Failed to init socket '/usr/local/nagios/var/rw/nagios.qh'. bind() failed: No such file or directory
[1440448177] Error: Failed to initialize query handler. Aborting
[1440583522] Nagios 4.0.4 starting... (PID=852)
[1440583522] Local time is Wed Aug 26 12:05:22 CEST 2015
[1440583522] LOG VERSION: 2.0
[1440583522] qh: Failed to init socket '/usr/local/nagios/var/rw/nagios.qh'. bind() failed: No such file or directory
[1440583522] Error: Failed to initialize query handler. Aborting
[1440586045] Nagios 4.0.4 starting... (PID=4119)
[1440586045] Local time is Wed Aug 26 12:47:25 CEST 2015
[1440586045] LOG VERSION: 2.0
[1440586045] qh: Failed to init socket '/usr/local/nagios/var/rw/nagios.qh'. bind() failed: No such file or directory
[1440586045] Error: Failed to initialize query handler. Aborting