-
Notifications
You must be signed in to change notification settings - Fork 89
/
windows_server.cfg
110 lines (100 loc) · 4.31 KB
/
windows_server.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
define host {
use windows-server
host_name windows2012.techarkit.lab.lcoal
alias Windows Server 2012 | Contact: Windows-Admins | Location: India
address 192.168.2.10
}
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
define hostgroup {
hostgroup_name windows-servers
alias Windows Servers
}
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
define service {
host_name windows2012.techarkit.lab.lcoal
service_description CPU Usage
use generic-service
check_command check_nt!password!CPULOAD!-l 5,90,95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}
define service {
host_name windows2012.techarkit.lab.lcoal
service_description Drive C: Disk Usage
use generic-service
check_command check_nt!password!USEDDISKSPACE!-l C -w 90 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}
define service {
host_name windows2012.techarkit.lab.lcoal
service_description Memory Usage
use generic-service
check_command check_nt!password!MEMUSE!-w 90 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}
define service {
host_name windows2012.techarkit.lab.lcoal
service_description Page File Usage
use generic-service
check_command check_nt!password!COUNTER!-l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 90 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}
define service {
host_name windows2012.techarkit.lab.lcoal
service_description Uptime
use generic-service
check_command check_nt!password!UPTIME
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}