You are here

system.txt in Monitoring 7

# Define a service to check the disk space of the root partition
# on the remote machine.  Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
    use                             generic-service
    host_name                       @host
    service_description             Disk Space
    check_command                   check_all_disks!20%!10%
    }



# Define a service to check the number of currently logged in
# users on the remote machine.  Warning if > 20 users, critical
# if > 50 users.

define service{
    use                             generic-service
    host_name                       @host
    service_description             Current Users
    check_command                   check_users!20!50
    }


# Define a service to check the number of currently running procs
# on the remote machine.  Warning if > 250 processes, critical if
# > 400 processes.

define service{
    use                             generic-service
    host_name                       @host
    service_description             Total Processes
    check_command                   check_procs!250!400
    }



# Define a service to check the load on the remote machine.

define service{
    use                             generic-service
    host_name                       @host
    service_description             Current Load
    check_command                   check_load!5.0!4.0!3.0!10.0!6.0!4.0
    }

File

modules/monitoring_icinga/config_tpl/system.txt
View source
  1. # Define a service to check the disk space of the root partition
  2. # on the remote machine. Warning if < 20% free, critical if
  3. # < 10% free space on partition.
  4. define service{
  5. use generic-service
  6. host_name @host
  7. service_description Disk Space
  8. check_command check_all_disks!20%!10%
  9. }
  10. # Define a service to check the number of currently logged in
  11. # users on the remote machine. Warning if > 20 users, critical
  12. # if > 50 users.
  13. define service{
  14. use generic-service
  15. host_name @host
  16. service_description Current Users
  17. check_command check_users!20!50
  18. }
  19. # Define a service to check the number of currently running procs
  20. # on the remote machine. Warning if > 250 processes, critical if
  21. # > 400 processes.
  22. define service{
  23. use generic-service
  24. host_name @host
  25. service_description Total Processes
  26. check_command check_procs!250!400
  27. }
  28. # Define a service to check the load on the remote machine.
  29. define service{
  30. use generic-service
  31. host_name @host
  32. service_description Current Load
  33. check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
  34. }