forked from Mikesch-mp/qnap_health
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command_qnap_health.conf
43 lines (40 loc) · 1.74 KB
/
command_qnap_health.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
object CheckCommand "qnap_health" {
import "ipv4-or-ipv6"
command = [ PluginContribDir + "/qnap_health" ]
arguments = {
"-H" = {
value = "$qnap_health$"
description = "Hostname or ip address of QNAP storage (default: host.address or host.address6)"
}
"-C" = {
value = "$qnap_health_snmp_community$"
description = "SNMP community (default: public)"
}
"-V" = {
value = "$qnap_health_snmp_version$"
description = "SNMP protocol version to use (1, 2c, 3) (default: 2c)"
}
"-P" = {
value = "$qnap_health_snmp_port$"
description = "SNMP port (default: 161)"
}
"-p" = {
value = "$qnap_health_part$"
required = true
description = "systemuptime, temp, cpu, cputemp, usedram, powerstatus, fans, diskused, hdstatus, hdtemp, lunstatus (for iSCSI luns), volstatus (Raid Volume Status)"
}
"-w" = {
value = "$qnap_health_warning$"
description = "Warning threshold"
}
"-c" = {
value = "$qnap_health_critical$"
description = "Critical threshold"
}
}
vars.qnap_health = "$check_address$"
vars.qnap_health_snmp_community = "public"
vars.qnap_health_snmp_version = "2c"
vars.qnap_health_snmp_port = 161
vars.qnap_health_part = "sysinfo"
}