Changes between Version 8 and Version 9 of doc/usage/nagios/nrpe
- Timestamp:
- 07/12/09 16:51:13 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/usage/nagios/nrpe
v8 v9 215 215 [[Image(wiki:doc/usage/nagios/nrpe:nagios-active-nrpe-002.png)]] 216 216 217 === 7.0 Introduction === 218 [[Image(wiki:doc/usage/nagios/nrpe:nagios-configuration-inheritance.png)]] 219 220 Nagios configuration is in itself a whole chapter and this is just a quick peek on how you can do things. First off there are a few concepts to understand: 221 * templates are the same as the corresponding item but they have a flag register = 0 which makes them "unlistable items" 222 * services are essentially checks (is check CPU) 223 * hosts are essentially computers 224 * groups are an important concept which I ignore here for simplicity (I recommend you use it) 225 217 226 === 7.1 Template === 218 227 First, its best practice to create a new template for each different type of host you'll be monitoring. Let's create a new template for windows servers. 219 228 {{{ 220 229 define host{ 221 name tpl-windows-servers ; Name of this template222 use generic-host ; Inherit default values223 check_period 24x7224 check_interval 5225 retry_interval 1226 max_check_attempts 10227 check_command check-host-alive228 notification_period 24x7230 name tpl-windows-servers ; Name of this template 231 use generic-host ; Inherit default values 232 check_period 24x7 233 check_interval 5 234 retry_interval 1 235 max_check_attempts 10 236 check_command check-host-alive 237 notification_period 24x7 229 238 notification_interval 30 230 239 notification_options d,r 231 contact_groups admins232 register 0 ; DONT REGISTER THIS - ITS A TEMPLATE240 contact_groups admins 241 register 0 ; DONT REGISTER THIS - ITS A TEMPLATE 233 242 } 234 243 }}} … … 241 250 {{{ 242 251 define host{ 243 use tpl-windows-servers ; Inherit default values from a template252 use tpl-windows-servers ; Inherit default values from a template 244 253 host_name windowshost ; The name we're giving to this server 245 254 alias My First Windows Server ; A longer name for the server … … 256 265 {{{ 257 266 define service{ 258 use generic-service259 host_name windowshost267 use generic-service 268 host_name windowshost 260 269 service_description CPU Load 261 270 check_command check_nrpe!alias_cpu … … 266 275 {{{ 267 276 define service{ 268 use generic-service269 host_name windowshost277 use generic-service 278 host_name windowshost 270 279 service_description Free Space 271 280 check_command check_nrpe!alias_disk








