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