From Melodic Hamerkop, 11 Years ago, written in Plain Text.
Embed
  1. # A simple configuration file for monitoring the local host
  2. # This can serve as an example for configuring other servers;
  3. # Custom services specific to this host are added here, but services
  4. # defined in icinga-common_services.cfg may also apply.
  5. #
  6.  
  7. define host{
  8.         use                     generic-host            ; Name of host template to use
  9.         host_name               localhost
  10.         alias                   localhost
  11.         address                 127.0.0.1
  12.         }
  13.  
  14. # Define a service to check the disk space of the root partition
  15. # on the local machine.  Warning if < 20% free, critical if
  16. # < 10% free space on partition.
  17.  
  18. define service{
  19.         use                             generic-service         ; Name of service template to use
  20.         host_name                       localhost
  21.         service_description             Disk Space
  22.         check_command                   check_all_disks!20%!10%
  23.         }
  24.  
  25.  
  26.  
  27. # Define a service to check the number of currently logged in
  28. # users on the local machine.  Warning if > 20 users, critical
  29. # if > 50 users.
  30.  
  31. define service{
  32.         use                             generic-service         ; Name of service template to use
  33.         host_name                       localhost
  34.         service_description             Current Users
  35.         check_command                   check_users!20!50
  36.         }
  37.  
  38.  
  39. # Define a service to check the number of currently running procs
  40. # on the local machine.  Warning if > 250 processes, critical if
  41. # > 400 processes.
  42.  
  43. define service{
  44.         use                             generic-service         ; Name of service template to use
  45.         host_name                       localhost
  46.         service_description             Total Processes
  47.                 check_command                   check_procs!250!400
  48.         }
  49.  
  50.  
  51.  
  52. # Define a service to check the load on the local machine.
  53.  
  54. define service{
  55.         use                             generic-service         ; Name of service template to use
  56.         host_name                       localhost
  57.         service_description             Current Load
  58.                 check_command                   check_load!5.0!4.0!3.0!10.0!6.0!4.0
  59.         }
  60.