
###############################################################################
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
###############################################################################

# Define a host for the remote machine

define host{
        use                     linux-server            ; Name of host template to use
							; This host definition will inherit all variables that are defined
							; in (or inherited by) the linux-server host template definition.
        host_name               server1
        alias                   server1
        address                 xxx.xxx.xxx.xxx
        }



###############################################################################
###############################################################################
#
# HOST GROUP DEFINITION
#
###############################################################################
###############################################################################

# Define an optional hostgroup for Linux machines

define hostgroup{
        hostgroup_name  linux-real-servers ; The name of the hostgroup
        alias           Linux Real Servers ; Long name of the group
        members         server1     ; Comma separated list of hosts that belong to this group
        }



# Check MaxScale modules, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_modules
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!modules
	notifications_enabled		0
	}

# Check MaxScale services, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_services
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!services
	notifications_enabled		0
	}

# Check MaxScale listeners, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_listeners
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!listeners
	notifications_enabled		0
	}

# Check MaxScale servers, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_servers
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!servers
	notifications_enabled		0
	}

# Check MaxScale sessions, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_sessions
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!sessions
	notifications_enabled		0
	}

# Check MaxScale filters, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_filters
	check_command			check_maxscale_resource!maxscale!/ssh/maxscale_host/id_rsa!filters
	notifications_enabled		0
	}

# Check MaxScale monitors, on the remote machine.
define service{
	use				local-service         ; Name of service template to use
	host_name			server1
	service_description		MaxScale_monitors
	check_command			check_maxscale_monitors!maxscale!/ssh/maxscale_host/id_rsa!monitors!/tmp/maxadmin.sock
	notifications_enabled		0
	}

# Define a service to check Script on the remote machine, with maxadmin path
define service{
	use                             local-service         ; Name of service template to use
	host_name                       server1
	service_description             MaxScale_threads
	check_command                   check_maxscale_threads!maxscale!/ssh/maxscale_host/id_rsa!threads!/tmp/maxadmin.sock!/usr/bin/maxadmin
	notifications_enabled           0
	}
