-
Notifications
You must be signed in to change notification settings - Fork 91
/
ncpa_linux.cfg
146 lines (129 loc) · 6.08 KB
/
ncpa_linux.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
###################################################
## Host Definationi: XXXX
###################################################
define host {
host_name XXXX
use linux-server
address ZZZZ
hostgroups linux-server
contacts nagiosadmin
contact_groups nagiosadmin
first_notification_delay 0
notifications_enabled 1
}
##############################
#### Service Defination ####
##############################
define service {
host_name XXXX
service_description / Disk Usage
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'disk/logical/|' -w '90' -c '95'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description /boot Disk Usage
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'disk/logical/|boot' -w '90' -c '95'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description CPU Usage
use linux-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 linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M memory/virtual -u 'Gi' -w '90' -c '95'
contacts nagiosadmin
contact_groups nagiosadmin
service_groups Linux_Memory
}
define service {
host_name XXXX
service_description Ping
use linux-service
check_command check-host-alive
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Swap Usage
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M memory/swap -u 'Gi' -w '90' -c '95'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Login User Count
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M user/count -w '5' -c '10'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Crond Service Status
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'services' -q 'service=crond,status=running'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description SSHD Service Status
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'services' -q 'service=sshd,status=running'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Uptime
use linux-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 Incoming Errors
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/eth0/errin' -w 90 -c 95
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Interface Outgoing Errors
use linux-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 Packets Sent
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/eth0/packets_sent'
contacts nagiosadmin
contact_groups nagiosadmin
}
define service {
host_name XXXX
service_description Interface Packets Received
use linux-service
check_command check_ncpa!-t 'mytoken' -P 5693 -M 'interface/eth0/packets_recv'
contacts nagiosadmin
contact_groups nagiosadmin
}