object CheckCommand "PowerShell Base" { import "plugin-check-command" command = [ "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" ] timeout = 3m } object CheckCommand "Invoke-IcingaCheckCertificate" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-CertName" = { order = 10 value = {{ var arr = macro("$IcingaCheckCertificate_Array_CertName$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-CertPaths" = { order = 9 value = {{ var arr = macro("$IcingaCheckCertificate_Array_CertPaths$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-CertStore" = { order = 5 value = "$IcingaCheckCertificate_String_CertStore$" } "-CertStorePath" = { order = 8 value = "$IcingaCheckCertificate_Object_CertStorePath$" } "-CertSubject" = { order = 7 value = {{ var arr = macro("$IcingaCheckCertificate_Array_CertSubject$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-CertThumbprint" = { order = 6 value = {{ var arr = macro("$IcingaCheckCertificate_Array_CertThumbprint$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-CriticalEnd" = { order = 4 value = "$IcingaCheckCertificate_Object_CriticalEnd$" } "-CriticalStart" = { order = 2 value = "$IcingaCheckCertificate_Object_CriticalStart$" } "-Recurse" = { order = 99 set_if = "$IcingaCheckCertificate_Switchparameter_Recurse$" } "-Trusted" = { order = 99 set_if = "$IcingaCheckCertificate_Switchparameter_Trusted$" } "-Verbosity" = { order = 11 value = "$IcingaCheckCertificate_Int32_Verbosity$" } "-WarningEnd" = { order = 3 value = "$IcingaCheckCertificate_Object_WarningEnd$" } } vars.Recurse = false vars.Trusted = false } object CheckCommand "Invoke-IcingaCheckICMP" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 3 value = "$IcingaCheckICMP_Object_Critical$" } "-CriticalPl" = { order = 5 value = "$IcingaCheckICMP_Object_CriticalPl$" } "-Hostname" = { order = 6 value = "$IcingaCheckICMP_String_Hostname$" } "-IPv4" = { order = 99 set_if = "$IcingaCheckICMP_Switchparameter_IPv4$" } "-IPv6" = { order = 99 set_if = "$IcingaCheckICMP_Switchparameter_IPv6$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$" } "-PacketCount" = { order = 7 value = "$IcingaCheckICMP_Int32_PacketCount$" } "-PacketSize" = { order = 8 value = "$IcingaCheckICMP_Int32_PacketSize$" } "-Verbosity" = { order = 9 value = "$IcingaCheckICMP_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckICMP_Object_Warning$" } "-WarningPl" = { order = 4 value = "$IcingaCheckICMP_Object_WarningPl$" } } vars.IPv4 = false vars.IPv6 = false vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckDirectory" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-ChangeOlderThan" = { order = 8 value = "$IcingaCheckDirectory_String_ChangeOlderThan$" } "-ChangeTimeEqual" = { order = 6 value = "$IcingaCheckDirectory_String_ChangeTimeEqual$" } "-ChangeYoungerThan" = { order = 7 value = "$IcingaCheckDirectory_String_ChangeYoungerThan$" } "-CreationOlderThan" = { order = 10 value = "$IcingaCheckDirectory_String_CreationOlderThan$" } "-CreationTimeEqual" = { order = 9 value = "$IcingaCheckDirectory_String_CreationTimeEqual$" } "-CreationYoungerThan" = { order = 11 value = "$IcingaCheckDirectory_String_CreationYoungerThan$" } "-Critical" = { order = 4 value = "$IcingaCheckDirectory_Object_Critical$" } "-FileNames" = { order = 3 value = {{ var arr = macro("$IcingaCheckDirectory_Array_FileNames$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-FileSizeGreaterThan" = { order = 12 value = "$IcingaCheckDirectory_String_FileSizeGreaterThan$" } "-FileSizeSmallerThan" = { order = 13 value = "$IcingaCheckDirectory_String_FileSizeSmallerThan$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$" } "-Path" = { order = 2 value = "$IcingaCheckDirectory_String_Path$" } "-Recurse" = { order = 99 set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$" } "-Verbosity" = { order = 14 value = "$IcingaCheckDirectory_Int32_Verbosity$" } "-Warning" = { order = 5 value = "$IcingaCheckDirectory_Object_Warning$" } } vars.NoPerfData = false vars.Recurse = false } object CheckCommand "Invoke-IcingaCheckUptime" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 3 value = "$IcingaCheckUptime_String_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckUptime_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 4 value = "$IcingaCheckUptime_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckUptime_String_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckUpdates" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 4 value = "$IcingaCheckUpdates_Object_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckUpdates_Switchparameter_NoPerfData$" } "-UpdateFilter" = { order = 2 value = {{ var arr = macro("$IcingaCheckUpdates_Array_UpdateFilter$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 5 value = "$IcingaCheckUpdates_Int32_Verbosity$" } "-Warning" = { order = 3 value = "$IcingaCheckUpdates_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckPerfcounter" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 4 value = "$IcingaCheckPerfcounter_Object_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckPerfcounter_Switchparameter_NoPerfData$" } "-PerfCounter" = { order = 2 value = {{ var arr = macro("$IcingaCheckPerfcounter_Array_PerfCounter$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 5 value = "$IcingaCheckPerfcounter_Int32_Verbosity$" } "-Warning" = { order = 3 value = "$IcingaCheckPerfcounter_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckNLA" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-NICs" = { order = 4 value = {{ var arr = macro("$IcingaCheckNLA_Array_NICs$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Profile" = { order = 2 value = "$IcingaCheckNLA_String_Profile$" } "-Verbosity" = { order = 3 value = "$IcingaCheckNLA_Int32_Verbosity$" } } } object CheckCommand "Invoke-IcingaCheckMemory" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 2 value = "$IcingaCheckMemory_String_Critical$" } "-CriticalPercent" = { order = 4 value = "$IcingaCheckMemory_Object_CriticalPercent$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckMemory_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 6 value = "$IcingaCheckMemory_Int32_Verbosity$" } "-Warning" = { order = 3 value = "$IcingaCheckMemory_String_Warning$" } "-WarningPercent" = { order = 5 value = "$IcingaCheckMemory_Object_WarningPercent$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckProcessCount" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 3 value = "$IcingaCheckProcessCount_Object_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckProcessCount_Switchparameter_NoPerfData$" } "-Process" = { order = 4 value = {{ var arr = macro("$IcingaCheckProcessCount_Array_Process$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 5 value = "$IcingaCheckProcessCount_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckProcessCount_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckUsers" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 4 value = "$IcingaCheckUsers_Object_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckUsers_Switchparameter_NoPerfData$" } "-Username" = { order = 2 value = {{ var arr = macro("$IcingaCheckUsers_Array_Username$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 5 value = "$IcingaCheckUsers_Int32_Verbosity$" } "-Warning" = { order = 3 value = "$IcingaCheckUsers_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckDiskHealth" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-CheckLogicalOnly" = { order = 99 set_if = "$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$" } "-DiskAvgReadSecCritical" = { order = 19 value = "$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$" } "-DiskAvgReadSecWarning" = { order = 18 value = "$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$" } "-DiskAvgTransSecCritical" = { order = 17 value = "$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$" } "-DiskAvgTransSecWarning" = { order = 16 value = "$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$" } "-DiskAvgWriteSecCritical" = { order = 21 value = "$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$" } "-DiskAvgWriteSecWarning" = { order = 20 value = "$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$" } "-DiskQueueLenCritical" = { order = 11 value = "$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$" } "-DiskQueueLenWarning" = { order = 10 value = "$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$" } "-DiskReadByteSecCritical" = { order = 13 value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$" } "-DiskReadByteSecWarning" = { order = 12 value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$" } "-DiskReadSecCritical" = { order = 7 value = "$IcingaCheckDiskHealth_Object_DiskReadSecCritical$" } "-DiskReadSecWarning" = { order = 6 value = "$IcingaCheckDiskHealth_Object_DiskReadSecWarning$" } "-DiskWriteByteSecCritical" = { order = 15 value = "$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$" } "-DiskWriteByteSecWarning" = { order = 14 value = "$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$" } "-DiskWriteSecCritical" = { order = 9 value = "$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$" } "-DiskWriteSecWarning" = { order = 8 value = "$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$" } "-ExcludeDisk" = { order = 3 value = {{ var arr = macro("$IcingaCheckDiskHealth_Array_ExcludeDisk$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-ExcludePartition" = { order = 5 value = {{ var arr = macro("$IcingaCheckDiskHealth_Array_ExcludePartition$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludeDisk" = { order = 2 value = {{ var arr = macro("$IcingaCheckDiskHealth_Array_IncludeDisk$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludePartition" = { order = 4 value = {{ var arr = macro("$IcingaCheckDiskHealth_Array_IncludePartition$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckDiskHealth_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 22 value = "$IcingaCheckDiskHealth_Int32_Verbosity$" } } vars.CheckLogicalOnly = false vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckTimeSync" { import "PowerShell Base" arguments += { "-C" = { order = 0 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" } "-Critical" = { order = 5 value = "$IcingaCheckTimeSync_Object_Critical$" } "-IPV4" = { order = 99 set_if = "$IcingaCheckTimeSync_Switchparameter_IPV4$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckTimeSync_Switchparameter_NoPerfData$" } "-Port" = { order = 7 value = "$IcingaCheckTimeSync_Int32_Port$" } "-Server" = { order = 2 value = "$IcingaCheckTimeSync_String_Server$" } "-TimeOffset" = { order = 3 value = "$IcingaCheckTimeSync_Object_TimeOffset$" } "-Timeout" = { order = 6 value = "$IcingaCheckTimeSync_Int32_Timeout$" } "-Verbosity" = { order = 8 value = "$IcingaCheckTimeSync_Int32_Verbosity$" } "-Warning" = { order = 4 value = "$IcingaCheckTimeSync_Object_Warning$" } } vars.IPV4 = false vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckCheckSum" { import "PowerShell Base" arguments += { "-Algorithm" = { order = 3 value = "$IcingaCheckCheckSum_String_Algorithm$" } "-C" = { order = 0 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-IcingaCheckCheckSum'; exit Invoke-IcingaCheckCheckSum" } "-Hash" = { order = 4 value = "$IcingaCheckCheckSum_String_Hash$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckCheckSum_Switchparameter_NoPerfData$" } "-Path" = { order = 2 value = "$IcingaCheckCheckSum_String_Path$" } "-Verbosity" = { order = 5 value = "$IcingaCheckCheckSum_Int32_Verbosity$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckScheduledTask" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckScheduledTask'; exit Invoke-IcingaCheckScheduledTask" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckScheduledTask_Switchparameter_NoPerfData$" } "-State" = { order = 3 value = "$IcingaCheckScheduledTask_String_State$" } "-TaskName" = { order = 2 value = {{ var arr = macro("$IcingaCheckScheduledTask_Array_TaskName$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 4 value = "$IcingaCheckScheduledTask_Int32_Verbosity$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckBiosSerial" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckBiosSerial'; exit Invoke-IcingaCheckBiosSerial" } } } object CheckCommand "Invoke-IcingaCheckEventlog" { import "PowerShell Base" arguments += { "-After" = { order = 13 value = "$IcingaCheckEventlog_Object_After$" } "-Before" = { order = 14 value = "$IcingaCheckEventlog_Object_Before$" } "-C" = { order = 0 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-IcingaCheckEventlog'; exit Invoke-IcingaCheckEventlog" } "-Critical" = { order = 3 value = "$IcingaCheckEventlog_Object_Critical$" } "-DisableTimeCache" = { order = 99 set_if = "$IcingaCheckEventlog_Switchparameter_DisableTimeCache$" } "-ExcludeEntryType" = { order = 10 value = {{ var arr = macro("$IcingaCheckEventlog_Array_ExcludeEntryType$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-ExcludeEventId" = { order = 6 value = {{ var arr = macro("$IcingaCheckEventlog_Array_ExcludeEventId$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-ExcludeMessage" = { order = 12 value = {{ var arr = macro("$IcingaCheckEventlog_Array_ExcludeMessage$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-ExcludeUsername" = { order = 8 value = {{ var arr = macro("$IcingaCheckEventlog_Array_ExcludeUsername$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludeEntryType" = { order = 9 value = {{ var arr = macro("$IcingaCheckEventlog_Array_IncludeEntryType$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludeEventId" = { order = 5 value = {{ var arr = macro("$IcingaCheckEventlog_Array_IncludeEventId$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludeMessage" = { order = 11 value = {{ var arr = macro("$IcingaCheckEventlog_Array_IncludeMessage$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-IncludeUsername" = { order = 7 value = {{ var arr = macro("$IcingaCheckEventlog_Array_IncludeUsername$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-LogName" = { order = 4 value = "$IcingaCheckEventlog_String_LogName$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckEventlog_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 15 value = "$IcingaCheckEventlog_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckEventlog_Object_Warning$" } } vars.DisableTimeCache = false vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckCPU" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckCPU'; exit Invoke-IcingaCheckCPU" } "-Core" = { order = 4 value = "$IcingaCheckCPU_String_Core$" } "-Critical" = { order = 3 value = "$IcingaCheckCPU_Object_Critical$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckCPU_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 5 value = "$IcingaCheckCPU_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckCPU_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckFirewall" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckFirewall'; exit Invoke-IcingaCheckFirewall" } "-Enabled" = { order = 99 set_if = "$IcingaCheckFirewall_Switchparameter_Enabled$" } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckFirewall_Switchparameter_NoPerfData$" } "-Profile" = { order = 2 value = {{ var arr = macro("$IcingaCheckFirewall_Array_Profile$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Verbosity" = { order = 3 value = "$IcingaCheckFirewall_Int32_Verbosity$" } } vars.Enabled = false vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckUsedPartitionSpace" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckUsedPartitionSpace'; exit Invoke-IcingaCheckUsedPartitionSpace" } "-Critical" = { order = 3 value = "$IcingaCheckUsedPartitionSpace_Object_Critical$" } "-Exclude" = { order = 5 value = {{ var arr = macro("$IcingaCheckUsedPartitionSpace_Array_Exclude$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Include" = { order = 4 value = {{ var arr = macro("$IcingaCheckUsedPartitionSpace_Array_Include$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$" } "-Verbosity" = { order = 6 value = "$IcingaCheckUsedPartitionSpace_Int32_Verbosity$" } "-Warning" = { order = 2 value = "$IcingaCheckUsedPartitionSpace_Object_Warning$" } } vars.NoPerfData = false } object CheckCommand "Invoke-IcingaCheckService" { import "PowerShell Base" arguments += { "-C" = { order = 0 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-IcingaCheckService'; exit Invoke-IcingaCheckService" } "-Exclude" = { order = 3 value = {{ var arr = macro("$IcingaCheckService_Array_Exclude$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-NoPerfData" = { order = 99 set_if = "$IcingaCheckService_Switchparameter_NoPerfData$" } "-Service" = { order = 2 value = {{ var arr = macro("$IcingaCheckService_Array_Service$"); if (len(arr) == 0) { return "$null"; } return arr.join(","); }} } "-Status" = { order = 4 value = "$IcingaCheckService_String_Status$" } "-Verbosity" = { order = 5 value = "$IcingaCheckService_Int32_Verbosity$" } } vars.NoPerfData = false }