-
Notifications
You must be signed in to change notification settings - Fork 91
/
ncpa_windows.cfg
119 lines (104 loc) · 4.86 KB
/
ncpa_windows.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
111
112
113
114
115
116
117
118
119
###################################################
## Host Definationi: XXXX
###################################################
define host {
host_name XXXX
use wux-windows
address ZZZZ
hostgroups windows-server
contacts nagiosadmin
contact_groups nagiosadmin
first_notification_delay 0
notifications_enabled 1
}
##############################
#### Service Defination ####
##############################
define service {
host_name XXXX
service_description C:\ Disk Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'disk/logical/C:|' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description E:\ Disk Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'disk/logical/E:|' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description D:\ Disk Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'disk/logical/D:|' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description CPU Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M cpu/percent -w '90' -c '95' -q 'aggregate=avg'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Memory Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'memory/swap' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Memory Usage
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'memory/virtual/percent' -w 90 -c 95 -u Gi
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Ping
use windows-service
check_command check-host-alive
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Uptime
use windows-service
check_command check_ncpa!-t 'mytoken' -T 60 -M 'system/uptime' -w @60:120 -c @1:60
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Interface Outgoing Errors
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/eth0/errout' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Interface Errors Inbound
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/Team 1/errin' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Interface Errors Outbound
use windows-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/Team 1/errout' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}