| a | b | |
|---|
| 0 | + | define host{ |
|---|
| 0 | + | use generic-host ; Name of host template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | alias localhost |
|---|
| 0 | + | address 127.0.0.1 |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | # Define a service to check the disk space of the root partition |
|---|
| 0 | + | # on the local machine. Warning if < 20% free, critical if |
|---|
| 0 | + | # < 10% free space on partition. |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Disk Space |
|---|
| 0 | + | check_command check_all_disks!20%!10% |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | # Define a service to check the number of currently logged in |
|---|
| 0 | + | # users on the local machine. Warning if > 20 users, critical |
|---|
| 0 | + | # if > 50 users. |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Current Users |
|---|
| 0 | + | check_command check_users!20!50 |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | # Define a service to check the number of currently running procs |
|---|
| 0 | + | # on the local machine. Warning if > 250 processes, critical if |
|---|
| 0 | + | # > 400 processes. |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Total Processes |
|---|
| 0 | + | check_command check_procs!250!400 |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | # Define a service to check the load on the local machine. |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Current Load |
|---|
| 0 | + | check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0 |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Lighty |
|---|
| 0 | + | check_command check_proc_running!lighttpd |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Lighty HTTP |
|---|
| 0 | + | check_command check_squid!80!/ |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | define service{ |
|---|
| 0 | + | use generic-service ; Name of service template to use |
|---|
| 0 | + | host_name localhost |
|---|
| 0 | + | service_description Apache HTTP |
|---|
| 0 | + | check_command check_http |
|---|
| 0 | + | } |
|---|
| ... | |
|---|