]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/metrics.conf
Fix code style violations in the ITL
[icinga2] / itl / plugins-contrib.d / metrics.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
4  *                                                                            *
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.                     *
9  *                                                                            *
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.                               *
14  *                                                                            *
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  ******************************************************************************/
19
20 object CheckCommand "graphite" {
21         import "plugin-check-command"
22
23         command = [ PluginContribDir + "/check_graphite" ]
24
25         arguments = {
26                 "-u" = {
27                         value = "$graphite_url$"
28                         description = "Target url"
29                         required = true
30                 }
31                 "-m" = {
32                         value = "$graphite_metric$"
33                         description = "Metric path string"
34                         required = true
35                 }
36                 "-s" = {
37                         value = "$graphite_shortname$"
38                         description = "Metric short name (used for performance data)"
39                 }
40                 "-d" = {
41                         value = "$graphite_duration$"
42                         description = "Length, in minute of data to parse (default: 5)"
43                 }
44                 "-f" = {
45                         value = "$graphite_function$"
46                         description = "Function applied to metrics for thresholds (default: average)"
47                 }
48                 "-w" = {
49                         value = "$graphite_warning$"
50                         description = "Warning threshold"
51                         required = true
52                 }
53                 "-c" = {
54                         value = "$graphite_critical$"
55                         description = "Critical threshold"
56                         required = true
57                 }
58                 "-U" = {
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."
61                 }
62                 "-M" = {
63                         value = "$graphite_message$"
64                         description = "Text message to output (default: 'metric count:')"
65                 }
66                 "-z" = {
67                         set_if = "$graphite_zero_on_error$"
68                         description = "Return 0 on a graphite 500 error"
69                 }
70                 "-l" = {
71                         set_if = "$graphite_link_graph$"
72                         description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
73                 }
74         }
75
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
81 }