Nagios
# Time periods definitions ########################## # 7d/7 24h/24 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 }
# Contacts defintions ##################### define contact { contact_name lulu alias Lucien host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r service_notification_options w,u,c,r host_notification_commands host-notify-by-email service_notification_commands notify-by-email email lulu@gmail.com }
# Contacts groups definition ############################ define contactgroup { contactgroup_name admins alias Administrators members lulu }
# Templates #---------- define host{ name template-host check_command check-host-alive max_check_attempts 2 check_interval 5 active_checks_enabled 1 passive_checks_enabled 0 check_period 24x7 notification_interval 60 notification_period 24x7 obsess_over_host 0 check_freshness 0 event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 contact_groups admins register 0 }
# Mon serveur #------------ define host{ use template-hosts host_name monserveur alias Mon serveur Debian address 192.168.0.100 }
# monserveuramoi #--------- define service { host_name monserveur use template-services service_description Ping check_command check-server-alive } define service { host_name monserveur use template-services service_description Web check_command check_http } define service { host_name monserveur use template-services service_description SSH check_command check_ssh }