summaryrefslogtreecommitdiffstats
path: root/config/pdv/servers/14_spec_server_unix.cfg
blob: 0f0f85e57de4ea8e882877aec3891caff6f399e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This is a minimal list of services which should be supported by any UNIX server
define hostgroup {
        hostgroup_name  		unix-servers
        alias           		UNIX Servers
        register			0
}

define host {
	name				unix-server
	use				server
	hostgroups			unix-servers
	_SSH_PORT			22
	_SMTP_PORT			25
	register			0
}

define hostgroup {
        hostgroup_name  		remote-servers
        alias           		UNIX Servers
        register			0
}

define host {
	name				remote-server
	use				unix-server
	hostgroups			remote-servers
	register			0
}


#This may be used that we can connect over ssh.
#define host {
#	name				ands-server	; The name of this host template
#	use				server	; This template inherits other values from the generic-host template
#	register			0		; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
#	hostgroups			+unix-servers
#}

define service {
        use                             ping-service
        hostgroup_name                  unix-servers
        service_description             PING
	check_command			check_host!100,1%!500,5%
}


define service {
        use                             ping-service
        hostgroup_name                  remote-servers
        service_description             PING
	check_command			check_host!400,4%!1200,10%
}

define service {
        use                             ping-service
        hostgroup_name                  unix-servers, remote-servers
        service_description             SSH
	check_command			check_ssh! -p $_HOSTSSH_PORT$
}