1 ###############################################################################
4 # $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
5 ###############################################################################
7 ###############################################################################
8 ###############################################################################
12 ###############################################################################
13 ###############################################################################
15 # Define a host for the local machine
17 ; Name of host template to use
19 ; This host definition will inherit all variables that are defined
20 ; in (or inherited by) the linux-server host template definition.
26 ###############################################################################
27 ###############################################################################
29 # HOST GROUP DEFINITION
31 ###############################################################################
32 ###############################################################################
34 # Define an optional hostgroup for Linux machines
36 ; The name of the hostgroup
37 hostgroup_name linux-servers
38 ; Long name of the group
40 ; Comma separated list of hosts that belong to this group
44 ###############################################################################
45 ###############################################################################
49 ###############################################################################
50 ###############################################################################
52 # Define a service to "ping" the local machine
54 ; Name of service template to use
57 service_description PING
58 check_command check_ping!100.0,20%!500.0,60%
61 # Define a service to check the disk space of the root partition
62 # on the local machine. Warning if < 20% free, critical if
63 # < 10% free space on partition.
65 ; Name of service template to use
68 service_description Root Partition
69 check_command check_local_disk!20%!10%!/
72 # Define a service to check the number of currently logged in
73 # users on the local machine. Warning if > 20 users, critical
76 ; Name of service template to use
79 service_description Current Users
80 check_command check_local_users!20!50
83 # Define a service to check the number of currently running procs
84 # on the local machine. Warning if > 250 processes, critical if
87 ; Name of service template to use
90 service_description Total Processes
91 check_command check_local_procs!250!400!RSZDT
94 # Define a service to check the load on the local machine.
96 ; Name of service template to use
99 service_description Current Load
100 check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
103 # Define a service to check the swap usage the local machine.
104 # Critical if less than 10% of swap is free, warning if less than 20% is free
106 ; Name of service template to use
109 service_description Swap Usage
110 check_command check_local_swap!20!10
113 # Define a service to check SSH on the local machine.
114 # Disable notifications for this service by default, as not all users may have SSH enabled.
116 ; Name of service template to use
119 service_description SSH
120 check_command check_ssh
121 notifications_enabled 0
124 # Define a service to check HTTP on the local machine.
125 # Disable notifications for this service by default, as not all users may have HTTP enabled.
127 ; Name of service template to use
130 service_description HTTP
131 check_command check_http
132 notifications_enabled 0
135 # vim:ts=4:sw=4:ft=nagios