Nagiox XI monitoring server failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Nagiox XI monitoring server failed

Post by sdoan01 »

Hi,
I have a Microsoft virtual machine running CentOS 6.x with Nagios XI 2011 installed along with NSClient++-0.3.9-x64 installed on a Windows Server 2008 64 bit. I was able to configure the NSClient++-0.3.9-x64 configuration file by uncommenting NRPEListener.dll and set allow_arguments=1 and uncommented that too.

I am able to run NSClient++ successfully. When I try to run the Monitoring Wizard to monitor the server I installed NSClient++-0.3.9-x64, I get "Configuration verification failed". When I got to the Configuration Snapshot, I have this error listed.


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

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/www.XXXXXX.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/XXX.XXXXXX.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/XXXXXXXX.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/www.XXXXXX.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/XXXXXXX.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Error: Could not find any host matching 'XXXXXXX.com' (config file '/usr/local/nagios/etc/services/XXXXXXX.com.cfg', starting on line 77)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/XXXXXXXXXXk.com.cfg', starting on line 77)
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.

Please help so I can monitor my sever.
Thanks,
Sdoan01
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagiox XI monitoring server failed

Post by lmiltchev »

Try using the Write Config Tool and see what kind of errors you will get. Please, review this document first:

http://assets.nagios.com/downloads/nagi ... tabase.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Re: Nagiox XI monitoring server failed

Post by sdoan01 »

These are the errors I am getting.
Error: Could not find any host matching 'myserver.domain.com' (config file '/usr/local/nagios/etc/services/myserver.domain.com.cfg', starting on line 62)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/myserver.domain.com.cfg', starting on line 62)
Error processing object config files!

When I go to the /usr/local/nagios/etc/services/myserver.domain.com.cfg, I do not see anything wrong.

Please help me with this error.
Thanks,
Sdoan01
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Nagiox XI monitoring server failed

Post by jsmurphy »

The error is telling you it is unable to find the host or hostgroup you have defined in that service definition, so the problem isn't necessarily with that definition there may be a typo in your host or hostgroup definition.
Locked