Changes between Version 8 and Version 9 of doc/usage/nagios/nrpe


Ignore:
Timestamp:
07/12/09 16:51:13 (4 years ago)
Author:
mickem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/usage/nagios/nrpe

    v8 v9  
    215215[[Image(wiki:doc/usage/nagios/nrpe:nagios-active-nrpe-002.png)]] 
    216216 
     217=== 7.0 Introduction === 
     218[[Image(wiki:doc/usage/nagios/nrpe:nagios-configuration-inheritance.png)]] 
     219 
     220Nagios 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 
    217226=== 7.1 Template === 
    218227First, 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. 
    219228{{{ 
    220229define host{ 
    221         name                                    tpl-windows-servers ; Name of this template 
    222         use                                             generic-host ; Inherit default values 
    223         check_period                    24x7 
    224         check_interval                  5 
    225         retry_interval                  1 
    226         max_check_attempts              10 
    227         check_command                   check-host-alive 
    228         notification_period             24x7 
     230        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 
    229238        notification_interval   30 
    230239        notification_options    d,r 
    231         contact_groups                  admins 
    232         register                                0 ; DONT REGISTER THIS - ITS A TEMPLATE 
     240        contact_groups          admins 
     241        register                0 ; DONT REGISTER THIS - ITS A TEMPLATE 
    233242} 
    234243}}} 
     
    241250{{{ 
    242251define host{ 
    243         use                     tpl-windows-servers ; Inherit default values from a template 
     252        use             tpl-windows-servers ; Inherit default values from a template 
    244253        host_name       windowshost ; The name we're giving to this server 
    245254        alias           My First Windows Server ; A longer name for the server 
     
    256265{{{ 
    257266define service{ 
    258         use                                     generic-service 
    259         host_name                       windowshost  
     267        use                     generic-service 
     268        host_name               windowshost  
    260269        service_description     CPU Load 
    261270        check_command           check_nrpe!alias_cpu 
     
    266275{{{ 
    267276define service{ 
    268         use                                     generic-service 
    269         host_name                       windowshost  
     277        use                     generic-service 
     278        host_name               windowshost  
    270279        service_description     Free Space 
    271280        check_command           check_nrpe!alias_disk