Auto-Discovery not assigning Check Command NULLERROR

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Lisa.sorenson
Posts: 17
Joined: Wed Mar 05, 2014 11:37 am

Auto-Discovery not assigning Check Command NULLERROR

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post by tmcdonald »

What's the component version (as opposed to Wizard version) for Auto Discovery? Go to Admin -> Manage Components and post it here.
Former Nagios employee
Lisa.sorenson
Posts: 17
Joined: Wed Mar 05, 2014 11:37 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post by Lisa.sorenson »

The auto-discovery component version is 2.04. And it says its up to date.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post 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).
Former Nagios employee
Lisa.sorenson
Posts: 17
Joined: Wed Mar 05, 2014 11:37 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post by tmcdonald »

You will need to run the wizard again now that it has been updated in order for the changes to take effect.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Auto-Discovery not assigning Check Command NULLERROR

Post by Box293 »

When you go into Core Configuration Manager (CCM) and click Apply Configuration, do you get this error?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Lisa.sorenson
Posts: 17
Joined: Wed Mar 05, 2014 11:37 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post 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.
Lisa.sorenson
Posts: 17
Joined: Wed Mar 05, 2014 11:37 am

Re: Auto-Discovery not assigning Check Command NULLERROR

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Auto-Discovery not assigning Check Command NULLERROR

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked