summaryrefslogtreecommitdiffstats
path: root/Monitoring/shinken/discovery_rules.cfg
blob: cb3f5c31874d8dc33f4cc169626d167dc51c7150 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
##### Here are some rules for generating classic services for network
define discoveryrule {
       discoveryrule_name	HostGeneric
       isup			1
       use			generic-host
       creation_type		host
}



##### Here are some rules for generating classic services for network
define discoveryrule {
       discoveryrule_name	Http
       openports		^80$
       check_command		check_http
       service_description	Http
       use			generic-service
}

define discoveryrule {
       discoveryrule_name       Https
       openports                ^443$
       check_command            check_https
       service_description      Https
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       Https-Certificate
       openports                ^443$
       check_command            check_https_certificate
       service_description      Https-Certificate
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       Ftp
       openports                ^21$
       check_command            check_ftp
       service_description      Ftp
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       Ssh
       openports                ^22$
       check_command            check_ssh
       service_description      Ssh
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       DNS
       openports                ^53$
       check_command            check_dig
       service_description      DNS
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       SMTP
       openports                ^25$
       check_command            check_smtp
       service_description      SMTP
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       SMTPS
       openports                ^465$
       check_command            check_smtps
       service_description      SMTPS
       use                      generic-service
}


define discoveryrule {
       discoveryrule_name       LDAP
       openports                ^389$
       check_command            check_ldap
       service_description      389
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       LDAPS
       openports                ^636$
       check_command            check_ldaps
       service_description      LDAPS
       use                      generic-service
}

## Printers
# Nmap do nto find them good, so look at ports
define discoveryrule {
       discoveryrule_name       HPPrinterState
       openports                631,9100
       check_command            check_hpjd
       service_description      HPPrinterState
       use                      generic-service
}



###Then some classic RDBMS connection
define discoveryrule {
       discoveryrule_name       Mysql-Connexion
       openports                ^3306$
       check_command            check_mysql_connection
       service_description      Mysql-Connexion
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       Oracle-Listener
       openports                ^1521$
       check_command            check_oracle_listener
       service_description      Oracle-Listener
       use                      generic-service
}

define discoveryrule {
       discoveryrule_name       MSSQL-Connexion
       openports                ^1433$
       check_command            check_mssql_connection
       service_description      MSSQL-Connexion
       use                      generic-service
}


### Look for a VMWare Host
# Here for CPU
define discoveryrule {
       discoveryrule_name       ESX-Host-Cpu
       isesxhost		1
       check_command            check_esx_host!cpu
       service_description      ESX-host-Cpu
       use                      generic-service
}

# Now Memory
define discoveryrule {
       discoveryrule_name       ESX-Host-Mem
       isesxhost                1
       check_command            check_esx_host!mem
       service_description      ESX-host-Mem
       use                      generic-service
}

# Now I/O
define discoveryrule {
       discoveryrule_name       ESX-Host-IO
       isesxhost                1
       check_command            check_esx_host!io
       service_description      ESX-host-IO
       use                      generic-service
}

# Now Network
define discoveryrule {
       discoveryrule_name       ESX-Host-Net
       isesxhost                1
       check_command            check_esx_host!net
       service_description      ESX-host-Net
       use                      generic-service
}

#### And now look for VMware machines
# Now CPU
define discoveryrule {
       discoveryrule_name       ESX-VM-Cpu
       isesxvm                  1
       check_command            check_esx_vm!cpu
       service_description      ESX-VM-Cpu
       use                      generic-service
}

# Now Memory
define discoveryrule {
       discoveryrule_name       ESX-VM-Mem
       isesxvm                  1
       check_command            check_esx_vm!mem
       service_description      ESX-VM-Mem
       use                      generic-service
}

# Now IO
define discoveryrule {
       discoveryrule_name       ESX-VM-IO
       isesxvm                  1
       check_command            check_esx_vm!io
       service_description      ESX-VM-IO
       use                      generic-service
}

# Now Network
define discoveryrule {
       discoveryrule_name       ESX-VM-Net
       isesxvm                  1
       check_command            check_esx_vm!net
       service_description      ESX-VM-Net
       use                      generic-service
}