]> git.pld-linux.org Git - projects/nagios-config.git/blob - objects/windows.cfg
- objects from nagios 3.0.2
[projects/nagios-config.git] / objects / windows.cfg
1 ###############################################################################
2 # WINDOWS.CFG
3 #
4 # $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
5 ###############################################################################
6
7 ###############################################################################
8 ###############################################################################
9 #
10 # HOST DEFINITIONS
11 #
12 ###############################################################################
13 ###############################################################################
14
15 # Define a host for the Windows machine we'll be monitoring
16 # Change the host_name, alias, and address to fit your situation
17
18 define host{
19         use             windows-server  ; Inherit default values from a template
20         host_name       winserver       ; The name we're giving to this host
21         alias           My Windows Server       ; A longer name associated with the host
22         address         192.168.1.2     ; IP address of the host
23         }
24
25
26
27
28 ###############################################################################
29 ###############################################################################
30 #
31 # HOST GROUP DEFINITIONS
32 #
33 ###############################################################################
34 ###############################################################################
35
36 # Define a hostgroup for Windows machines
37 # All hosts that use the windows-server template will automatically be a member of this group
38 define hostgroup {
39         ; The name of the hostgroup
40         hostgroup_name  windows-servers
41         ; Long name of the group
42         alias                   Windows Servers
43 }
44
45 ###############################################################################
46 ###############################################################################
47 #
48 # SERVICE DEFINITIONS
49 #
50 ###############################################################################
51 ###############################################################################
52
53 # Create a service for monitoring the version of NSCLient++ that is installed
54 # Change the host_name to match the name of the host you defined above
55 define service{
56         use                                     generic-service
57         host_name                       winserver
58         service_description     NSClient++ Version
59         check_command           check_nt!CLIENTVERSION
60 }
61
62 # Create a service for monitoring the uptime of the server
63 # Change the host_name to match the name of the host you defined above
64 define service {
65         use                                     generic-service
66         host_name                       winserver
67         service_description     Uptime
68         check_command           check_nt!UPTIME
69 }
70
71 # Create a service for monitoring CPU load
72 # Change the host_name to match the name of the host you defined above
73 define service{
74         use                                     generic-service
75         host_name                       winserver
76         service_description     CPU Load
77         check_command           check_nt!CPULOAD!-l 5,80,90
78 }
79
80 # Create a service for monitoring 
81 # Change the host_name to match the name of the host you defined above
82 define service {
83         use                                     generic-service
84         host_name                       winserver
85         service_description     Memory Usage
86         check_command           check_nt!MEMUSE!-w 80 -c 90
87 }
88
89 # Create a service for monitoring C:\ disk usage
90 # Change the host_name to match the name of the host you defined above
91 define service {
92         use                                     generic-service
93         host_name                       winserver
94         service_description     C:\ Drive Space
95         check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
96 }
97
98 # Create a service for monitoring the W3SVC service
99 # Change the host_name to match the name of the host you defined above
100 define service {
101         use                                     generic-service
102         host_name                       winserver
103         service_description     W3SVC
104         check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
105 }
106
107 # Create a service for monitoring the Explorer.exe process
108 # Change the host_name to match the name of the host you defined above
109 define service {
110         use                                     generic-service
111         host_name                       winserver
112         service_description     Explorer
113         check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
114 }
115
116 # vim:ts=4:sw=4:ft=nagios
This page took 0.198207 seconds and 3 git commands to generate.