Ugent help required regarding new hosts adding error

Hi,

I am trying to add new hosts using nagmin after adding everything when i try to verify i am getting the following error

Verify Nagios Configuration
Synchronizing logo directories…
Creating dynamic Service Group services…
Creating Parent Dependencies…
/usr/local/nagios/bin/nagios -v -c /usr/local/nagmin/nagios/verify.cfg
Verification Failed!!
Nagios 1.3
Copyright © 1999-2004 Ethan Galstad ([email protected])
Last Modified: 10-24-2004
License: GPL

Reading configuration data…

Error: Could not expand member hosts specified in hostgroup (config file ‘/usr/local/nagmin/nagios/HostGroup.cfg’, line 69)

***> 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 the host 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 on the main and host config files, as well as the
 'Whats New' section to find out what has changed.

Thanks in advance

what command do you use to verify the configuration? it should be something like
/installdir/bin/nagios -v /installdir/etc/nagios.cfg

seems like you are using verify.cfg as an argument…

try checking the nagmin help… or try adding a host at a time by hand using vi… and see if the problem is nagmin itself.

Luca

I am trying to add the user from vi editor but still i am getting the same error

usr/local/nagios/bin# ./nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios 1.3
Copyright © 1999-2004 Ethan Galstad ([email protected])
Last Modified: 10-24-2004
License: GPL

Reading configuration data…

Error: Could not find host ‘hostname’

Error: Could not expand member hosts specified in hostgroup (config file ‘/usr/local/nagios/etc/HostGroup.cfg’, line 33)

***> 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 on the main and host config files, as well as the
 'Whats New' section to find out what has changed.

looks like you defined a host named “hostname” in your host groups definition which doesn’t exist in the hosts…

Luca

hi this problem was started once we have changed the ipaddress of the nagios server.I am not able to add any new hosts.Please help me on this problem

Again: by this error:

Error: Could not find host ‘hostname’

You added host with name ‘hostname’ in your hostgroup definitions but that name is not used in host definitions.

Luca

hi finally fixed this error message that is i am trying to type the invalid hostname that is it is giving this error and thanks for your help luca