]> granicus.if.org Git - icinga2/blob - itl/command-nscp-local.conf
Add 'check_drivesize' as nscp-local check command
[icinga2] / itl / command-nscp-local.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2015 Icinga Development Team (http://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 if (!globals.contains("NscpPath")) {
21         NscpPath = "C:\\Program Files\\NSClient++"
22 }
23
24 object CheckCommand "nscp-local" {
25         import  "plugin-check-command"
26
27         command = [ "$nscp_path$\\nscp.exe", "client" ]
28
29         arguments = {
30                 "-q" = {
31                         value = "$nscp_query$"
32                         required = true
33                 }
34                 "-b" = {
35                         set_if = "$nscp_boot$"
36                 }
37                 "-a" = "$nscp_arguments$"
38         }
39
40         vars.nscp_path = {{ NscpPath }}
41         vars.nscp_boot = true
42 }
43
44 object CheckCommand "nscp-local-cpu" {
45         import  "nscp-local"
46
47         vars.nscp_query = "check_cpu"
48 }
49
50 object CheckCommand "nscp-local-memory" {
51         import  "nscp-local"
52
53         vars.nscp_query = "check_memory"
54 }
55
56 object CheckCommand "nscp-local-os-version" {
57         import  "nscp-local"
58
59         vars.nscp_query = "check_os_version"
60 }
61
62 object CheckCommand "nscp-local-pagefile" {
63         import  "nscp-local"
64
65         vars.nscp_query = "check_pagefile"
66 }
67
68 object CheckCommand "nscp-local-process" {
69         import  "nscp-local"
70
71         vars.nscp_query = "check_process"
72 }
73
74 object CheckCommand "nscp-local-service" {
75         import  "nscp-local"
76
77         vars.nscp_query = "check_service"
78 }
79
80 object CheckCommand "nscp-local-uptime" {
81         import  "nscp-local"
82
83         vars.nscp_query = "check_uptime"
84 }
85
86 object CheckCommand "nscp-local-version" {
87         import  "nscp-local"
88
89         vars.nscp_query = "check_version"
90 }
91
92 object CheckCommand "nscp-local-disk" {
93   import "nscp-local"
94
95   vars.nscp_query = "check_drivesize"
96 }