forked from metricq/metricq-sink-nsca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
71 lines (71 loc) · 2.87 KB
/
config.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "metricq-nsca-sink (passive check result reporter) configuration",
"description": "Configuration describing which metrics to monitor and provide results for, base on their availability and value range",
"type": "object",
"properties": {
"reporting_host": {
"type": "string",
"description": "Name of the host for which check results are reported, as configured in Nagios/Centreon (defaults to the output of hostname(1))"
},
"nsca_host": {
"type": "string",
"description": "Address of the NSCA daemon to which check results are sent (see `-H` flag of `send_nsca`)"
},
"nsca_client_executable": {
"type": "string",
"description": "Path to NSCA client executable (defaults to /usr/sbin/send_nsca)"
},
"nsca_client_config_file": {
"type": "string",
"description": "Path to configuration file to use for NSCA client (see `-c` flag of `send_nsca`)"
},
"checks": {
"type": "object",
"description": "Configuration for each value/timeout check, by Nagios/Centreon service name",
"patternProperties": {
"^[^\\t]$": {
"type": "object",
"description": "Passive check configuration",
"properties": {
"metrics": {
"type": "array",
"description": "List of metrics that should be monitored",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"description": "Name of a MetricQ metric"
}
},
"warning_below": {
"type": "number",
"description": "Send a check result of severity \"WARNING\" if the values sent by any monitored metric go below this threshold"
},
"warning_above": {
"type": "number",
"description": "Send a check result of severity \"WARNING\" if the values sent by any monitored metric go above this threshold"
},
"critical_below": {
"type": "number",
"description": "Send a check result of severity \"CRITICAL\" if the values sent by any monitored metric go below this threshold"
},
"critical_above": {
"type": "number",
"description": "Send a check result of severity \"CRITICAL\" if the values sent by any monitored metric go above this threshold"
},
"timeout": {
"type": "string",
"description": "Send check result of severity \"WARNING\" if no values arrive apart more than the specified period",
"pattern": "^\\s*([+-]?\\d*[.,]?\\d+)\\s*([^\\d]*)\\s*$"
}
},
"required": [
"metrics"
]
}
}
}
},
"required": ["nsca_host", "checks"]
}