Nagios 4 nconf Default_collector
Posted: Thu May 22, 2014 4:10 am
Hi,
I'm new at nagios, so I'll try to be specific as possible.
I have installed Nagios Core 4.0.5 and successfully installed Nconf also. However I can't "Generate Nagios Config" successfully. On Nagios 3 tutorials ( http://myliteraturetechlife.com/install ... ianubuntu/ ) I've seen people who comments most of the lines of the nagios.cfg and then create new directories on different paths where my nagios is. I'm not really sure where to place those directories and also how to get the Default_collector directory.
The message I get when I try yo generate Nagios Config is this:
Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/var/www/nconf/temp/Default_collector/advanced_services.cfg', starting on line 1)
Error processing object config files!
***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
***> 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.
Obviously I don't have this directory but I wish to know how to get it for Nagios 4 configuration.
Thank you for your time and sorry if the questions are too easy.
I'm new at nagios, so I'll try to be specific as possible.
I have installed Nagios Core 4.0.5 and successfully installed Nconf also. However I can't "Generate Nagios Config" successfully. On Nagios 3 tutorials ( http://myliteraturetechlife.com/install ... ianubuntu/ ) I've seen people who comments most of the lines of the nagios.cfg and then create new directories on different paths where my nagios is. I'm not really sure where to place those directories and also how to get the Default_collector directory.
The message I get when I try yo generate Nagios Config is this:
Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/var/www/nconf/temp/Default_collector/advanced_services.cfg', starting on line 1)
Error processing object config files!
***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
***> 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.
Obviously I don't have this directory but I wish to know how to get it for Nagios 4 configuration.
Thank you for your time and sorry if the questions are too easy.