URGENT - ERROR

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.
Locked
lucassaraiva
Posts: 2
Joined: Wed Mar 13, 2013 10:10 am

URGENT - ERROR

Post by lucassaraiva »

Hello guys,

After all installation nagios, i need to change my ip and others...

but when try export with check:
Restart Nagios
Move Export Files
Run Nagios debug (-v)
and
Generate Configuration Files

I received this:

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010 - License: GPL

Reading configuration data...
Read main config file okay...
Error Could not expand servicegroups specified in service escalation (config file '/usr/local/centreon/filesGeneration/nagiosCFG/1/escalations.cfg', starting on line 20)
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.

---
in escalations.cfg', starting on line 20, i have:
define serviceescalonation{
servicegroup_name
contact_groups vlc
first_notification 1
last_notification 2

what the problem?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: URGENT - ERROR

Post by slansing »

You will need to find the service group that does not exist in:

Code: Select all

/usr/local/centreon/filesGeneration/nagiosCFG/1/escalations.cfg
And remove it, or alter it so that it is correctly defined in the configuration, then re-verify the configuration files.. The servicegroup must be named if you plan to use it, and it must be a valid already existing servicegroup.
lucassaraiva
Posts: 2
Joined: Wed Mar 13, 2013 10:10 am

Re: URGENT - ERROR

Post by lucassaraiva »

slansing wrote:You will need to find the service group that does not exist in:

Code: Select all

/usr/local/centreon/filesGeneration/nagiosCFG/1/escalations.cfg
And remove it, or alter it so that it is correctly defined in the configuration, then re-verify the configuration files.. The servicegroup must be named if you plan to use it, and it must be a valid already existing servicegroup.
So...

when i was look on escalations.cfg, line: servicegroup_name, have not groupname...

and i was look on servicesgroups.conf, have not information.... blank file...

-----

When i gone on escalations.cfg, i have: servicegroup_name : "blank"

and about servicegroup.cfg is the same.. blank file..

what i do?
Last edited by slansing on Wed Mar 13, 2013 12:43 pm, edited 1 time in total.
Reason: Merged posts, please do not double post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: URGENT - ERROR

Post by slansing »

If you do not have an object defined, you can not place it's name into a configuration file "or lack there of in this case."

Please review this document on escalations to see how you would properly define a service escalation:

http://nagios.sourceforge.net/docs/3_0/escalations.html
Locked