]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/network-services.conf
Merge pull request #6974 from Icinga/feature/copyright-generic
[icinga2] / itl / plugins-contrib.d / network-services.conf
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 object CheckCommand "kdc" {
4         import "ipv4-or-ipv6"
5
6         command = [ PluginContribDir + "/check_kdc" ]
7
8         arguments = {
9                 "-H" = {
10                         value = "$kdc_address$"
11                         description = "Name or IP address of KDC to check."
12                 }
13                 "-P" = {
14                         value = "$kdc_port$"
15                         description = "Port on which KDC runs (default 88)."
16                 }
17                 "-p" = {
18                         value = "$kdc_principal$"
19                         description = "Principal name to authenticate as (including realm)."
20                         required = true
21                 }
22                 "-k" = {
23                         value = "$kdc_keytab$"
24                         description = "Keytab file containing principal's key."
25                         required = true
26                 }
27         }
28
29         vars.kdc_address = "$check_address$"
30 }
31
32 object CheckCommand "rbl" {
33         import "ipv4-or-ipv6"
34
35         command = [ PluginContribDir + "/check_rbl" ]
36
37         arguments = {
38                 "-H" = {
39                         value = "$rbl_hostname$"
40                         description = "Name or IP address of SMTP server to check."
41                 }
42                 "-s" = {
43                         value = "$rbl_server$"
44                         description = "List of RBL servers as an array."
45                         required = true
46                         repeat_key = true
47                 }
48                 "-w" = {
49                         value = "$rbl_warning$"
50                         description = "Number of blacklisting servers for a warning."
51                 }
52                 "-c" = {
53                         value = "$rbl_critical$"
54                         description = "Number of blacklisting servers for a critical."
55                 }
56                 "-t" = {
57                         value = "$rbl_timeout$"
58                         description = "Seconds before plugin times out (default: 15)."
59                 }
60         }
61
62         vars.rbl_hostname = "$check_address$"
63         vars.rbl_timeout = 15
64         vars.rbl_warning = 1
65         vars.rbl_critical = 1
66 }
67
68 object CheckCommand "lsyncd" {
69         import "plugin-check-command"
70         command = [ PluginDir + "/check_lsyncd" ]
71
72         arguments = {
73                 "-s" = {
74                         value = "$lsyncd_statfile$"
75                         description = "Set status file path (default: /var/run/lsyncd.status)."
76                 }
77                 "-w" = {
78                         value = "$lsyncd_warning$"
79                         description = "Warning if more than N delays (default: 10)."
80                 }
81                 "-c" = {
82                         value = "$lsyncd_critical$"
83                         description = "Critical if more then N delays (default: 100)."
84                 }
85         }
86 }
87
88 object CheckCommand "fail2ban" {
89         command = [ "sudo", PluginDir + "/check_fail2ban" ]
90
91         arguments = {
92                 "-D" = {
93                         value = "$fail2ban_display$"
94                         description = "To modify the output display, default is 'CHECK FAIL2BAN ACTIVITY'"
95                 }
96                 "-P" = {
97                         value = "$fail2ban_path$"
98                         description = "Specify the path to the tw_cli binary, default value is /usr/bin/fail2ban-client"
99                 }
100                 "-w" = {
101                         value = "$fail2ban_warning$"
102                         description = "Specify a warning threshold, default is 1"
103                 }
104                 "-c" = {
105                         value = "$fail2ban_critical$"
106                         description = "Specify a critical threshold, default is 2"
107                 }
108                 "-s" = {
109                         value = "$fail2ban_socket$"
110                         description = "Specify a socket path, default is unset"
111                 }
112                 "-p" = {
113                         set_if = "$fail2ban_perfdata$"
114                         description = "If set to true, activate the perfdata output"
115                 }
116         }
117
118         vars.fail2ban_perfdata = true
119 }