1 /******************************************************************************
3 * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License *
7 * as published by the Free Software Foundation; either version 2 *
8 * of the License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software Foundation *
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ******************************************************************************/
20 object CheckCommand "graphite" {
21 command = [ PluginContribDir + "/check_graphite" ]
25 value = "$graphite_url$"
26 description = "Target url"
30 value = "$graphite_metric$"
31 description = "Metric path string"
35 value = "$graphite_shortname$"
36 description = "Metric short name (used for performance data)"
39 value = "$graphite_duration$"
40 description = "Length, in minute of data to parse (default: 5)"
43 value = "$graphite_function$"
44 description = "Function applied to metrics for thresholds (default: average)"
47 value = "$graphite_warning$"
48 description = "Warning threshold"
52 value = "$graphite_critical$"
53 description = "Critical threshold"
57 value = "$graphite_units$"
58 description = "Adds a text tag to the metric count in the plugin output. Useful to identify the metric units. Doesn't affect data queries."
61 value = "$graphite_message$"
62 description = "Text message to output (default: 'metric count:')"
65 set_if = "$graphite_zero_on_error$"
66 description = "Return 0 on a graphite 500 error"
69 set_if = "$graphite_link_graph$"
70 description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
74 vars.graphite_duration = "5"
75 vars.graphite_function = "average"
76 vars.graphite_message = "metric count:"
77 vars.graphite_zero_on_error = false
78 vars.graphite_link_graph = false