Login
Newsletter
Werbung

Mo, 13. Juli 2009, 00:00

High Availability Computer Center (hacc-) - Update, Teil 3

Teil 3: Hochverfügbarkeit und Web-Oberfläche

Anlegen: /etc/nagios2/conf.d/default.cfg

define contact{
 name default-contact
 register 0
 alias Nagios Admin
 service_notification_period 24x7
 host_notification_period 24x7
 service_notification_options c,w,u,r,f
 host_notification_options d,u,r,f
 service_notification_commands notify-by-email
 host_notification_commands host-notify-by-email
 email email_*
}
###############################################################################
define service {
 name default-service
 register 0
 active_checks_enabled 1
 passive_checks_enabled 1
 parallelize_check 1
 obsess_over_service 1
 check_freshness 0
 notifications_enabled 1
 event_handler_enabled 1
 flap_detection_enabled 1 ; Flap detection is enabled
 process_perf_data 1 ; Process performance data
 retain_status_information 1
 retain_nonstatus_information 1
 service_description PING
 is_volatile 0
 check_period 24x7
 normal_check_interval 5
 retry_check_interval 2
 max_check_attempts 4
 contact_groups linux-admins
 notification_interval 1440
 notification_period 24x7
 notification_options c,w,r,u,f
 check_command check_ping!1000.0,20%!5000.0,60%
 contact_groups linux-admins
}
define host {
 name default-host
 register 0
 notifications_enabled 1 ; Host notifications are enabled
 event_handler_enabled 1 ; Host event handler is enabled
 flap_detection_enabled 1 ; Flap detection is enabled
 process_perf_data 1 ; Process performance data
 retain_status_information 1
 retain_nonstatus_information 1
 check_command check-host-alive
 max_check_attempts 3 ; 3
 check_interval 12
 notification_interval 1440 ; 120
 active_checks_enabled 1 : 0
 notification_period 24x7
 notification_options d,u,r,f
 contact_groups linux-admins
}

Bemerkung: email_* ist durch die Mailadresse der Administratoren zu ersetzen.

Kommentare (Insgesamt: 0 )
Pro-Linux
Pro-Linux @Facebook
Neue Nachrichten
Werbung