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
Auto discovery does not add check commands to all services
Re: Auto discovery does not add check commands to all servic
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
Re: Auto discovery does not add check commands to all servic
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
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
Does your "xiwizard_genericnetdevice_ping_service" template exist? And does it have the check_command listed in it?
Former Nagios employee
Re: Auto discovery does not add check commands to all servic
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
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
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.
"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.