Debian Codegraph @

madrisan-nagios-plugins-linux/nagios-plugins-linux/contrib/icinga2/CheckCommands.conf

raw symbols SCIP
1 object CheckCommand "madrisan-uptime" {
2 command = [ PluginDir + "/madrisan/check_uptime" ]
3
4 arguments += {
5 "-m" = {
6 description = "use the monotonic clock for retrieving the time"
7 set_if = "$madrisan_uptime_monotonic$"
8 }
9 "-w" = {
10 description = "Warning threshold in Minutes"
11 value = "$madrisan_uptime_warning$"
12 }
13 "-c" = {
14 description = "Critical threshold in Minutes"
15 value = "$madrisan_uptime_critical$"
16 }
17 }
18 }
19
20 object CheckCommand "madrisan-clock" {
21 command = [ PluginDir + "/madrisan/check_clock" ]
22
23 arguments += {
24 "-r" = {
25 description = "the clock reference (in seconds since the Epoch)"
26 value = {{ DateTime().format("%s") }}
27 }
28 "-w" = {
29 description = "Warning threshold"
30 value = "$madrisan_clock_warning$"
31 }
32 "-c" = {
33 description = "Critical threshold"
34 value = "$madrisan_clock_critical$"
35 }
36 }
37 }
38
39 object CheckCommand "madrisan-cpu" {
40 command = [ PluginDir + "/madrisan/check_cpu" ]
41
42 arguments += {
43 "-m" = {
44 description = "do not display the CPU model in the output message"
45 set_if = "$madrisan-cpu_no-cpu-model$"
46 }
47 "-p" = {
48 description = "display the utilization of each CPU"
49 set_if = "$madrisan-cpu_per-cpu$"
50 }
51 "-w" = {
52 description = "Warning threshold in percent"
53 value = "$madrisan-cpu_warning$"
54 }
55 "-c" = {
56 description = "Critical threshold in percent"
57 value = "$madrisan-cpu_critical$"
58 }
59 "delay" = {
60 description = "delay is the delay between updates in seconds (default: 1sec)"
61 value = "$madrisan-cpu_delay$"
62 skip_key = true
63 order = 1
64 }
65 "count" = {
66 description = "count is the number of updates (default: 2), 1 means the percentages of total CPU time from boottime."
67 value = "$madrisan-cpu_count$"
68 skip_key = true
69 order = 2
70 }
71 }
72 }
73
74 object CheckCommand "madrisan-iowait" {
75 command = [ PluginDir + "/madrisan/check_iowait" ]
76
77 arguments += {
78 "-m" = {
79 description = "do not display the CPU model in the output message"
80 set_if = "$madrisan-iowait_no-cpu-model$"
81 }
82 "-p" = {
83 description = "display the utilization of each CPU"
84 set_if = "$madrisan-iowait_per-cpu$"
85 }
86 "-w" = {
87 description = "Warning threshold in percent"
88 value = "$madrisan-iowait_warning$"
89 }
90 "-c" = {
91 description = "Critical threshold in percent"
92 value = "$madrisan-iowait_critical$"
93 }
94 "delay" = {
95 description = "delay is the delay between updates in seconds (default: 1sec)"
96 value = "$madrisan-iowait_delay$"
97 skip_key = true
98 order = 1
99 }
100 "count" = {
101 description = "count is the number of updates (default: 2), 1 means the percentages of total CPU time from boottime."
102 value = "$madrisan-iowait_count$"
103 skip_key = true
104 order = 2
105 }
106 }
107 }
108
109 object CheckCommand "madrisan-cpufreq" {
110 command = [ PluginDir + "/madrisan/check_cpufreq" ]
111
112 arguments += {
113 "-m" = {
114 description = "do not display the CPU model in the output message"
115 set_if = "$madrisan-cpufreq_no-cpu-model$"
116 }
117 "-H" = {
118 description = "show output in Hz"
119 value = "$madrisan-cpufreq_herz$"
120 }
121 "-K" = {
122 description = "show output in kHz"
123 value = "$madrisan-cpufreq_kiloherz$"
124 }
125 "-M" = {
126 description = "show output in mHz"
127 value = "$madrisan-cpufreq_megaherz$"
128 }
129 "-G" = {
130 description = "show output in gHz"
131 value = "$madrisan-cpufreq_gigaherz$"
132 }
133 "-w" = {
134 description = "Warning threshold in kilo herz"
135 value = "$madrisan-cpufreq_warning$"
136 }
137 "-c" = {
138 description = "Critical threshold in kilo herz"
139 value = "$madrisan-cpufreq_critical$"
140 }
141 }
142 }
143
144 object CheckCommand "madrisan-cswch" {
145 command = [ PluginDir + "/madrisan/check_cswch" ]
146
147 arguments += {
148 "-w" = {
149 description = "Warning threshold"
150 value = "$madrisan-cswch_warning$"
151 }
152 "-c" = {
153 description = "Critical threshold"
154 value = "$madrisan-cswch_critical$"
155 }
156 "delay" = {
157 description = "delay is the delay between updates in seconds (default: 1sec)"
158 value = "$madrisan-cswch_delay$"
159 skip_key = true
160 order = 1
161 }
162 "count" = {
163 description = "count is the number of updates (default: 2)"
164 value = "$madrisan-cswch_count$"
165 skip_key = true
166 order = 2
167 }
168 }
169 }
170
171 object CheckCommand "madrisan-docker" {
172 command = [ PluginDir + "/madrisan/check_docker" ]
173
174 arguments += {
175 "-i" = {
176 description = "limit the investigation only to the containers running IMAGE"
177 value = "$madrisan-docker_image$"
178 }
179 "-b" = {
180 description = "show output in bytes"
181 set_if = "$madrisan-docker_bytes$"
182 }
183 "-k" = {
184 description = "show output in kilo bytes"
185 set_if = "$madrisan-docker_kilobytes$"
186 }
187 "-m" = {
188 description = "show output in mega bytes"
189 set_if = "$madrisan-docker_megabytes$"
190 }
191 "-g" = {
192 description = "show output in giga bytes"
193 set_if = "$madrisan-docker_gigabytes$"
194 }
195 "-w" = {
196 description = "Warning threshold"
197 value = "$madrisan-docker_warning$"
198 }
199 "-c" = {
200 description = "Critical threshold"
201 value = "$madrisan-docker_critical$"
202 }
203 }
204 }
205
206 object CheckCommand "madrisan-fc" {
207 command = [ PluginDir + "/madrisan/check_fc" ]
208
209 arguments += {
210 "-w" = {
211 description = "Warning threshold"
212 value = "$madrisan-fc_warning$"
213 }
214 "-c" = {
215 description = "Critical threshold"
216 value = "$madrisan-fc_critical$"
217 }
218 "-i" = {
219 description = "show the fc_host class object attributes"
220 set_if = "$madrisan-fc_fchostinfo$"
221 }
222 "delay" = {
223 description = "delay is the delay between updates in seconds (default: 1sec)"
224 value = "$madrisan-fc_delay$"
225 skip_key = true
226 order = 1
227 }
228 "count" = {
229 description = "count is the number of updates (default: 2), 1 means the total inbound/outbound traffic from boottime."
230 value = "$madrisan-fc_count$"
231 skip_key = true
232 order = 2
233 }
234 }
235 }
236
237 object CheckCommand "madrisan-ifmountfs" {
238 command = [ PluginDir + "/madrisan/check_ifmountfs" ]
239
240 arguments += {
241 "filesystem" = {
242 skip_key = true
243 description = "Filesystem to check if it is mounted."
244 required = true
245 value = "$madrisan-ifmountfs_filesystem$"
246 }
247 }
248 }
249
250 object CheckCommand "madrisan-intr" {
251 command = [ PluginDir + "/madrisan/check_intr" ]
252
253 arguments += {
254 "-w" = {
255 description = "Warning threshold"
256 value = "$madrisan-intr_warning$"
257 }
258 "-c" = {
259 description = "Critical threshold"
260 value = "$madrisan-intr_critical$"
261 }
262 "delay" = {
263 description = "delay is the delay between updates in seconds (default: 1sec)"
264 value = "$madrisan-intr_delay$"
265 skip_key = true
266 order = 1
267 }
268 "count" = {
269 description = "count is the number of updates (default: 2)"
270 value = "$madrisan-intr_count$"
271 skip_key = true
272 order = 2
273 }
274 }
275 }
276
277 object CheckCommand "madrisan-load" {
278 command = [ PluginDir + "/madrisan/check_load" ]
279
280 arguments += {
281 "-1" = {
282 description = "WLOAD1,CLOAD1 warning and critical thresholds for load1"
283 value = "$madrisan-load_load1$"
284 }
285 "-5" = {
286 description = "WLOAD5,CLOAD5 warning and critical thresholds for load5"
287 value = "$madrisan-load_load5$"
288 }
289 "-15" = {
290 description = "WLOAD15,CLOAD15 warning and critical thresholds for load15"
291 value = "$madrisan-load_load15$"
292 }
293 "-r" = {
294 description = "divide the load averages by the number of CPUs"
295 set_if = "$madrisan-load_percpu$"
296 }
297 }
298 }
299
300 object CheckCommand "madrisan-memory" {
301 command = [ PluginDir + "/madrisan/check_memory" ]
302
303 arguments += {
304 "-w" = {
305 description = "Warning threshold"
306 value = "$madrisan-memory_warning$"
307 }
308 "-c" = {
309 description = "Critical threshold"
310 value = "$madrisan-memory_critical$"
311 }
312 "-a" = {
313 description = "display the free/available memory"
314 set_if = "$madrisan-memory_available$"
315 }
316 "-b" = {
317 description = "show output in bytes"
318 set_if = "$madrisan-memory_bytes$"
319 }
320 "-k" = {
321 description = "show output in kilo bytes"
322 set_if = "$madrisan-memory_kilobytes$"
323 }
324 "-m" = {
325 description = "show output in mega bytes"
326 set_if = "$madrisan-memory_megabytes$"
327 }
328 "-g" = {
329 description = "show output in giga bytes"
330 set_if = "$madrisan-memory_gigabytes$"
331 }
332 "-s" = {
333 description = "display the virtual memory perfdata"
334 set_if = "$madrisan-memory_vmstats$"
335 }
336 }
337 }
338
339 object CheckCommand "madrisan-multipath" {
340 command = [ PluginDir + "/madrisan/check_multipath" ]
341
342 arguments += {
343 "option" = {
344 skip_key = true
345 description = "Multipath option?"
346 value = "$madrisan-multipath_option$"
347 }
348 }
349 }
350
351 object CheckCommand "madrisan-nbprocs" {
352 command = [ PluginDir + "/madrisan/check_nbprocs" ]
353
354 arguments += {
355 "-w" = {
356 description = "Warning threshold"
357 value = "$madrisan-memory_warning$"
358 }
359 "-c" = {
360 description = "Critical threshold"
361 value = "$madrisan-memory_critical$"
362 }
363 "--threads" = {
364 description = "display the number of threads"
365 set_if = "$madrisan-memory_threads$"
366 }
367
368 }
369 }
370
371 object CheckCommand "madrisan-network" {
372 command = [ PluginDir + "/madrisan/check_network" ]
373
374 arguments += {
375 "-w" = {
376 description = "Warning threshold"
377 value = "$madrisan-network_warning$"
378 }
379 "-c" = {
380 description = "Critical threshold"
381 value = "$madrisan-network_critical$"
382 }
383 "-i" = {
384 description = "only display interfaces matching a regular expression"
385 value = "$madrisan-network_ifname$"
386 }
387 "-k" = {
388 description = "report an error if at least a link is down"
389 set_if = "$madrisan-network_ckeck-link$"
390 }
391 "-l" = {
392 description = "skip the loopback interface"
393 set_if = "$madrisan-network_no-loopback$"
394 }
395 "-W" = {
396 description = "skip the wireless interfaces"
397 set_if = "$madrisan-network_no-wireless$"
398 }
399 "-%" = {
400 description = "return percentage metrics if possible"
401 set_if = "$madrisan-network_perc$"
402 }
403 "delay" = {
404 description = "delay is the delay between the two network snapshots in seconds (default: 1sec)"
405 value = "$madrisan-network_delay$"
406 skip_key = true
407 order = 1
408 }
409 "-b" = {
410 description = "omit the rx/tx bytes counter from perfdata"
411 set_if = "$madrisan-network_no-bytes$"
412 }
413 "-C" = {
414 description = "omit the collisions counter from perfdata"
415 set_if = "$madrisan-network_no-collisions$"
416 }
417 "-d" = {
418 description = "omit the rx/tx drop counter from perfdata"
419 set_if = "$madrisan-network_no-drops$"
420 }
421 "-e" = {
422 description = "omit the rx/tx errors counter from perfdata"
423 set_if = "$madrisan-network_no-errors$"
424 }
425 "-m" = {
426 description = "omit the multicast counter from perfdata"
427 set_if = "$madrisan-network_no-multicast$"
428 }
429 "-p" = {
430 description = "omit the rx/tx packets counter from perfdata"
431 set_if = "$madrisan-network_no-packets$"
432 }
433 "-r" = {
434 description = "consider the received traffic only in the thresholds"
435 set_if = "$madrisan-network_rx-only$"
436 }
437 "-t" = {
438 description = "consider the transmitted traffic only in the thresholds"
439 set_if = "$madrisan-network_tx-only$"
440 }
441 }
442 }
443
444 object CheckCommand "madrisan-network-collisions" {
445 command = [ PluginDir + "/madrisan/check_network_collisions" ]
446
447 arguments += {
448 "-w" = {
449 description = "Warning threshold"
450 value = "$madrisan-network-collisions_warning$"
451 }
452 "-c" = {
453 description = "Critical threshold"
454 value = "$madrisan-network-collisions_critical$"
455 }
456 "-i" = {
457 description = "only display interfaces matching a regular expression"
458 value = "$madrisan-network-collisions_ifname$"
459 }
460 "-k" = {
461 description = "report an error if at least a link is down"
462 set_if = "$madrisan-network-collisions_ckeck-link$"
463 }
464 "-l" = {
465 description = "skip the loopback interface"
466 set_if = "$madrisan-network-collisions_no-loopback$"
467 }
468 "-W" = {
469 description = "skip the wireless interfaces"
470 set_if = "$madrisan-network-collisions_no-wireless$"
471 }
472 "-%" = {
473 description = "return percentage metrics if possible"
474 set_if = "$madrisan-network-collisions_perc$"
475 }
476 "delay" = {
477 description = "delay is the delay between the two network snapshots in seconds (default: 1sec)"
478 value = "$madrisan-network-collisions_delay$"
479 skip_key = true
480 order = 1
481 }
482 "-b" = {
483 description = "omit the rx/tx bytes counter from perfdata"
484 set_if = "$madrisan-network-collisions_no-bytes$"
485 }
486 "-C" = {
487 description = "omit the collisions counter from perfdata"
488 set_if = "$madrisan-network-collisions_no-collisions$"
489 }
490 "-d" = {
491 description = "omit the rx/tx drop counter from perfdata"
492 set_if = "$madrisan-network-collisions_no-drops$"
493 }
494 "-e" = {
495 description = "omit the rx/tx errors counter from perfdata"
496 set_if = "$madrisan-network-collisions_no-errors$"
497 }
498 "-m" = {
499 description = "omit the multicast counter from perfdata"
500 set_if = "$madrisan-network-collisions_no-multicast$"
501 }
502 "-p" = {
503 description = "omit the rx/tx packets counter from perfdata"
504 set_if = "$madrisan-network-collisions_no-packets$"
505 }
506 "-r" = {
507 description = "consider the received traffic only in the thresholds"
508 set_if = "$madrisan-network-collisions_rx-only$"
509 }
510 "-t" = {
511 description = "consider the transmitted traffic only in the thresholds"
512 set_if = "$madrisan-network-collisions_tx-only$"
513 }
514 }
515 }
516
517 object CheckCommand "madrisan-network-dropped" {
518 command = [ PluginDir + "/madrisan/check_network_dropped" ]
519
520 arguments += {
521 "-w" = {
522 description = "Warning threshold"
523 value = "$madrisan-network-dropped_warning$"
524 }
525 "-c" = {
526 description = "Critical threshold"
527 value = "$madrisan-network-dropped_critical$"
528 }
529 "-i" = {
530 description = "only display interfaces matching a regular expression"
531 value = "$madrisan-network-dropped_ifname$"
532 }
533 "-k" = {
534 description = "report an error if at least a link is down"
535 set_if = "$madrisan-network-dropped_ckeck-link$"
536 }
537 "-l" = {
538 description = "skip the loopback interface"
539 set_if = "$madrisan-network-dropped_no-loopback$"
540 }
541 "-W" = {
542 description = "skip the wireless interfaces"
543 set_if = "$madrisan-network-dropped_no-wireless$"
544 }
545 "-%" = {
546 description = "return percentage metrics if possible"
547 set_if = "$madrisan-network-dropped_perc$"
548 }
549 "delay" = {
550 description = "delay is the delay between the two network snapshots in seconds (default: 1sec)"
551 value = "$madrisan-network-dropped_delay$"
552 skip_key = true
553 order = 1
554 }
555 "-b" = {
556 description = "omit the rx/tx bytes counter from perfdata"
557 set_if = "$madrisan-network-dropped_no-bytes$"
558 }
559 "-C" = {
560 description = "omit the collisions counter from perfdata"
561 set_if = "$madrisan-network-dropped_no-collisions$"
562 }
563 "-d" = {
564 description = "omit the rx/tx drop counter from perfdata"
565 set_if = "$madrisan-network-dropped_no-drops$"
566 }
567 "-e" = {
568 description = "omit the rx/tx errors counter from perfdata"
569 set_if = "$madrisan-network-dropped_no-errors$"
570 }
571 "-m" = {
572 description = "omit the multicast counter from perfdata"
573 set_if = "$madrisan-network-dropped_no-multicast$"
574 }
575 "-p" = {
576 description = "omit the rx/tx packets counter from perfdata"
577 set_if = "$madrisan-network-dropped_no-packets$"
578 }
579 "-r" = {
580 description = "consider the received traffic only in the thresholds"
581 set_if = "$madrisan-network-dropped_rx-only$"
582 }
583 "-t" = {
584 description = "consider the transmitted traffic only in the thresholds"
585 set_if = "$madrisan-network-dropped_tx-only$"
586 }
587 }
588 }
589
590 object CheckCommand "madrisan-network-errors" {
591 command = [ PluginDir + "/madrisan/check_network_errors" ]
592
593 arguments += {
594 "-w" = {
595 description = "Warning threshold"
596 value = "$madrisan-network-errors_warning$"
597 }
598 "-c" = {
599 description = "Critical threshold"
600 value = "$madrisan-network-errors_critical$"
601 }
602 "-i" = {
603 description = "only display interfaces matching a regular expression"
604 value = "$madrisan-network-errors_ifname$"
605 }
606 "-k" = {
607 description = "report an error if at least a link is down"
608 set_if = "$madrisan-network-errors_ckeck-link$"
609 }
610 "-l" = {
611 description = "skip the loopback interface"
612 set_if = "$madrisan-network-errors_no-loopback$"
613 }
614 "-W" = {
615 description = "skip the wireless interfaces"
616 set_if = "$madrisan-network-errors_no-wireless$"
617 }
618 "-%" = {
619 description = "return percentage metrics if possible"
620 set_if = "$madrisan-network-errors_perc$"
621 }
622 "delay" = {
623 description = "delay is the delay between the two network snapshots in seconds (default: 1sec)"
624 value = "$madrisan-network-errors_delay$"
625 skip_key = true
626 order = 1
627 }
628 "-b" = {
629 description = "omit the rx/tx bytes counter from perfdata"
630 set_if = "$madrisan-network-errors_no-bytes$"
631 }
632 "-C" = {
633 description = "omit the collisions counter from perfdata"
634 set_if = "$madrisan-network-errors_no-collisions$"
635 }
636 "-d" = {
637 description = "omit the rx/tx drop counter from perfdata"
638 set_if = "$madrisan-network-errors_no-drops$"
639 }
640 "-e" = {
641 description = "omit the rx/tx errors counter from perfdata"
642 set_if = "$madrisan-network-errors_no-errors$"
643 }
644 "-m" = {
645 description = "omit the multicast counter from perfdata"
646 set_if = "$madrisan-network-errors_no-multicast$"
647 }
648 "-p" = {
649 description = "omit the rx/tx packets counter from perfdata"
650 set_if = "$madrisan-network-errors_no-packets$"
651 }
652 "-r" = {
653 description = "consider the received traffic only in the thresholds"
654 set_if = "$madrisan-network-errors_rx-only$"
655 }
656 "-t" = {
657 description = "consider the transmitted traffic only in the thresholds"
658 set_if = "$madrisan-network-errors_tx-only$"
659 }
660 }
661 }
662
663 object CheckCommand "madrisan-network-multicast" {
664 command = [ PluginDir + "/madrisan/check_network_multicast" ]
665
666 arguments += {
667 "-w" = {
668 description = "Warning threshold"
669 value = "$madrisan-network-multicast_warning$"
670 }
671 "-c" = {
672 description = "Critical threshold"
673 value = "$madrisan-network-multicast_critical$"
674 }
675 "-i" = {
676 description = "only display interfaces matching a regular expression"
677 value = "$madrisan-network-multicast_ifname$"
678 }
679 "-k" = {
680 description = "report an error if at least a link is down"
681 set_if = "$madrisan-network-multicast_ckeck-link$"
682 }
683 "-l" = {
684 description = "skip the loopback interface"
685 set_if = "$madrisan-network-multicast_no-loopback$"
686 }
687 "-W" = {
688 description = "skip the wireless interfaces"
689 set_if = "$madrisan-network-multicast_no-wireless$"
690 }
691 "-%" = {
692 description = "return percentage metrics if possible"
693 set_if = "$madrisan-network-multicast_perc$"
694 }
695 "delay" = {
696 description = "delay is the delay between the two network snapshots in seconds (default: 1sec)"
697 value = "$madrisan-network-multicast_delay$"
698 skip_key = true
699 order = 1
700 }
701 "-b" = {
702 description = "omit the rx/tx bytes counter from perfdata"
703 set_if = "$madrisan-network-multicast_no-bytes$"
704 }
705 "-C" = {
706 description = "omit the collisions counter from perfdata"
707 set_if = "$madrisan-network-multicast_no-collisions$"
708 }
709 "-d" = {
710 description = "omit the rx/tx drop counter from perfdata"
711 set_if = "$madrisan-network-multicast_no-drops$"
712 }
713 "-e" = {
714 description = "omit the rx/tx error counter from perfdata"
715 set_if = "$madrisan-network-multicast_no-errors$"
716 }
717 "-m" = {
718 description = "omit the multicast counter from perfdata"
719 set_if = "$madrisan-network-multicast_no-multicast$"
720 }
721 "-p" = {
722 description = "omit the rx/tx packets counter from perfdata"
723 set_if = "$madrisan-network-multicast_no-packets$"
724 }
725 "-r" = {
726 description = "consider the received traffic only in the thresholds"
727 set_if = "$madrisan-network-multicast_rx-only$"
728 }
729 "-t" = {
730 description = "consider the transmitted traffic only in the thresholds"
731 set_if = "$madrisan-network-multicast_tx-only$"
732 }
733 }
734 }
735
736 object CheckCommand "madrisan-paging" {
737 command = [ PluginDir + "/madrisan/check_paging" ]
738
739 arguments += {
740 "-s" = {
741 description = "display also the swap reads and writes"
742 set_if = "$madrisan-paging_swapping$"
743 }
744 "-S" = {
745 description = "only display the swap reads and writes"
746 set_if = "$madrisan-paging_swapping-only$"
747 }
748 "-w" = {
749 description = "Warning threshold in sum of pswpin/s ane pswpout/s if swapping-only, majfault/s otherwise"
750 value = "$madrisan-paging_warning$"
751 }
752 "-c" = {
753 description = "Critical threshold in sum of pswpin/s ane pswpout/s if swapping-only, majfault/s otherwise"
754 value = "$madrisan-paging_critical$"
755 }
756 }
757 }
758
759 object CheckCommand "madrisan-pressure" {
760 command = [ PluginDir + "/madrisan/check_pressure" ]
761
762 arguments += {
763 "-w" = {
764 description = "Warning threshold"
765 value = "$madrisan-pressure_warning$"
766 }
767 "-c" = {
768 description = "Critical threshold"
769 value = "$madrisan-pressure_critical$"
770 }
771 "-C" = {
772 description = "return the cpu pressure metrics"
773 set_if = "$madrisan-pressure_cpu$"
774 }
775 "-i" = {
776 description = "return the io (block layer/filesystems) pressure metrics"
777 set_if = "$madrisan-pressure_io$"
778 }
779 "-m" = {
780 description = "return the memory pressure metrics"
781 set_if = "$madrisan-pressure_memory$"
782 }
783 "-f" = {
784 description = "select the data labeled `full` to calculate thresholds instead of the one with `some` (io and memory only)"
785 set_if = "$madrisan-pressure_full$"
786 }
787 "delay" = {
788 description = "delay is the delay between two proc reads in seconds (default: 1sec)"
789 value = "$madrisan-pressure_delay$"
790 skip_key = true
791 order = 1
792 }
793 }
794 }
795
796 object CheckCommand "madrisan-readonlyfs" {
797 command = [ PluginDir + "/madrisan/check_readonlyfs" ]
798
799 arguments += {
800 "filesystem" = {
801 skip_key = true
802 description = "Filesystem to check if it is mounted."
803 required = true
804 value = "$madrisan-readonlyfs_filesystem$"
805 }
806 "-a" = {
807 description = "include dummy file systems"
808 set_if = "$madrisan-readonlyfs_all$"
809 }
810 "-l" = {
811 description = "limit listing to local file systems"
812 set_if = "$madrisan-readonlyfs_local$"
813 }
814 "-T" = {
815 description = "limit listing to file systems of type TYPE"
816 value = "$madrisan-readonlyfs_type$"
817 }
818 "-X" = {
819 description = "limit listing to file systems not of type TYPE"
820 value = "$madrisan-readonlyfs_exclude-type$"
821 }
822 }
823 }
824
825 object CheckCommand "madrisan-swap" {
826 command = [ PluginDir + "/madrisan/check_swap" ]
827
828 arguments += {
829 "-w" = {
830 description = "Warning threshold in percent"
831 value = "$madrisan-swap_warning$"
832 }
833 "-c" = {
834 description = "Critical threshold in percent"
835 value = "$madrisan-swap_critical$"
836 }
837 "-b" = {
838 description = "show output in bytes"
839 set_if = "$madrisan-swap_bytes$"
840 }
841 "-k" = {
842 description = "show output in kilo bytes"
843 set_if = "$madrisan-swap_kilobytes$"
844 }
845 "-m" = {
846 description = "show output in mega bytes"
847 set_if = "$madrisan-swap_megabytes$"
848 }
849 "-g" = {
850 description = "show output in giga bytes"
851 set_if = "$madrisan-swap_gigabytes$"
852 }
853 "-s" = {
854 description = "display the virtual memory perfdata"
855 set_if = "$madrisan-swap_vmstats$"
856 }
857 }
858 }
859
860 object CheckCommand "madrisan-tcpcount" {
861 command = [ PluginDir + "/madrisan/check_tcpcount" ]
862
863 arguments += {
864 "-w" = {
865 description = "Warning threshold"
866 value = "$madrisan-tcpcount_warning$"
867 }
868 "-c" = {
869 description = "Critical threshold"
870 value = "$madrisan-tcpcount_critical$"
871 }
872 "-t" = {
873 description = "display the statistics for the TCP protocol (the default)"
874 set_if = "$madrisan-tcpcount_tcp$"
875 }
876 "-6" = {
877 description = "display the statistics for the TCPv6 protocol"
878 set_if = "$madrisan-tcpcount_tcpv6$"
879 }
880 }
881 }
882
883 object CheckCommand "madrisan-temperature" {
884 command = [ PluginDir + "/madrisan/check_temperature" ]
885
886 arguments += {
887 "-w" = {
888 description = "Warning threshold"
889 value = "$madrisan-temperature_warning$"
890 }
891 "-c" = {
892 description = "Critical threshold"
893 value = "$madrisan-temperature_critical$"
894 }
895 "-f" = {
896 description = "use fahrenheit as the temperature unit"
897 set_if = "$madrisan-temperature_fahrenheit$"
898 }
899 "-k" = {
900 description = "use kelvin as the temperature unit"
901 set_if = "$madrisan-temperature_kelvin$"
902 }
903 "-t" = {
904 description = "only consider a specific thermal zone"
905 value = "$madrisan-temperature_thermal-zone$"
906 }
907 }
908 }
909
910 object CheckCommand "madrisan-users" {
911 command = [ PluginDir + "/madrisan/check_users" ]
912
913 arguments += {
914 "-w" = {
915 description = "Warning threshold"
916 value = "$madrisan-users_warning$"
917 }
918 "-c" = {
919 description = "Critical threshold"
920 value = "$madrisan-users_critical$"
921 }
922 }
923 }