-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlandstorage.conf
More file actions
88 lines (65 loc) · 1.65 KB
/
overlandstorage.conf
File metadata and controls
88 lines (65 loc) · 1.65 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#Configuration file for icinga2
object CheckCommand "check-overland" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ PluginContribDir + "/check_overlandstorage.sh" ]
arguments = {
"-H" = {
value = "$address$"
description = "Snapserver address"
}
"-C" = {
value = "$overland_snmpv2$"
description = "SNMPv2 community for snapserver"
}
"-t" = {
value = "$overland_check_type$"
description = "snapserver check type: disk|raid|nic|info"
}
}
vars.overland_snmpv2 = "<community>"
}
apply Service "svc_overland_disk" {
import "generic-service"
check_command = "check-overland"
vars.overland_check_type = "disk"
vars.notification["sms"] = {
groups = [ "sms_users" ]
}
assign where host.vars.os == "GOS"
}
apply Service "svc_overland_raid" {
import "generic-service"
check_command = "check-overland"
vars.overland_check_type = "raid"
vars.notification["sms"] = {
groups = [ "sms_users" ]
}
assign where host.vars.os == "GOS"
}
apply Service "svc_overland_nic" {
import "generic-service"
check_command = "check-overland"
vars.overland_check_type = "nic"
vars.notification["sms"] = {
groups = [ "sms_users" ]
}
assign where host.vars.os == "GOS"
}
template Host "generic-storage" {
import "generic-host"
vars.notification["mail"] = {
groups = [ "mailusers" ]
}
vars.notification["sms"] = {
groups = [ "sms_users" ]
}
}
object Host "<hostname>" {
import "generic-storage"
address = "<host_ip_address>"
vars.os = "GOS"
vars.http_vhosts["http"] = {
http_uri = "/sadmin"
}
}