Page 1 of 1

change the default check from ping to something else

Posted: Mon Apr 16, 2018 3:23 am
by aristosv
This is the host definition for one of the servers I want to monitor.

Code: Select all

define host {
	use linux-server
	host_name srv001
	address 192.168.15.53
	hostgroups hostgroup1
	}

define service {
	use generic-service
	host_name srv001
	service_description process
	check_command check_remote_process
	}
Under Current Status > Services, I can see that the "check_remote_process" check for this host working just fine.
But under Current Status > Hosts, the default check is ping, and this server is configured NOT to reply to pings.

How/where do I change the default check for this server to something else, besides ping? Is there an option to change this for all the servers using a universal setting, so I don't have to make a change on all the hosts definitions?

Thanks

Re: change the default check from ping to something else

Posted: Mon Apr 16, 2018 7:30 am
by scottwilkerson
being there isn't a check_command specified it must be specified in the template
this is a template

Code: Select all

use linux-server
And that definition could contain other templates.
BUt to override it you can add the command right to the host

Code: Select all

check_command     your_other_check

Re: change the default check from ping to something else

Posted: Mon Apr 16, 2018 10:36 am
by aristosv
thanks, that did it.

Re: change the default check from ping to something else

Posted: Mon Apr 16, 2018 10:40 am
by scottwilkerson
Great. Locking thread.