define timeperiod {
  timeperiod_name                24x7
  alias                          24 Hours A Day, 7 Days A Week
  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
  sunday                         00:00-24:00
}

define contact {
  name                           generic-contact
  host_notification_commands     notify-host-by-email
  host_notification_options      d,u,r,f,s
  host_notification_period       24x7
  register                       0
  service_notification_commands  notify-service-by-email
  service_notification_options   w,u,c,r,f,s
  service_notification_period    24x7
}

define contact {
  contact_name                   naemonadmin
  alias                          Naemon Admin
  use                            generic-contact
  email                          naemon@localhost
}

define contactgroup {
  contactgroup_name              admins
  alias                          Naemon Administrators
  members                        naemonadmin
}

define command {
  command_name                   notify-host-by-email
  command_line                   /bin/true
}

define command {
  command_name                   notify-service-by-email
  command_line                   /bin/true
}

define host {
  name                           generic-host
  event_handler_enabled          1
  flap_detection_enabled         1
  notification_period            24x7
  notifications_enabled          1
  process_perf_data              1
  register                       0
  retain_nonstatus_information   1
  retain_status_information      1
}

define command {
  command_name                   check-host-alive
  command_line                   $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 3
}

define host {
  name                           linux-server
  use                            generic-host
  check_command                  check-host-alive
  check_interval                 5
  check_period                   24x7
  contact_groups                 admins
  max_check_attempts             10
  notification_interval          120
  notification_options           d,u,r
  notification_period            24x7
  register                       0
  retry_interval                 1
}

define host {
  host_name                      localhost
  alias                          localhost
  address                        127.0.0.1
  use                            linux-server
}

define hostgroup {
  hostgroup_name                 linux-servers
  alias                          Linux Servers
  members                        localhost
}

define hostgroup {
  hostgroup_name                 test
  alias                          Test Servers
  members                        test
}

define service {
  name                           generic-service
  active_checks_enabled          1
  check_freshness                0
  check_interval                 10
  check_period                   24x7
  contact_groups                 admins
  event_handler_enabled          1
  flap_detection_enabled         1
  is_volatile                    0
  max_check_attempts             3
  notification_interval          60
  notification_options           w,u,c,r
  notification_period            24x7
  notifications_enabled          1
  obsess_over_service            1
  passive_checks_enabled         1
  process_perf_data              1
  register                       0
  retain_nonstatus_information   1
  retain_status_information      1
  retry_interval                 2
}

define service {
  name                           local-service
  use                            generic-service
  check_interval                 5
  max_check_attempts             4
  register                       0
  retry_interval                 1
}

define command {
  command_name                   check_ping
  command_line                   $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 3
}

define service {
  service_description            PING
  host_name                      localhost
  use                            local-service
  check_command                  check_ping!100.0,20%!500.0,60%
}

define command {
  command_name                   check_local_disk
  command_line                   $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}

define service {
  service_description            Root Partition
  host_name                      localhost
  use                            local-service
  check_command                  check_local_disk!2%!1%!/
}

define command {
  command_name                   check_local_users
  command_line                   $USER1$/check_users -w $ARG1$ -c $ARG2$
}

define service {
  service_description            Current Users
  host_name                      localhost
  use                            local-service
  check_command                  check_local_users!20!50
}

define command {
  command_name                   check_local_procs
  command_line                   $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}

define service {
  service_description            Total Processes
  host_name                      localhost
  use                            local-service
  check_command                  check_local_procs!250!400!RSZDT
}

define command {
  command_name                   check_local_load
  command_line                   $USER1$/check_load -w $ARG1$ -c $ARG2$
}

define service {
  service_description            Current Load
  host_name                      localhost
  use                            local-service
  check_command                  check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}

define command {
  command_name                   check_http
  command_line                   $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}

define service {
  service_description            HTTP
  host_name                      localhost
  use                            local-service
  check_command                  check_http!-u /naemon/ -e 404
}

define command {
  command_name                   check_dummy
  command_line                   printf $ARG1$
}

define command {
  command_name                   check_dummy2
  command_line                   printf $ARG1$ && exit $ARG2$
}

define service {
  service_description            Example Check
  host_name                      localhost
  use                            local-service
  check_command                  check_dummy!'$SERVICEDESC$|x=5$USER5$10$USER5$20$USER5$0$USER5$50'
}

define host {
  host_name                      test
  alias                          test
  address                        127.0.0.2
  use                            linux-server
  contacts                       test_contact
}

define service {
  service_description            ok
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!ok!0
  max_check_attempts             1
}

define service {
  service_description            ok_downtime
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!ok!0
  max_check_attempts             1
}

define service {
  service_description            warning
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!warning!1
  max_check_attempts             1
}

define service {
  service_description            critical
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!critical!2
  max_check_attempts             1
}

define service {
  service_description            unknown
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!unknown!3
  max_check_attempts             1
}

define service {
  service_description            pending
  host_name                      test
  use                            local-service
  active_checks_enabled          0
  check_command                  check_dummy2!pending!0
}

define service {
  service_description            critical_downtime
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!critical!2
  max_check_attempts             1
}

define service {
  service_description            critical_ack
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!critical!2
  max_check_attempts             1
}

define service {
  service_description            warning_downtime
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!warning!1
  max_check_attempts             1
}

define service {
  service_description            warning_ack
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!warning!1
  max_check_attempts             1
}

define service {
  service_description            warning_ack_downtime
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!warning!1
  max_check_attempts             1
}

define service {
  service_description            unknown_downtime
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!unknown!3
  max_check_attempts             1
}

define service {
  service_description            unknown_ack
  host_name                      test
  use                            local-service
  check_command                  check_dummy2!unknown!3
  max_check_attempts             1
}

define contact {
  contact_name                   test_contact
  alias                          test_contact
  use                            generic-contact
  can_submit_commands            1
  email                          test@localhost
}

