Page 1 of 1

Auto discovery does not add check commands to all services

Posted: Thu May 22, 2014 9:47 am
by cmoran
Hi

I have found a problem with the auto discovery wizard where the check command is not added to all services.

I ran the auto discovery wizard on a subnet and it added all of our nodes. When I tried to apply the change I saw this error in the file

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/10.255.254.145.cfg', starting on line 29)
Error processing object config files!

On the affected line I found this service where the check command did not exist

define service {
host_name 10.255.254.145.cfg
service_description Ping
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}

This occurs every time for Ping, SSH, HTTP, HTTPS and FTP but there are no issues for other services

I am running the latest version, Nagios XI 2014R1.0 on a RHEL 6.4 VM

Has anybody had a similar issue?

Thanks for the help

Re: Auto discovery does not add check commands to all servic

Posted: Thu May 22, 2014 12:18 pm
by tmcdonald
Is the Ping service for the 10.255.254.145 host listed in the CCM? If not, you might be looking at a residual ghost host left over from Core 3.5.

Re: Auto discovery does not add check commands to all servic

Posted: Fri May 23, 2014 3:32 am
by cmoran
Yes the services are listed in the CCM but the check command is blank

This is a clean install so it is not left over from a previous version

Re: Auto discovery does not add check commands to all servic

Posted: Fri May 23, 2014 9:15 am
by tmcdonald
Does your "xiwizard_genericnetdevice_ping_service" template exist? And does it have the check_command listed in it?

Re: Auto discovery does not add check commands to all servic

Posted: Fri May 23, 2014 9:32 am
by cmoran
The template does exist and the following check command is configured

Check command: check_xi_service_ping
Command: $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5

Thanks for the help

Re: Auto discovery does not add check commands to all servic

Posted: Fri May 23, 2014 12:31 pm
by abrist
Then it should be working correctly as the values from the template should be inherited by the check. The only mention in the object should be the "use" directive.