]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/metrics.conf
Merge pull request #7026 from Icinga/feature/ca-list-all
[icinga2] / itl / plugins-contrib.d / metrics.conf
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 object CheckCommand "graphite" {
4         command = [ PluginContribDir + "/check_graphite" ]
5
6         arguments = {
7                 "-u" = {
8                         value = "$graphite_url$"
9                         description = "Target url"
10                         required = true
11                 }
12                 "-m" = {
13                         value = "$graphite_metric$"
14                         description = "Metric path string"
15                         required = true
16                 }
17                 "-s" = {
18                         value = "$graphite_shortname$"
19                         description = "Metric short name (used for performance data)"
20                 }
21                 "-d" = {
22                         value = "$graphite_duration$"
23                         description = "Length, in minute of data to parse (default: 5)"
24                 }
25                 "-f" = {
26                         value = "$graphite_function$"
27                         description = "Function applied to metrics for thresholds (default: average)"
28                 }
29                 "-w" = {
30                         value = "$graphite_warning$"
31                         description = "Warning threshold"
32                         required = true
33                 }
34                 "-c" = {
35                         value = "$graphite_critical$"
36                         description = "Critical threshold"
37                         required = true
38                 }
39                 "-U" = {
40                         value = "$graphite_units$"
41                         description = "Adds a text tag to the metric count in the plugin output. Useful to identify the metric units. Doesn't affect data queries."
42                 }
43                 "-M" = {
44                         value = "$graphite_message$"
45                         description = "Text message to output (default: 'metric count:')"
46                 }
47                 "-z" = {
48                         set_if = "$graphite_zero_on_error$"
49                         description = "Return 0 on a graphite 500 error"
50                 }
51                 "-l" = {
52                         set_if = "$graphite_link_graph$"
53                         description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
54                 }
55         }
56
57         vars.graphite_duration = "5"
58         vars.graphite_function = "average"
59         vars.graphite_message = "metric count:"
60         vars.graphite_zero_on_error = false
61         vars.graphite_link_graph = false
62 }