| 1 | ###############################################################################
|
---|
| 2 | ###############################################################################
|
---|
| 3 | #
|
---|
| 4 | # CONTACT TEMPLATES
|
---|
| 5 | #
|
---|
| 6 | ###############################################################################
|
---|
| 7 | ###############################################################################
|
---|
| 8 |
|
---|
| 9 | # Generic contact definition template - This is NOT a real contact, just a template!
|
---|
| 10 |
|
---|
| 11 | define contact{
|
---|
| 12 | name generic-contact ; The name of this contact template
|
---|
| 13 | service_notification_period workhours ; service notifications can be sent anytime
|
---|
| 14 | host_notification_period workhours ; host notifications can be sent anytime
|
---|
| 15 | service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events
|
---|
| 16 | host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events
|
---|
| 17 | service_notification_commands notify-service-by-email ; send service notifications via email
|
---|
| 18 | host_notification_commands notify-host-by-email ; send host notifications via email
|
---|
| 19 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | ###############################################################################
|
---|
| 26 | ###############################################################################
|
---|
| 27 | #
|
---|
| 28 | # HOST TEMPLATES
|
---|
| 29 | #
|
---|
| 30 | ###############################################################################
|
---|
| 31 | ###############################################################################
|
---|
| 32 |
|
---|
| 33 | # Generic host definition template - This is NOT a real host, just a template!
|
---|
| 34 |
|
---|
| 35 | define host{
|
---|
| 36 | name generic-host ; The name of this host template
|
---|
| 37 | notifications_enabled 1 ; Host notifications are enabled
|
---|
| 38 | event_handler_enabled 1 ; Host event handler is enabled
|
---|
| 39 | flap_detection_enabled 1 ; Flap detection is enabled
|
---|
| 40 | failure_prediction_enabled 1 ; Failure prediction is enabled
|
---|
| 41 | process_perf_data 1 ; Process performance data
|
---|
| 42 | retain_status_information 1 ; Retain status information across program restarts
|
---|
| 43 | retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
---|
| 44 | notification_period workhours ; Send host notifications at any time
|
---|
| 45 | notification_interval 360
|
---|
| 46 | notification_options d,u,r ; Only send notifications for specific host states
|
---|
| 47 | contact_groups admins ; Notifications get sent to the admins by default
|
---|
| 48 | check_command check-host-alive ; Default command to check FreeBSD hosts
|
---|
| 49 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
---|
| 50 | action_url /pnp4nagios/graph?host=$HOSTNAME$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | define host {
|
---|
| 55 | use generic-host
|
---|
| 56 | max_check_attempts 10
|
---|
| 57 | host_name fritz.box
|
---|
| 58 | address 192.168.178.1
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | # Little hack to avoid spamming in case DSL Line is down
|
---|
| 62 | define host {
|
---|
| 63 | use generic-host
|
---|
| 64 | max_check_attempts 10
|
---|
| 65 | host_name ns.xs4all.nl
|
---|
| 66 | parents fritz.box
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | # freebsd host definition template - this is not a real host, just a template!
|
---|
| 71 | define host{
|
---|
| 72 | name freebsd-server ; the name of this host template
|
---|
| 73 | parents ns.xs4all.nl ; HACK to avoid spams
|
---|
| 74 | use generic-host ; This template inherits other values from the generic-host template
|
---|
| 75 | check_period workhours ; By default, FreeBSD hosts are checked round the clock
|
---|
| 76 | check_interval 5 ; Actively check the host every 5 minutes
|
---|
| 77 | retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
---|
| 78 | max_check_attempts 10 ; Check each FreeBSD host 10 times (max)
|
---|
| 79 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 | ###############################################################################
|
---|
| 86 | ###############################################################################
|
---|
| 87 | #
|
---|
| 88 | # SERVICE TEMPLATES
|
---|
| 89 | #
|
---|
| 90 | ###############################################################################
|
---|
| 91 | ###############################################################################
|
---|
| 92 |
|
---|
| 93 | # Generic service definition template - This is NOT a real service, just a template!
|
---|
| 94 |
|
---|
| 95 | define service{
|
---|
| 96 | name generic-service ; The 'name' of this service template
|
---|
| 97 | active_checks_enabled 1 ; Active service checks are enabled
|
---|
| 98 | passive_checks_enabled 1 ; Passive service checks are enabled/accepted
|
---|
| 99 | parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
|
---|
| 100 | obsess_over_service 1 ; We should obsess over this service (if necessary)
|
---|
| 101 | check_freshness 0 ; Default is to NOT check service 'freshness'
|
---|
| 102 | notifications_enabled 1 ; Service notifications are enabled
|
---|
| 103 | event_handler_enabled 1 ; Service event handler is enabled
|
---|
| 104 | flap_detection_enabled 1 ; Flap detection is enabled
|
---|
| 105 | failure_prediction_enabled 1 ; Failure prediction is enabled
|
---|
| 106 | process_perf_data 1 ; Process performance data
|
---|
| 107 | retain_status_information 1 ; Retain status information across program restarts
|
---|
| 108 | retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
---|
| 109 | is_volatile 0 ; The service is not volatile
|
---|
| 110 | check_period workhours ; The service can be checked at any time of the day
|
---|
| 111 | max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state
|
---|
| 112 | normal_check_interval 10 ; Check the service every 10 minutes under normal conditions
|
---|
| 113 | retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined
|
---|
| 114 | contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
|
---|
| 115 | notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
|
---|
| 116 | notification_interval 360
|
---|
| 117 | notification_period workhours ; Notifications can be sent out at any time
|
---|
| 118 | action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
|
---|
| 119 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 |
|
---|
| 123 | # Local service definition template - This is NOT a real service, just a template!
|
---|
| 124 |
|
---|
| 125 | define service{
|
---|
| 126 | name local-service ; The name of this service template
|
---|
| 127 | use generic-service ; Inherit default values from the generic-service definition
|
---|
| 128 | max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state
|
---|
| 129 | normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
|
---|
| 130 | retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined
|
---|
| 131 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
---|
| 132 | }
|
---|
| 133 |
|
---|