]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/icingacli.conf
Merge pull request #6857 from Icinga/bugfix/check_nscp_api-query-sorted-6536
[icinga2] / itl / plugins-contrib.d / icingacli.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 template CheckCommand "icingacli" {
21         command = [ PrefixDir + "/bin/icingacli" ]
22 }
23
24 object CheckCommand "icingacli-businessprocess" {
25         import "icingacli"
26
27         command += [ "businessprocess", "process", "check" ]
28
29         arguments = {
30                 "--config" = {
31                         value = "$icingacli_businessprocess_config$"
32                         description = "Configuration file containing your business process without file extension"
33                 }
34                 "--details" = {
35                         set_if = "$icingacli_businessprocess_details$"
36                         description = "Get details for root cause analysis"
37                 }
38                 "--state-type" = {
39                         value = "$icingacli_businessprocess_statetype$"
40                         description = "Define which state type to look at. Could be either soft or hard, overrides an eventually configured default"
41                 }
42                 "--process" = {
43                         value = "$icingacli_businessprocess_process$"
44                         description = "Business process to monitor"
45                         skip_key = true
46                         required = true
47                         order = -1
48                 }
49         }
50
51         vars.icingacli_businessprocess_details = false
52 }
53
54 object CheckCommand "icingacli-director" {
55         import "icingacli"
56
57         command += [ "director", "health", "check" ]
58
59         arguments = {
60                 "--check" = {
61                         value = "$icingacli_director_check$"
62                         description = "Run only a specific test suite"
63                 }
64                 "--db" = {
65                         value = "$icingacli_director_db$"
66                         description = "Use a specific Icinga Web DB resource"
67                 }
68         }
69 }
70