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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
|
define contactgroup{
contactgroup_name ITMailgroup
alias IT E-Mail
members .*_IT_Mail
}
The corresponding contacts configuration is like this:
define contact{
contact_name Dilbert_IT_Mail
alias Dilbert
use mailcontact
email dilbert@dilbert.com
}
define contact{
contact_name Wally_IT_Mail
alias Wally
use mailcontact
email wally@dilbert.com
}
define contact {
contact_name Intern
alias Asok
use mailcontact
email asok@dilbert.com
}
define host {
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}
# 'switch1' host definition
define host{
use generic-host ; Name of host template to use
host_name switch1
alias Switch #1
address 192.168.1.230
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'switch2' host definition
define host{
use generic-host ; Name of host template to use
host_name switch2
alias Switch #2
address 192.168.1.231
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'switch3' host definition
define host{
use generic-host ; Name of host template to use
host_name switch3
alias Switch #3
address 192.168.1.232
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'switch4' host definition
define host{
use generic-host ; Name of host template to use
host_name switch4
alias Switch #4
address 192.168.1.233
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'switch5' host definition
define host{
use generic-host ; Name of host template to use
host_name switch5
alias Switch #5
address 192.168.1.234
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'router1' host definition
define host{
use generic-host ; Name of host template to use
host_name router1
alias Router #1
address 192.168.1.254
check_command check-host-alive
max_check_attempts 20
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups ITMailgroup
}
# 'printer1' host definition
define host{
use generic-host
host_name printer1
alias Printer #1
address 192.168.1.100
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period 24x7
contact_groups ITMailgroup
}
# 'printer2' host definition
define host{
use generic-host
host_name printer2
alias Printer #2
address 192.168.1.101
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period 24x7
contact_groups ITMailgroup
}
# 'printer3' host definition
define host{
use generic-host
host_name printer3
alias Printer #3
address 192.168.1.102
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period 24x7
contact_groups ITMailgroup
}
# 'switches' host group definition
define hostgroup{
hostgroup_name switches
alias Switches
members switch?
}
# 'routers' host group definition
define hostgroup{
hostgroup_name routers
alias Routers
members router*
}
# 'printers' host group definition
define hostgroup{
hostgroup_name printers
alias Printers
members prin
}
# '24x7' timeperiod definition
define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
|