Auto discovery does not add check commands to all services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cmoran
Posts: 3
Joined: Thu May 22, 2014 9:35 am

Auto discovery does not add check commands to all services

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

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

Post 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.
Former Nagios employee
cmoran
Posts: 3
Joined: Thu May 22, 2014 9:35 am

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

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

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

Post by tmcdonald »

Does your "xiwizard_genericnetdevice_ping_service" template exist? And does it have the check_command listed in it?
Former Nagios employee
cmoran
Posts: 3
Joined: Thu May 22, 2014 9:35 am

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked