|
11 | 11 | "--critical": { |
12 | 12 | "value": "$cpu_usage_critical$" |
13 | 13 | }, |
14 | | - "--top": { |
15 | | - "value": "$cpu_usage_top$" |
16 | | - }, |
17 | 14 | "--warning": { |
18 | 15 | "value": "$cpu_usage_warning$" |
19 | 16 | } |
|
40 | 37 | "datafield_id": 4, |
41 | 38 | "is_required": "n", |
42 | 39 | "var_filter": null |
43 | | - }, |
44 | | - { |
45 | | - "datafield_id": 5, |
46 | | - "is_required": "n", |
47 | | - "var_filter": null |
48 | 40 | } |
49 | 41 | ], |
50 | 42 | "imports": [], |
|
68 | 60 | "--critical": { |
69 | 61 | "value": "$cpu_usage_windows_critical$" |
70 | 62 | }, |
71 | | - "--top": { |
72 | | - "value": "$cpu_usage_windows_top$" |
73 | | - }, |
74 | 63 | "--warning": { |
75 | 64 | "value": "$cpu_usage_windows_warning$" |
76 | 65 | } |
|
79 | 68 | "disabled": false, |
80 | 69 | "fields": [ |
81 | 70 | { |
82 | | - "datafield_id": 6, |
83 | | - "is_required": "n", |
84 | | - "var_filter": null |
85 | | - }, |
86 | | - { |
87 | | - "datafield_id": 7, |
| 71 | + "datafield_id": 5, |
88 | 72 | "is_required": "n", |
89 | 73 | "var_filter": null |
90 | 74 | }, |
91 | 75 | { |
92 | | - "datafield_id": 8, |
| 76 | + "datafield_id": 6, |
93 | 77 | "is_required": "n", |
94 | 78 | "var_filter": null |
95 | 79 | }, |
96 | 80 | { |
97 | | - "datafield_id": 9, |
| 81 | + "datafield_id": 7, |
98 | 82 | "is_required": "n", |
99 | 83 | "var_filter": null |
100 | 84 | }, |
101 | 85 | { |
102 | | - "datafield_id": 10, |
| 86 | + "datafield_id": 8, |
103 | 87 | "is_required": "n", |
104 | 88 | "var_filter": null |
105 | 89 | } |
|
162 | 146 | "tpl-service-generic" |
163 | 147 | ], |
164 | 148 | "max_check_attempts": 5, |
165 | | - "notes": "Reports CPU utilization percentages for all available time categories (user, system, idle, nice, iowait, irq, softirq, steal, guest, guest_nice) plus the overall cpu-usage (100 \u2212 idle \u2212 nice). Thresholds (WARN/CRIT) are checked against user, system, iowait, and cpu-usage. An alert is raised only if the threshold is exceeded for COUNT consecutive runs, suppressing short spikes and focusing on sustained load. Perfdata is emitted for every field to enable full graphing. Extended stats (context switches, interrupts, etc.) are included if supported on this platform. With `--top`, the most CPU-intensive processes are also listed for quick diagnosis. This check is cross-platform and works on Linux, Windows, and all psutil-supported systems. The check stores its short trend state locally in an SQLite DB to evaluate sustained load across runs.", |
| 149 | + "notes": "Reports CPU utilization percentages for all available time categories (user, system, idle, nice, iowait, irq, softirq, steal, guest, guest_nice) plus the overall cpu-usage (100 \u2212 idle \u2212 nice). Thresholds (WARN/CRIT) are checked against user, system, iowait, and cpu-usage. An alert is raised only if the threshold is exceeded for COUNT consecutive runs, suppressing short spikes and focusing on sustained load. Perfdata is emitted for every field to enable full graphing. Extended stats (context switches, interrupts, etc.) are included if supported on this platform. This check is cross-platform and works on Linux, Windows, and all psutil-supported systems. The check stores its short trend state locally in an SQLite DB to evaluate sustained load across runs.", |
166 | 150 | "notes_url": "https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/cpu-usage", |
167 | 151 | "object_name": "tpl-service-cpu-usage", |
168 | 152 | "object_type": "template", |
|
176 | 160 | "cpu_usage_always_ok": false, |
177 | 161 | "cpu_usage_count": 5, |
178 | 162 | "cpu_usage_critical": 90, |
179 | | - "cpu_usage_top": 5, |
180 | 163 | "cpu_usage_warning": 80 |
181 | 164 | }, |
182 | 165 | "volatile": null, |
|
212 | 195 | "tpl-service-generic" |
213 | 196 | ], |
214 | 197 | "max_check_attempts": 5, |
215 | | - "notes": "Reports CPU utilization percentages for all available time categories (user, system, idle, nice, iowait, irq, softirq, steal, guest, guest_nice) plus the overall cpu-usage (100 \u2212 idle \u2212 nice). Thresholds (WARN/CRIT) are checked against user, system, iowait, and cpu-usage. An alert is raised only if the threshold is exceeded for COUNT consecutive runs, suppressing short spikes and focusing on sustained load. Perfdata is emitted for every field to enable full graphing. Extended stats (context switches, interrupts, etc.) are included if supported on this platform. With `--top`, the most CPU-intensive processes are also listed for quick diagnosis. This check is cross-platform and works on Linux, Windows, and all psutil-supported systems. The check stores its short trend state locally in an SQLite DB to evaluate sustained load across runs.", |
| 198 | + "notes": "Reports CPU utilization percentages for all available time categories (user, system, idle, nice, iowait, irq, softirq, steal, guest, guest_nice) plus the overall cpu-usage (100 \u2212 idle \u2212 nice). Thresholds (WARN/CRIT) are checked against user, system, iowait, and cpu-usage. An alert is raised only if the threshold is exceeded for COUNT consecutive runs, suppressing short spikes and focusing on sustained load. Perfdata is emitted for every field to enable full graphing. Extended stats (context switches, interrupts, etc.) are included if supported on this platform. This check is cross-platform and works on Linux, Windows, and all psutil-supported systems. The check stores its short trend state locally in an SQLite DB to evaluate sustained load across runs.", |
216 | 199 | "notes_url": "https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/cpu-usage", |
217 | 200 | "object_name": "tpl-service-cpu-usage-windows", |
218 | 201 | "object_type": "template", |
|
226 | 209 | "cpu_usage_windows_always_ok": false, |
227 | 210 | "cpu_usage_windows_count": 5, |
228 | 211 | "cpu_usage_windows_critical": 90, |
229 | | - "cpu_usage_windows_top": 5, |
230 | 212 | "cpu_usage_windows_warning": 80 |
231 | 213 | }, |
232 | 214 | "volatile": null, |
|
267 | 249 | "uuid": "a9c69583-5e98-4ae8-bec0-a7f4826dceb1" |
268 | 250 | }, |
269 | 251 | "4": { |
270 | | - "varname": "cpu_usage_top", |
271 | | - "caption": "CPU Usage: Top", |
272 | | - "description": "List x \"Top processes using the most cpu time\". Use `--top=0` to disable this feature.", |
273 | | - "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
274 | | - "format": null, |
275 | | - "settings": { |
276 | | - "visibility": "visible" |
277 | | - }, |
278 | | - "uuid": "217b99f6-47ba-45ea-9dfd-43fe139fe2d1" |
279 | | - }, |
280 | | - "5": { |
281 | 252 | "varname": "cpu_usage_warning", |
282 | 253 | "caption": "CPU Usage: Warning", |
283 | 254 | "description": "Set the warning threshold CPU Usage Percentage.", |
|
288 | 259 | }, |
289 | 260 | "uuid": "d59b27e4-44f7-4fa6-aaf4-36e4885af075" |
290 | 261 | }, |
291 | | - "6": { |
| 262 | + "5": { |
292 | 263 | "varname": "cpu_usage_windows_always_ok", |
293 | 264 | "caption": "CPU Usage: Always OK?", |
294 | 265 | "description": "Always returns OK.", |
|
297 | 268 | "settings": {}, |
298 | 269 | "uuid": "5a7722fb-e5ab-48a2-bcc9-8dc3036e92de" |
299 | 270 | }, |
300 | | - "7": { |
| 271 | + "6": { |
301 | 272 | "varname": "cpu_usage_windows_count", |
302 | 273 | "caption": "CPU Usage: Count", |
303 | 274 | "description": "Number of times the value must exceed specified thresholds before alerting.", |
|
308 | 279 | }, |
309 | 280 | "uuid": "f3f24630-5a4a-4461-accc-0c4399ed9d8a" |
310 | 281 | }, |
311 | | - "8": { |
| 282 | + "7": { |
312 | 283 | "varname": "cpu_usage_windows_critical", |
313 | 284 | "caption": "CPU Usage: Critical", |
314 | 285 | "description": "Set the critical threshold CPU Usage Percentage.", |
|
319 | 290 | }, |
320 | 291 | "uuid": "368a0e17-0456-4024-8b4b-412a6367d387" |
321 | 292 | }, |
322 | | - "9": { |
323 | | - "varname": "cpu_usage_windows_top", |
324 | | - "caption": "CPU Usage: Top", |
325 | | - "description": "List x \"Top processes using the most cpu time\". Use `--top=0` to disable this feature.", |
326 | | - "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
327 | | - "format": null, |
328 | | - "settings": { |
329 | | - "visibility": "visible" |
330 | | - }, |
331 | | - "uuid": "838e00dc-a791-4354-ae03-56794931f211" |
332 | | - }, |
333 | | - "10": { |
| 293 | + "8": { |
334 | 294 | "varname": "cpu_usage_windows_warning", |
335 | 295 | "caption": "CPU Usage: Warning", |
336 | 296 | "description": "Set the warning threshold CPU Usage Percentage.", |
|
0 commit comments