]> git.pld-linux.org Git - projects/nagios-config.git/blob - objects/localhost.cfg
- objects from nagios 3.0.2
[projects/nagios-config.git] / objects / localhost.cfg
1 ###############################################################################
2 # LOCALHOST.CFG
3 #
4 # $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
5 ###############################################################################
6
7 ###############################################################################
8 ###############################################################################
9 #
10 # HOST DEFINITION
11 #
12 ###############################################################################
13 ###############################################################################
14
15 # Define a host for the local machine
16 define host {
17         ; Name of host template to use
18         use                             linux-server
19         ; This host definition will inherit all variables that are defined
20         ; in (or inherited by) the linux-server host template definition.
21         host_name               localhost
22         alias                   localhost
23         address                 127.0.0.1
24 }
25
26 ###############################################################################
27 ###############################################################################
28 #
29 # HOST GROUP DEFINITION
30 #
31 ###############################################################################
32 ###############################################################################
33
34 # Define an optional hostgroup for Linux machines
35 define hostgroup {
36         ; The name of the hostgroup
37         hostgroup_name  linux-servers
38         ; Long name of the group
39         alias                   Linux Servers
40         ; Comma separated list of hosts that belong to this group
41         members                 localhost
42 }
43
44 ###############################################################################
45 ###############################################################################
46 #
47 # SERVICE DEFINITIONS
48 #
49 ###############################################################################
50 ###############################################################################
51
52 # Define a service to "ping" the local machine
53 define service {
54         ; Name of service template to use
55         use                                                     local-service
56         host_name                                       localhost
57         service_description                     PING
58         check_command                           check_ping!100.0,20%!500.0,60%
59 }
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.
64 define service {
65         ; Name of service template to use
66         use                                                     local-service
67         host_name                                       localhost
68         service_description                     Root Partition
69         check_command                           check_local_disk!20%!10%!/
70 }
71
72 # Define a service to check the number of currently logged in
73 # users on the local machine.  Warning if > 20 users, critical
74 # if > 50 users.
75 define service {
76         ; Name of service template to use
77         use                                                     local-service
78         host_name                                       localhost
79         service_description                     Current Users
80         check_command                           check_local_users!20!50
81 }
82
83 # Define a service to check the number of currently running procs
84 # on the local machine.  Warning if > 250 processes, critical if
85 # > 400 users.
86 define service {
87         ; Name of service template to use
88         use                                                     local-service
89         host_name                                       localhost
90         service_description                     Total Processes
91         check_command                           check_local_procs!250!400!RSZDT
92 }
93
94 # Define a service to check the load on the local machine. 
95 define service {
96         ; Name of service template to use
97         use                                                     local-service
98         host_name                                       localhost
99         service_description                     Current Load
100         check_command                           check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
101 }
102
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
105 define service {
106         ; Name of service template to use
107         use                                                     local-service
108         host_name                                       localhost
109         service_description                     Swap Usage
110         check_command                           check_local_swap!20!10
111 }
112
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.
115 define service {
116         ; Name of service template to use
117         use                                                     local-service
118         host_name                                       localhost
119         service_description                     SSH
120         check_command                           check_ssh
121         notifications_enabled           0
122 }
123
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.
126 define service {
127         ; Name of service template to use
128         use                                                     local-service
129         host_name                                       localhost
130         service_description                     HTTP
131         check_command                           check_http
132         notifications_enabled           0
133 }
134
135 # vim:ts=4:sw=4:ft=nagios
This page took 0.375007 seconds and 3 git commands to generate.