-
Notifications
You must be signed in to change notification settings - Fork 18
/
nagios_core_services.cfg
190 lines (170 loc) · 8.87 KB
/
nagios_core_services.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
define service{
use generic-service
host_name <named host>
service_description Version
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_version"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Uptime
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_uptime"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description CPU Temperature
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_cpu_temp -w 75 -c 90"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description CPU
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_cpu -w 80 -c 95"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Load
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_load -w 3,2.8,2.6 -c 10,7,5 -r"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Memory
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_mem -w 90 -c 95"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Total Processes
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_procs -w 200 -c 400"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description State Table
check_command check_by_ssh!-H <hostname or IP address> -C "sudo /usr/local/libexec/nagios/check_pf_state_table -w 60 -c 90"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description LAN Interface
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_interface -i re1 -name LAN"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description VPN To Somewhere
check_command check_by_ssh!-H <hostname or IP address> -C "sudo /usr/local/libexec/nagios/check_pf_ipsec_tunnel -e <external hostname or IP address> -name Somewhere"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Ping To OpenDNS
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_ping -H 208.67.222.222 -w 80,10% -c 150,40%"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description NTP Variation
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_ntp_time -H pool.ntp.org"
check_interval 30
retry_interval 3
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Service: pinger
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_services -name pinger"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Service: dhcpd
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_services -name dhcpd"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Service: openvpn
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_services -name openvpn server 1"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Service: squid
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_services -name squid"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description Service: squidguard
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_services -name squidGuard"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description eMMC Status LTEA Usage
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_emmc_status -C LTEA -w 5 -c 8"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description eMMC Status LTEB Usage
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_emmc_status -C LTEB -w 5 -c 8"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description eMMC Status Pre EOL Status
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_emmc_status -C EOL -w 2 -c 3"
notifications_enabled 1
servicegroups firewall
}
define service{
use generic-service
host_name <named host>
service_description SMART Status SATA and NVMe drives
check_command check_by_ssh!-H <hostname or IP address> -C "/usr/local/libexec/nagios/check_pf_smart -i auto -d <device name>"
notifications_enabled 1
servicegroups firewall
}