1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 object CheckCommand "graphite" {
4 command = [ PluginContribDir + "/check_graphite" ]
8 value = "$graphite_url$"
9 description = "Target url"
13 value = "$graphite_metric$"
14 description = "Metric path string"
18 value = "$graphite_shortname$"
19 description = "Metric short name (used for performance data)"
22 value = "$graphite_duration$"
23 description = "Length, in minute of data to parse (default: 5)"
26 value = "$graphite_function$"
27 description = "Function applied to metrics for thresholds (default: average)"
30 value = "$graphite_warning$"
31 description = "Warning threshold"
35 value = "$graphite_critical$"
36 description = "Critical threshold"
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."
44 value = "$graphite_message$"
45 description = "Text message to output (default: 'metric count:')"
48 set_if = "$graphite_zero_on_error$"
49 description = "Return 0 on a graphite 500 error"
52 set_if = "$graphite_link_graph$"
53 description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
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