Page 1 of 3

Auto-Discovery not assigning Check Command NULLERROR

Posted: Mon Jun 23, 2014 5:49 pm
by Lisa.sorenson
I am getting this error in our NagiosXI 2014r1.1 version when trying to configure servers that were found during auto-discovery. The auto-discovery wizard is version 1.3. The hosts have a blank Check Command for the services monitored.


Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/servername.cfg', starting on line 30)
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.

Thanks,
Lisa

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Tue Jun 24, 2014 11:08 am
by tmcdonald
What's the component version (as opposed to Wizard version) for Auto Discovery? Go to Admin -> Manage Components and post it here.

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Tue Jun 24, 2014 11:21 am
by Lisa.sorenson
The auto-discovery component version is 2.04. And it says its up to date.

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Tue Jun 24, 2014 12:58 pm
by tmcdonald
Is it up to date even after you click the blue Check for Updates button up top? I believe the latest version is 2.05 and is what I have on XI R1.2 (just released today).

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Tue Jun 24, 2014 1:29 pm
by Lisa.sorenson
I've just updated to R1.2 and now my auto-discovery component is version 2.05. And still getting this error:


Nagios Core 4.0.7
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-03-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/servername.cfg', starting on line 30)
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: Auto-Discovery not assigning Check Command NULLERROR

Posted: Tue Jun 24, 2014 1:53 pm
by tmcdonald
You will need to run the wizard again now that it has been updated in order for the changes to take effect.

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Wed Jun 25, 2014 1:01 am
by Box293
When you go into Core Configuration Manager (CCM) and click Apply Configuration, do you get this error?

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Wed Jun 25, 2014 4:40 pm
by Lisa.sorenson
Still get same error:


Nagios Core 4.0.7
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-03-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/servername.cfg', starting on line 30)
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: Auto-Discovery not assigning Check Command NULLERROR

Posted: Wed Jun 25, 2014 4:50 pm
by Lisa.sorenson
Box293 wrote:When you go into Core Configuration Manager (CCM) and click Apply Configuration, do you get this error?
Yes I get same configuration error here.

Re: Auto-Discovery not assigning Check Command NULLERROR

Posted: Wed Jun 25, 2014 7:08 pm
by Box293
Even after updating the wizard, all of the services created by the Auto-Discovery wizard are going to need to be fixed. This can be time consuming if you have a lot of hosts/services added. The quicker way is to delete all of these services and then re-run the wizard again to re-create them.

In the following steps, DO NOT delete any services called "localhost".
Also, we are only deleting servics created by the Auto-Discovery wizard. You can leave services created by other wizards.
  • Go into Core Configuration Manager
    Change the Limit Results to 50
    Click Check All at the top left
    Make sure there are not any services called localhost, if there are un-tick them
    In the list "With Checked" select Delete
    Click Go
    Repeat these steps until all you are left with are services for localhost
    Click Apply Configuration
Apply Configuration should now complete sucessfully.

Now go and run the Auto-Discover wizard to re-create these services, the updated wizard will create them correctly.