-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPowerShell_Plugins_Bundle.conf
1530 lines (1485 loc) · 72.1 KB
/
PowerShell_Plugins_Bundle.conf
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
object CheckCommand "PowerShell Base" {
import "plugin-check-command"
command = [
"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
]
timeout = 3m
}
object CheckCommand "Invoke-IcingaCheckStoragePool" {
import "PowerShell Base"
arguments += {
"-RetireMissingPhysicalDisksCritical" = {
description = "Critical threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this storage pool and replace them with hot spares or other physical disks that are available in the storage pool."
value = "$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$"
order = 17
}
"-IsReadOnlyCritical" = {
description = "Used to specify a Critical threshold for the StoragePool IsReadOnly Attr."
value = "$IcingaCheckStoragePool_Object_IsReadOnlyCritical$"
order = 8
}
"-Verbosity" = {
description = "Changes the behavior of the plugin output which check states are printed: 0 (default): Only service checks/packages with state not OK will be printed 1: Only services with not OK will be printed including OK checks of affected check packages including Package config 2: Everything will be printed regardless of the check state"
value = "$IcingaCheckStoragePool_Object_Verbosity$"
order = 18
}
"-IsPowerProtectedCritical" = {
description = "Critical threshold for StoragePool IsPowerProtected is, whether the disks in this pool are able to tolerate power loss without data loss. For example, they automatically flush volatile buffers to non-volatile media after external power is disconnected."
value = "$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$"
order = 13
}
"-HealthStatusWarning" = {
description = "Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels."
value = "$IcingaCheckStoragePool_Object_HealthStatusWarning$"
order = 14
}
"-NoPerfData" = {
set_if = "$IcingaCheckStoragePool_Switchparameter_NoPerfData$"
order = 99
}
"-FreeSpaceWarning" = {
description = "Used to specify a Warning threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require you to add a ':' behind the threshold, like '20GB:' to check if free space is lower compared to your threshold"
value = "$IcingaCheckStoragePool_Object_FreeSpaceWarning$"
order = 4
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckStoragePool'; exit Invoke-IcingaCheckStoragePool"
order = 0
}
"-FreeSpaceCritical" = {
description = "Used to specify a Critical threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require you to add a ':' behind the threshold, like '20GB:' to check if free space is lower compared to your threshold"
value = "$IcingaCheckStoragePool_Object_FreeSpaceCritical$"
order = 5
}
"-IncludePrimordial" = {
set_if = "$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$"
order = 99
}
"-IncludeStoragePool" = {
description = "With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system."
value = {{
var arr = macro("$IcingaCheckStoragePool_Array_IncludeStoragePool$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
"-ExcludeStoragePool" = {
description = "With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system."
value = {{
var arr = macro("$IcingaCheckStoragePool_Array_ExcludeStoragePool$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 3
}
"-CapacityWarning" = {
description = "Used to specify a Warning threshold for the StoragePool Capacity."
value = "$IcingaCheckStoragePool_Object_CapacityWarning$"
order = 9
}
"-TotalUsedCritical" = {
description = "Used to specify TotalUsed Critical threshold in GB."
value = "$IcingaCheckStoragePool_Object_TotalUsedCritical$"
order = 7
}
"-CapacityCritical" = {
description = "Used to specify a Critical threshold for the StoragePool Capacity."
value = "$IcingaCheckStoragePool_Object_CapacityCritical$"
order = 10
}
"-SupportsDeduplicationCritical" = {
description = "Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not."
value = "$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$"
order = 12
}
"-HealthStatusCritical" = {
description = "Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels."
value = "$IcingaCheckStoragePool_Object_HealthStatusCritical$"
order = 15
}
"-ClearOnDeallocateCritical" = {
description = "Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when unmapped or removed from the storage pool."
value = "$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$"
order = 11
}
"-RetireMissingPhysicalDisksWarning" = {
description = "Warning threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this storage pool and replace them with hot spares or other physical disks that are available in the storage pool."
value = "$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$"
order = 16
}
"-TotalUsedWarning" = {
description = "Used to specify TotalUsed Warning threshold in GB."
value = "$IcingaCheckStoragePool_Object_TotalUsedWarning$"
order = 6
}
}
vars.IcingaCheckStoragePool_Switchparameter_IncludePrimordial = false
vars.IcingaCheckStoragePool_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckCertificate" {
import "PowerShell Base"
arguments += {
"-CertStorePath" = {
description = "Used to specify which path within the CertStore should be checked."
value = "$IcingaCheckCertificate_Object_CertStorePath$"
order = 8
}
"-CriticalEnd" = {
description = "Used to specify a Critical range for the end date of an certificate. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y"
value = "$IcingaCheckCertificate_Object_CriticalEnd$"
order = 4
}
"-Verbosity" = {
description = "Other"
value = "$IcingaCheckCertificate_Int32_Verbosity$"
order = 11
}
"-CertSubject" = {
description = "Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore."
value = {{
var arr = macro("$IcingaCheckCertificate_Array_CertSubject$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 7
}
"-WarningEnd" = {
description = "Used to specify a Warning range for the end date of an certificate. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y"
value = "$IcingaCheckCertificate_Object_WarningEnd$"
order = 3
}
"-CriticalStart" = {
description = "Used to specify a date. The start date of the certificate has to be past the date specified, otherwise the check results in critical. Use carefully. Use format like: 'yyyy-MM-dd'"
value = "$IcingaCheckCertificate_Object_CriticalStart$"
order = 2
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckCertificate'; exit Invoke-IcingaCheckCertificate"
order = 0
}
"-CertStore" = {
description = "Used to specify which CertStore to check. Valid choices are '*', 'LocalMachine', 'CurrentUser'"
value = "$IcingaCheckCertificate_String_CertStore$"
order = 5
}
"-Trusted" = {
set_if = "$IcingaCheckCertificate_Switchparameter_Trusted$"
order = 99
}
"-CertPaths" = {
description = "Used to specify an array of paths on your system, where certificate files are. Use with CertName."
value = {{
var arr = macro("$IcingaCheckCertificate_Array_CertPaths$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 9
}
"-CertThumbprint" = {
description = "Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore."
value = {{
var arr = macro("$IcingaCheckCertificate_Array_CertThumbprint$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 6
}
"-Recurse" = {
set_if = "$IcingaCheckCertificate_Switchparameter_Recurse$"
order = 99
}
"-CertName" = {
description = "Used to specify an array of certificate names of certificate files to check. Use with CertPaths."
value = {{
var arr = macro("$IcingaCheckCertificate_Array_CertName$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 10
}
}
vars.IcingaCheckCertificate_Switchparameter_Recurse = false
vars.IcingaCheckCertificate_Switchparameter_Trusted = false
}
object CheckCommand "Invoke-IcingaCheckICMP" {
import "PowerShell Base"
arguments += {
"-WarningPl" = {
description = "Treshold on which the plugin will return 'WARNING' for possible packet loss in %"
value = "$IcingaCheckICMP_Object_WarningPl$"
order = 4
}
"-Hostname" = {
description = "The target hosts IP or FQDN to send ICMP requests too"
value = "$IcingaCheckICMP_String_Hostname$"
order = 6
}
"-Warning" = {
description = "Treshold on which the plugin will return 'WARNING' for the response time in ms"
value = "$IcingaCheckICMP_Object_Warning$"
order = 2
}
"-Verbosity" = {
description = "Increase the printed output message by adding additional details or print all data regardless of their status"
value = "$IcingaCheckICMP_Int32_Verbosity$"
order = 9
}
"-PacketCount" = {
description = "The amount of packets send to the target host"
value = "$IcingaCheckICMP_Int32_PacketCount$"
order = 7
}
"-IPv6" = {
set_if = "$IcingaCheckICMP_Switchparameter_IPv6$"
order = 99
}
"-PacketSize" = {
description = "The size of each packet send to the target host"
value = "$IcingaCheckICMP_Int32_PacketSize$"
order = 8
}
"-NoPerfData" = {
set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$"
order = 99
}
"-Critical" = {
description = "Treshold on which the plugin will return 'CRITICAL' for the response time in ms"
value = "$IcingaCheckICMP_Object_Critical$"
order = 3
}
"-IPv4" = {
set_if = "$IcingaCheckICMP_Switchparameter_IPv4$"
order = 99
}
"-CriticalPl" = {
description = "Treshold on which the plugin will return 'CRITICAL' for the response time in ms"
value = "$IcingaCheckICMP_Object_CriticalPl$"
order = 5
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckICMP'; exit Invoke-IcingaCheckICMP"
order = 0
}
}
vars.IcingaCheckICMP_Switchparameter_NoPerfData = false
vars.IcingaCheckICMP_Switchparameter_IPv6 = false
vars.IcingaCheckICMP_Switchparameter_IPv4 = false
}
object CheckCommand "Invoke-IcingaCheckDirectory" {
import "PowerShell Base"
arguments += {
"-Path" = {
description = "Used to specify a path. e.g. 'C:\\Users\\Icinga\\Downloads'"
value = "$IcingaCheckDirectory_String_Path$"
order = 2
}
"-Verbosity" = {
value = "$IcingaCheckDirectory_Int32_Verbosity$"
order = 14
}
"-CreationOlderThan" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have a creation date older then 20 days are considered within the check."
value = "$IcingaCheckDirectory_String_CreationOlderThan$"
order = 10
}
"-FileSizeGreaterThan" = {
description = "String that expects input format like '20MB', which translates to the filze size 20 MB. Allowed units: B, KB, MB, GB, TB. Thereby all files with a size of 20 MB or larger are considered within the check."
value = "$IcingaCheckDirectory_String_FileSizeGreaterThan$"
order = 12
}
"-NoPerfData" = {
set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$"
order = 99
}
"-ChangeYoungerThan" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have a change date younger then 20 days are considered within the check."
value = "$IcingaCheckDirectory_String_ChangeYoungerThan$"
order = 7
}
"-FileSizeSmallerThan" = {
description = "String that expects input format like '5MB', which translates to the filze size 5 MB. Allowed units: B, KB, MB, GB, TB. Thereby all files with a size of 5 MB or less are considered within the check."
value = "$IcingaCheckDirectory_String_FileSizeSmallerThan$"
order = 13
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckDirectory'; exit Invoke-IcingaCheckDirectory"
order = 0
}
"-ChangeOlderThan" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have a change date older then 20 days are considered within the check."
value = "$IcingaCheckDirectory_String_ChangeOlderThan$"
order = 8
}
"-CreationTimeEqual" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have been created 20 days ago are considered within the check."
value = "$IcingaCheckDirectory_String_CreationTimeEqual$"
order = 9
}
"-ChangeTimeEqual" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have been changed 20 days ago are considered within the check."
value = "$IcingaCheckDirectory_String_ChangeTimeEqual$"
order = 6
}
"-FileNames" = {
description = "Used to specify an array of filenames or expressions to match against results to filter for specific files. e.g '*.txt', '*.sql' # Fiends all files ending with .txt and .sql"
value = {{
var arr = macro("$IcingaCheckDirectory_Array_FileNames$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 3
}
"-Critical" = {
description = "Used to specify a Critical threshold. Follows the Icinga plugin threshold"
value = "$IcingaCheckDirectory_Object_Critical$"
order = 4
}
"-CreationYoungerThan" = {
description = "String that expects input format like '20d', which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y. Thereby all files which have a creation date younger then 20 days are considered within the check."
value = "$IcingaCheckDirectory_String_CreationYoungerThan$"
order = 11
}
"-Recurse" = {
set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$"
order = 99
}
"-Warning" = {
description = "Used to specify a Warning threshold. Follows the Icinga plugin threshold"
value = "$IcingaCheckDirectory_Object_Warning$"
order = 5
}
}
vars.IcingaCheckDirectory_Switchparameter_NoPerfData = false
vars.IcingaCheckDirectory_Switchparameter_Recurse = false
}
object CheckCommand "Invoke-IcingaCheckUptime" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckUptime'; exit Invoke-IcingaCheckUptime"
order = 0
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y"
value = "$IcingaCheckUptime_String_Warning$"
order = 2
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y"
value = "$IcingaCheckUptime_String_Critical$"
order = 3
}
"-NoPerfData" = {
set_if = "$IcingaCheckUptime_Switchparameter_NoPerfData$"
order = 99
}
"-Verbosity" = {
value = "$IcingaCheckUptime_Int32_Verbosity$"
order = 4
}
}
vars.IcingaCheckUptime_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckUpdates" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckUpdates'; exit Invoke-IcingaCheckUpdates"
order = 0
}
"-Verbosity" = {
value = "$IcingaCheckUpdates_Int32_Verbosity$"
order = 5
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case an integer value."
value = "$IcingaCheckUpdates_Object_Warning$"
order = 3
}
"-UpdateFilter" = {
value = {{
var arr = macro("$IcingaCheckUpdates_Array_UpdateFilter$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case an integer value."
value = "$IcingaCheckUpdates_Object_Critical$"
order = 4
}
"-NoPerfData" = {
set_if = "$IcingaCheckUpdates_Switchparameter_NoPerfData$"
order = 99
}
}
vars.IcingaCheckUpdates_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckPerfcounter" {
import "PowerShell Base"
arguments += {
"-PerfCounter" = {
description = "Used to specify an array of performance counter to check against."
value = {{
var arr = macro("$IcingaCheckPerfcounter_Array_PerfCounter$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
"-Verbosity" = {
value = "$IcingaCheckPerfcounter_Int32_Verbosity$"
order = 5
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case an ??? value."
value = "$IcingaCheckPerfcounter_Object_Warning$"
order = 3
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case an ??? value."
value = "$IcingaCheckPerfcounter_Object_Critical$"
order = 4
}
"-NoPerfData" = {
set_if = "$IcingaCheckPerfcounter_Switchparameter_NoPerfData$"
order = 99
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckPerfcounter'; exit Invoke-IcingaCheckPerfcounter"
order = 0
}
}
vars.IcingaCheckPerfcounter_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckNLA" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckNLA'; exit Invoke-IcingaCheckNLA"
order = 0
}
"-Profile" = {
description = "Used to specify the profile to check. Available profiles are 'DomainAuthenticated', 'Public', 'Private'"
value = "$IcingaCheckNLA_String_Profile$"
order = 2
}
"-NICs" = {
description = "Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked"
value = {{
var arr = macro("$IcingaCheckNLA_Array_NICs$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 4
}
"-Verbosity" = {
value = "$IcingaCheckNLA_Int32_Verbosity$"
order = 3
}
}
}
object CheckCommand "Invoke-IcingaCheckMemory" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckMemory'; exit Invoke-IcingaCheckMemory"
order = 0
}
"-Verbosity" = {
value = "$IcingaCheckMemory_Int32_Verbosity$"
order = 6
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case an string value. The string has to be like, '20B', '20KB', '20MB', '20GB', '20TB', '20PB' This is using the default Icinga threshold handling."
value = "$IcingaCheckMemory_String_Warning$"
order = 3
}
"-CriticalPercent" = {
description = "Used to specify a Critical threshold for the memory usage in percent, like 30 for 30%. This is using the default Icinga threshold handling."
value = "$IcingaCheckMemory_Object_CriticalPercent$"
order = 4
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case an string value. The string has to be like, '20B', '20KB', '20MB', '20GB', '20TB', '20PB' This is using the default Icinga threshold handling."
value = "$IcingaCheckMemory_String_Critical$"
order = 2
}
"-NoPerfData" = {
set_if = "$IcingaCheckMemory_Switchparameter_NoPerfData$"
order = 99
}
"-WarningPercent" = {
description = "Used to specify a Warning threshold for the memory usage in percent, like 30 for 30%. This is using the default Icinga threshold handling."
value = "$IcingaCheckMemory_Object_WarningPercent$"
order = 5
}
}
vars.IcingaCheckMemory_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckProcessCount" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckProcessCount'; exit Invoke-IcingaCheckProcessCount"
order = 0
}
"-Verbosity" = {
value = "$IcingaCheckProcessCount_Int32_Verbosity$"
order = 5
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case an integer value."
value = "$IcingaCheckProcessCount_Object_Warning$"
order = 2
}
"-Process" = {
description = "Used to specify an array of processes to count and match against. e.g. conhost,wininit"
value = {{
var arr = macro("$IcingaCheckProcessCount_Array_Process$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 4
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case an integer value."
value = "$IcingaCheckProcessCount_Object_Critical$"
order = 3
}
"-NoPerfData" = {
set_if = "$IcingaCheckProcessCount_Switchparameter_NoPerfData$"
order = 99
}
}
vars.IcingaCheckProcessCount_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckUsers" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckUsers'; exit Invoke-IcingaCheckUsers"
order = 0
}
"-Verbosity" = {
value = "$IcingaCheckUsers_Int32_Verbosity$"
order = 5
}
"-Warning" = {
description = "Used to specify a Warning threshold. In this case an integer value."
value = "$IcingaCheckUsers_Object_Warning$"
order = 3
}
"-Critical" = {
description = "Used to specify a Critical threshold. In this case an integer value."
value = "$IcingaCheckUsers_Object_Critical$"
order = 4
}
"-NoPerfData" = {
set_if = "$IcingaCheckUsers_Switchparameter_NoPerfData$"
order = 99
}
"-Username" = {
description = "Used to specify an array of usernames to match against. e.g 'Administrator', 'Icinga'"
value = {{
var arr = macro("$IcingaCheckUsers_Array_Username$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
}
vars.IcingaCheckUsers_Switchparameter_NoPerfData = false
}
object CheckCommand "Invoke-IcingaCheckDiskHealth" {
import "PowerShell Base"
arguments += {
"-DiskReadByteSecWarning" = {
description = "Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations."
value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$"
order = 14
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckDiskHealth'; exit Invoke-IcingaCheckDiskHealth"
order = 0
}
"-DiskWriteByteSecWarning" = {
description = "Warning threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations."
value = "$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$"
order = 16
}
"-NoPerfData" = {
set_if = "$IcingaCheckDiskHealth_Switchparameter_NoPerfData$"
order = 99
}
"-ExcludeDisk" = {
description = "Specify the index id of disks you want to exclude from checks. Example 0, 1"
value = {{
var arr = macro("$IcingaCheckDiskHealth_Array_ExcludeDisk$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 3
}
"-IgnoreReadOnlyDisks" = {
set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$"
order = 99
}
"-IncludeDisk" = {
description = "Specify the index id of disks you want to include for checks. Example 0, 1"
value = {{
var arr = macro("$IcingaCheckDiskHealth_Array_IncludeDisk$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
"-DiskQueueAvgLenCritical" = {
description = "Critical threshold for Avg. Disk Queue Length is the average number of both read and write requests that were queued for the selected disk during the sample interval."
value = "$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$"
order = 13
}
"-DiskQueueLenWarning" = {
description = "Warning threshold for current Disk Queue Length is the number of requests outstanding on the disk at the time the performance data is collected. It also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the time interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests are awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the disk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue minus the number of spindles on the disks. For good performance, this difference should average less than two."
value = "$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$"
order = 10
}
"-IncludePartition" = {
description = "Specify the partition drive letters for disks to include for checks. Example C:, D:"
value = {{
var arr = macro("$IcingaCheckDiskHealth_Array_IncludePartition$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 4
}
"-DiskAvgReadSecCritical" = {
description = "Critical threshold for avg. Disk sec/Read is the average time, in seconds, of a read of data from the disk. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$"
order = 21
}
"-DiskWriteSecCritical" = {
description = "Critical threshold for disk Writes/sec is the rate of write operations on the disk."
value = "$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$"
order = 9
}
"-DiskQueueAvgLenWarning" = {
description = "Warning threshold for Avg. Disk Queue Length is the average number of both read and write requests that were queued for the selected disk during the sample interval."
value = "$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$"
order = 12
}
"-DiskAvgReadSecWarning" = {
description = "Warning threshold for avg. Disk sec/Read is the average time, in seconds, of a read of data from the disk. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$"
order = 20
}
"-DiskWriteByteSecCritical" = {
description = "Critical threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations."
value = "$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$"
order = 17
}
"-DiskAvgTransSecWarning" = {
description = "Warning threshold for avg. Disk sec/Transfer is the time, in seconds, of the average disk transfer. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$"
order = 18
}
"-DiskAvgWriteSecWarning" = {
description = "Warning threshold for Avg. Disk sec/Write is the average time, in seconds, of a write of data to the disk. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$"
order = 22
}
"-Verbosity" = {
value = "$IcingaCheckDiskHealth_Int32_Verbosity$"
order = 24
}
"-DiskReadSecWarning" = {
description = "Warning threshold for disk Reads/sec is the rate of read operations on the disk."
value = "$IcingaCheckDiskHealth_Object_DiskReadSecWarning$"
order = 6
}
"-ExcludePartition" = {
description = "Specify the partition drive letters for disks to exclude from checks. Example C:, D:"
value = {{
var arr = macro("$IcingaCheckDiskHealth_Array_ExcludePartition$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 5
}
"-DiskReadSecCritical" = {
description = "Critical treshold for disk Reads/sec is the rate of read operations on the disk."
value = "$IcingaCheckDiskHealth_Object_DiskReadSecCritical$"
order = 7
}
"-CheckLogicalOnly" = {
set_if = "$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$"
order = 99
}
"-DiskReadByteSecCritical" = {
description = "Critical threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations."
value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$"
order = 15
}
"-DiskAvgWriteSecCritical" = {
description = "Critical threshold for Avg. Disk sec/Write is the average time, in seconds, of a write of data to the disk. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$"
order = 23
}
"-IgnoreOfflineDisks" = {
set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$"
order = 99
}
"-DiskWriteSecWarning" = {
description = "Warning theeshold for disk Writes/sec is the rate of write operations on the disk."
value = "$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$"
order = 8
}
"-DiskQueueLenCritical" = {
description = "Critical threshold for current Disk Queue Length is the number of requests outstanding on the disk at the time the performance data is collected. It also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the time interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests are awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the disk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue minus the number of spindles on the disks. For good performance, this difference should average less than two."
value = "$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$"
order = 11
}
"-DiskAvgTransSecCritical" = {
description = "Critical threshold for avg. Disk sec/Transfer is the time, in seconds, of the average disk transfer. If the threshold values are not in seconds, please enter a unit such as (ms, s, m, h, ...)"
value = "$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$"
order = 19
}
}
vars.IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks = false
vars.IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks = false
vars.IcingaCheckDiskHealth_Switchparameter_NoPerfData = false
vars.IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly = false
}
object CheckCommand "Invoke-IcingaCheckTimeSync" {
import "PowerShell Base"
arguments += {
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckTimeSync'; exit Invoke-IcingaCheckTimeSync"
order = 0
}
"-Verbosity" = {
value = "$IcingaCheckTimeSync_Int32_Verbosity$"
order = 8
}
"-Warning" = {
description = "Used to specify a offset Warning threshold e.g 10ms or 0.01s"
value = "$IcingaCheckTimeSync_Object_Warning$"
order = 4
}
"-Timeout" = {
description = "Seconds before connection times out (default: 10)"
value = "$IcingaCheckTimeSync_Int32_Timeout$"
order = 6
}
"-Port" = {
description = "Port number (default: 123)"
value = "$IcingaCheckTimeSync_Int32_Port$"
order = 7
}
"-NoPerfData" = {
set_if = "$IcingaCheckTimeSync_Switchparameter_NoPerfData$"
order = 99
}
"-Critical" = {
description = "Used to specify a offset Critical threshold e.g 20ms or 0.02s."
value = "$IcingaCheckTimeSync_Object_Critical$"
order = 5
}
"-Server" = {
description = "The NTP Server you want to connect to."
value = "$IcingaCheckTimeSync_String_Server$"
order = 2
}
"-TimeOffset" = {
description = "The maximum acceptable offset between the local clock and the NTP Server, in seconds e.g. if you allow up to 0.5s timeoffset you can also enter 500ms. Invoke-IcingaCheckTimeSync will return OK, if there is no difference between them, WARNING, if the time difference exceeds the Warning threshold, CRITICAL, if the time difference exceeds the Critical threshold."
value = "$IcingaCheckTimeSync_Object_TimeOffset$"
order = 3
}
"-IPV4" = {
set_if = "$IcingaCheckTimeSync_Switchparameter_IPV4$"
order = 99
}
}
vars.IcingaCheckTimeSync_Switchparameter_NoPerfData = false
vars.IcingaCheckTimeSync_Switchparameter_IPV4 = false
}
object CheckCommand "Invoke-IcingaCheckNetworkInterface" {
import "PowerShell Base"
arguments += {
"-PacketSentSecWarn" = {
description = "Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface."
value = "$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$"
order = 8
}
"-C" = {
value = "try { Use-Icinga; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; exit 3; }; Exit-IcingaPluginNotInstalled 'Invoke-IcingaCheckNetworkInterface'; exit Invoke-IcingaCheckNetworkInterface"
order = 0
}
"-NoPerfData" = {
set_if = "$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$"
order = 99
}
"-LinkSpeedCrit" = {
description = "Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface."
value = "$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$"
order = 29
}
"-DeviceReceivedBytesSecWarn" = {
description = "Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$"
order = 26
}
"-PackteOutboundErrorCrit" = {
description = "Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted because of errors."
value = "$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$"
order = 13
}
"-IncomingAvgBandUsageCrit" = {
description = "Critical threshold for network Interface avg. Bytes Received/sec is the average of incoming Bytes."
value = "$IcingaCheckNetworkInterface_Object_IncomingAvgBandUsageCrit$"
order = 19
}
"-PackteReceivedErrorCrit" = {
description = "Critical threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol."
value = "$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$"
order = 11
}
"-DeviceSentBytesSecCrit" = {
description = "Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$"
order = 25
}
"-IfSlaveEnabledStateCrit" = {
description = "Critical threshold for the State of a network Interface Team-Members/Slaves."
value = "$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$"
order = 33
}
"-PacketOutboundDiscardedWarn" = {
description = "Warning threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent transmission."
value = "$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$"
order = 16
}
"-PacketOutboundDiscardedCrit" = {
description = "Critical threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent transmission."
value = "$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$"
order = 17
}
"-IfTeamStatusWarn" = {
description = "Warning threshold for the Status of a network Interface Teams."
value = "$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$"
order = 30
}
"-IncludeHidden" = {
set_if = "$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$"
order = 99
}
"-OutboundAvgBandUsageWarn" = {
description = "Warning threshold for network Interface avg. Bytes Sent/sec is the average of outbound Bytes."
value = "$IcingaCheckNetworkInterface_Object_OutboundAvgBandUsageWarn$"
order = 20
}
"-IncomingAvgBandUsageWarn" = {
description = "Warning threshold for network Interface avg. Bytes Received/sec is the average of incoming Bytes."
value = "$IcingaCheckNetworkInterface_Object_IncomingAvgBandUsageWarn$"
order = 18
}
"-DeviceTotalBytesSecCrit" = {
description = "Critical threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$"
order = 23
}
"-PackteOutboundErrorWarn" = {
description = "Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted because of errors."
value = "$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$"
order = 12
}
"-DeviceTotalBytesSecWarn" = {
description = "Warning threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$"
order = 22
}
"-IfTeamStatusCrit" = {
description = "Critical threshold for the Status of a network Interface Teams."
value = "$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$"
order = 31
}
"-LinkSpeedWarn" = {
description = "Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface."
value = "$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$"
order = 28
}
"-IncludeNetworkDevice" = {
description = "Specify the index of network adapters you want to include for checks. Example 4, 3"
value = {{
var arr = macro("$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$");
if (len(arr) == 0) {
return "@()";
}
return arr.join(",");
}}
order = 2
}
"-DeviceSentBytesSecWarn" = {
description = "Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$"
order = 24
}
"-DeviceReceivedBytesSecCrit" = {
description = "Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including framing characters."
value = "$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$"
order = 27
}
"-PackteReceivedErrorWarn" = {
description = "Warning threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol."
value = "$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$"
order = 10
}
"-PacketReceivedDiscardedWarn" = {
description = "Warning threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their delivery to a higher-layer protocol."
value = "$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$"