Page 2 of 2

Re: where is hosts.cfg and service.cfg

Posted: Fri Jul 10, 2015 10:02 am
by sbacarach
juil. 10 16:55:46 soaserver su[12420]: (to nagios) root on none
juil. 10 16:55:46 soaserver systemd[1]: Starting Session c14 of user nagios.
juil. 10 16:55:46 soaserver systemd[1]: Started Session c14 of user nagios.
juil. 10 16:55:46 soaserver su[12420]: pam_unix(su-l:session): session opened for user nagios by (uid=0)
juil. 10 16:55:46 soaserver su[12420]: pam_unix(su-l:session): session closed for user nagios
juil. 10 16:55:46 soaserver nagios[12418]: Starting nagios:
juil. 10 16:55:46 soaserver nagios[12418]: Nagios Core 4.0.4
juil. 10 16:55:46 soaserver nagios[12418]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
juil. 10 16:55:46 soaserver nagios[12418]: Copyright (c) 1999-2009 Ethan Galstad
juil. 10 16:55:46 soaserver nagios[12418]: Last Modified: 03-14-2014
juil. 10 16:55:46 soaserver nagios[12418]: License: GPL
juil. 10 16:55:46 soaserver nagios[12418]: Website: http://www.nagios.org
juil. 10 16:55:46 soaserver nagios[12418]: Reading configuration data...
juil. 10 16:55:46 soaserver nagios[12418]: Read main config file okay...
juil. 10 16:55:46 soaserver nagios[12418]: Error: Could not find any host matching 'srv64' (config file '/usr/local/nagios/etc/objects/services.cfg', starting on line 10)
juil. 10 16:55:46 soaserver nagios[12418]: Error: Failed to expand host list 'srv64' for service 'Memory' (/usr/local/nagios/etc/objects/services.cfg:10)
juil. 10 16:55:46 soaserver nagios[12418]: Error processing object config files!
juil. 10 16:55:46 soaserver nagios[12418]: ***> One or more problems was encountered while processing the config files...
juil. 10 16:55:46 soaserver nagios[12418]: Check your configuration file(s) to ensure that they contain valid
juil. 10 16:55:46 soaserver nagios[12418]: directives and data defintions. If you are upgrading from a previous
juil. 10 16:55:46 soaserver nagios[12418]: version of Nagios, you should be aware that some variables/definitions
juil. 10 16:55:46 soaserver nagios[12418]: may have been removed or modified in this version. Make sure to read
juil. 10 16:55:46 soaserver nagios[12418]: the HTML documentation regarding the config files, as well as the
juil. 10 16:55:46 soaserver nagios[12418]: 'Whats New' section to find out what has changed.
juil. 10 16:55:46 soaserver systemd[1]: nagios.service: control process exited, code=exited status=8
juil. 10 16:55:46 soaserver systemd[1]: Unit nagios.service entered failed state.
juil. 10 16:56:11 soaserver su[12740]: (to nagios) root on none
juil. 10 16:56:11 soaserver systemd[1]: Starting Session c15 of user nagios.
juil. 10 16:56:11 soaserver systemd[1]: Started Session c15 of user nagios.
juil. 10 16:56:12 soaserver su[12740]: pam_unix(su-l:session): session opened for user nagios by (uid=0)
juil. 10 16:56:12 soaserver su[12740]: pam_unix(su-l:session): session closed for user nagios
juil. 10 16:56:12 soaserver nagios[12738]: Starting nagios:
juil. 10 16:56:12 soaserver nagios[12738]: Nagios Core 4.0.4
juil. 10 16:56:12 soaserver nagios[12738]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
juil. 10 16:56:12 soaserver nagios[12738]: Copyright (c) 1999-2009 Ethan Galstad
juil. 10 16:56:12 soaserver nagios[12738]: Last Modified: 03-14-2014
juil. 10 16:56:12 soaserver nagios[12738]: License: GPL
juil. 10 16:56:12 soaserver nagios[12738]: Website: http://www.nagios.org
juil. 10 16:56:12 soaserver nagios[12738]: Reading configuration data...
juil. 10 16:56:12 soaserver nagios[12738]: Read main config file okay...
juil. 10 16:56:12 soaserver nagios[12738]: Error: Could not find any host matching 'srv64' (config file '/usr/local/nagios/etc/objects/services.cfg', starting on line 10)
juil. 10 16:56:12 soaserver nagios[12738]: Error: Failed to expand host list 'srv64' for service 'Memory' (/usr/local/nagios/etc/objects/services.cfg:10)
juil. 10 16:56:12 soaserver nagios[12738]: Error processing object config files!
juil. 10 16:56:12 soaserver nagios[12738]: ***> One or more problems was encountered while processing the config files...
juil. 10 16:56:12 soaserver nagios[12738]: Check your configuration file(s) to ensure that they contain valid
juil. 10 16:56:12 soaserver nagios[12738]: directives and data defintions. If you are upgrading from a previous
juil. 10 16:56:12 soaserver nagios[12738]: version of Nagios, you should be aware that some variables/definitions
juil. 10 16:56:12 soaserver nagios[12738]: may have been removed or modified in this version. Make sure to read
juil. 10 16:56:12 soaserver nagios[12738]: the HTML documentation regarding the config files, as well as the
juil. 10 16:56:12 soaserver nagios[12738]: 'Whats New' section to find out what has changed.
juil. 10 16:56:12 soaserver systemd[1]: nagios.service: control process exited, code=exited status=8
juil. 10 16:56:12 soaserver systemd[1]: Unit nagios.service entered failed state.

Re: where is hosts.cfg and service.cfg

Posted: Fri Jul 10, 2015 10:05 am
by sbacarach
Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any host matching 'srv64.firstheberg.net' (config file '/usr/local/nagios/etc/objects/services.cfg', starting on line 10)
Error: Failed to expand host list 'srv64.firstheberg.net' for service 'Memory' (/usr/local/nagios/etc/objects/services.cfg:10)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Re: where is hosts.cfg and service.cfg

Posted: Fri Jul 10, 2015 10:09 am
by jdalrymple
sbacarach wrote:juil. 10 16:56:12 soaserver nagios[12738]: Error: Could not find any host matching 'srv64' (config file '/usr/local/nagios/etc/objects/services.cfg', starting on line 10)
juil. 10 16:56:12 soaserver nagios[12738]: Error: Failed to expand host list 'srv64' for service 'Memory' (/usr/local/nagios/etc/objects/services.cfg:10)
It doesn't get any clearer. You have a service assigned to a host that doesn't exist.

Re: where is hosts.cfg and service.cfg

Posted: Fri Jul 10, 2015 10:22 am
by sbacarach
Oki thanks for your help i see my problem.
The hosts.cfg file is very bad !
thanks a lot

Re: where is hosts.cfg and service.cfg

Posted: Fri Jul 10, 2015 10:36 am
by jolson
Let us know what you find out. Thanks!