forked from orthecreedence/check_elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_elasticsearch.conf
40 lines (39 loc) · 1.45 KB
/
check_elasticsearch.conf
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
object CheckCommand "elastic-search" {
import "plugin-check-command"
command = [ PluginDir + "/check_elasticsearch" ]
arguments = {
"--hostname" = {
value = "$elasticsearch_hostname$"
description = "Defines the hostname. Default is: localhost"
}
"--port" = {
value = "$elasticsearch_port$"
description = "Defines the port. Default is: 9200"
}
"--secure" = {
value = "$elasticsearch_secure$"
description = "Use TLS. Defaults to false."
}
"--output-directory" = {
value = "$elasticsearch_soutput-directory$"
description = "Specifies where to write the tmp-file that the check creates. Default is: /tmp"
}
"--username" = {
value = "$elasticsearch_username$"
description = "Username for elasticsearch. Turns on authentication mode when set."
}
"--password" = {
value = "$elasticsearch_password$"
description = "Password for elasticsearch. Turns on authentication mode when set."
}
"--auth" = {
value = "$elasticsearch_auth$"
description = "Turns on authentication mode with default credentials."
}
"--ca-certificate" = {
value = "$elasticsearch_ca$"
description = "Uses the provided CA certificate."
}
}
vars.elasticsearch_hostname = "$address$"
}