1 /******************************************************************************
3 * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/) *
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 import "plugin-check-command"
23 command = [ PluginContribDir + "/check_graphite" ]
27 value = "$graphite_url$"
28 description = "Target url"
32 value = "$graphite_metric$"
33 description = "Metric path string"
37 value = "$graphite_shortname$"
38 description = "Metric short name (used for performance data)"
41 value = "$graphite_duration$"
42 description = "Length, in minute of data to parse (default: 5)"
45 value = "$graphite_function$"
46 description = "Function applied to metrics for thresholds (default: average)"
49 value = "$graphite_warning$"
50 description = "Warning threshold"
54 value = "$graphite_critical$"
55 description = "Critical threshold"
59 value = "$graphite_units$"
60 description = "Adds a text tag to the metric count in the plugin output. Useful to identify the metric units. Doesn't affect data queries."
63 value = "$graphite_message$"
64 description = "Text message to output (default: 'metric count:')"
67 set_if = "$graphite_zero_on_error$"
68 description = "Return 0 on a graphite 500 error"
71 set_if = "$graphite_link_graph$"
72 description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
76 vars.graphite_duration = "5"
77 vars.graphite_function = "average"
78 vars.graphite_message = "metric count:"
79 vars.graphite_zero_on_error = false
80 vars.graphite_link_graph = false