host nagios
Posted: Wed Aug 26, 2015 6:19 am
Hi everybody,
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!
Can somebody help me?
Thanks
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!
So I check configuration and its okay: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.
And in logs:Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 12 services.
Checked 2 hosts.
Checked 2 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
I also do the next solution but it keeps on not work. https://support.nagios.com/forum/viewto ... =7&t=22141[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
Can somebody help me?
Thanks