From b6fcd79fe45ed7dffe0218c768e7901fca02dbc9 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 14 Feb 2024 10:43:04 +0100 Subject: [PATCH] Adds new EventLog provider integration --- .gitignore | 3 +- .../Invoke-IcingaCheckBiosSerial.json | 2 +- config/director/Invoke-IcingaCheckCPU.json | 2 +- .../Invoke-IcingaCheckCertificate.json | 2 +- .../director/Invoke-IcingaCheckCheckSum.json | 2 +- .../director/Invoke-IcingaCheckDirectory.json | 2 +- .../Invoke-IcingaCheckDiskHealth.json | 2 +- .../director/Invoke-IcingaCheckEventlog.json | 2 +- .../director/Invoke-IcingaCheckFirewall.json | 2 +- .../Invoke-IcingaCheckHTTPStatus.json | 2 +- .../Invoke-IcingaCheckHttpJsonResponse.json | 2 +- config/director/Invoke-IcingaCheckICMP.json | 2 +- config/director/Invoke-IcingaCheckMPIO.json | 2 +- config/director/Invoke-IcingaCheckMemory.json | 2 +- config/director/Invoke-IcingaCheckNLA.json | 2 +- .../Invoke-IcingaCheckNetworkInterface.json | 2 +- .../Invoke-IcingaCheckPartitionSpace.json | 2 +- .../Invoke-IcingaCheckPerfcounter.json | 2 +- .../director/Invoke-IcingaCheckProcess.json | 2 +- .../Invoke-IcingaCheckProcessCount.json | 2 +- .../Invoke-IcingaCheckScheduledTask.json | 2 +- .../director/Invoke-IcingaCheckService.json | 2 +- .../Invoke-IcingaCheckStoragePool.json | 2 +- config/director/Invoke-IcingaCheckTCP.json | 2 +- .../director/Invoke-IcingaCheckTimeSync.json | 2 +- .../director/Invoke-IcingaCheckUNCPath.json | 2 +- .../director/Invoke-IcingaCheckUpdates.json | 2 +- config/director/Invoke-IcingaCheckUptime.json | 2 +- .../Invoke-IcingaCheckUsedPartitionSpace.json | 2 +- config/director/Invoke-IcingaCheckUsers.json | 2 +- config/director/Plugins_Bundle.json | 2 +- .../icinga/Invoke-IcingaCheckBiosSerial.conf | 4 - config/icinga/Invoke-IcingaCheckCPU.conf | 12 +- .../icinga/Invoke-IcingaCheckCertificate.conf | 4 - config/icinga/Invoke-IcingaCheckCheckSum.conf | 46 +- .../icinga/Invoke-IcingaCheckDirectory.conf | 220 +++-- .../icinga/Invoke-IcingaCheckDiskHealth.conf | 20 +- config/icinga/Invoke-IcingaCheckEventlog.conf | 8 +- config/icinga/Invoke-IcingaCheckFirewall.conf | 40 +- .../icinga/Invoke-IcingaCheckHTTPStatus.conf | 4 - .../Invoke-IcingaCheckHttpJsonResponse.conf | 4 - config/icinga/Invoke-IcingaCheckICMP.conf | 52 +- config/icinga/Invoke-IcingaCheckMPIO.conf | 14 +- config/icinga/Invoke-IcingaCheckMemory.conf | 4 - config/icinga/Invoke-IcingaCheckNLA.conf | 12 +- .../Invoke-IcingaCheckNetworkInterface.conf | 4 - .../Invoke-IcingaCheckPartitionSpace.conf | 4 - .../icinga/Invoke-IcingaCheckPerfcounter.conf | 78 +- config/icinga/Invoke-IcingaCheckProcess.conf | 4 - .../Invoke-IcingaCheckProcessCount.conf | 4 - .../Invoke-IcingaCheckScheduledTask.conf | 4 - config/icinga/Invoke-IcingaCheckService.conf | 48 +- .../icinga/Invoke-IcingaCheckStoragePool.conf | 4 - config/icinga/Invoke-IcingaCheckTCP.conf | 4 - config/icinga/Invoke-IcingaCheckTimeSync.conf | 60 +- config/icinga/Invoke-IcingaCheckUNCPath.conf | 86 +- config/icinga/Invoke-IcingaCheckUpdates.conf | 4 - config/icinga/Invoke-IcingaCheckUptime.conf | 24 +- .../Invoke-IcingaCheckUsedPartitionSpace.conf | 4 - config/icinga/Invoke-IcingaCheckUsers.conf | 4 - config/icinga/Plugins_Bundle.conf | 780 ++++++++---------- config/icinga/PowerShell_Base.conf | 4 + doc/31-Changelog.md | 1 + .../02-Invoke-IcingaCheckCertificate.md | 12 +- doc/plugins/03-Invoke-IcingaCheckCheckSum.md | 4 +- doc/plugins/04-Invoke-IcingaCheckCPU.md | 6 +- doc/plugins/05-Invoke-IcingaCheckDirectory.md | 44 +- doc/plugins/06-Invoke-IcingaCheckEventlog.md | 114 ++- doc/plugins/07-Invoke-IcingaCheckFirewall.md | 4 +- doc/plugins/08-Invoke-IcingaCheckICMP.md | 2 +- doc/plugins/09-Invoke-IcingaCheckMemory.md | 8 +- doc/plugins/10-Invoke-IcingaCheckNLA.md | 2 +- .../11-Invoke-IcingaCheckPerfcounter.md | 8 +- .../12-Invoke-IcingaCheckProcessCount.md | 2 +- doc/plugins/13-Invoke-IcingaCheckService.md | 10 +- doc/plugins/14-Invoke-IcingaCheckUpdates.md | 8 +- doc/plugins/15-Invoke-IcingaCheckUptime.md | 6 +- ...16-Invoke-IcingaCheckUsedPartitionSpace.md | 12 +- doc/plugins/17-Invoke-IcingaCheckUsers.md | 2 +- doc/plugins/18-Invoke-IcingaCheckTimeSync.md | 4 +- .../19-Invoke-IcingaCheckScheduledTask.md | 18 +- .../20-Invoke-IcingaCheckDiskHealth.md | 6 +- .../21-Invoke-IcingaCheckNetworkInterface.md | 32 +- .../21-Invoke-IcingaCheckStoragePool.md | 16 +- doc/plugins/23-Invoke-IcingaCheckTCP.md | 8 +- doc/plugins/24-Invoke-IcingaCheckUNCPath.md | 12 +- .../25-Invoke-IcingaCheckHTTPStatus.md | 4 +- doc/plugins/26-Invoke-IcingaCheckMPIO.md | 6 +- doc/plugins/27-Invoke-IcingaCheckProcess.md | 38 +- .../28-Invoke-IcingaCheckHttpJsonResponse.md | 4 +- plugins/Invoke-IcingaCheckEventlog.psm1 | 272 +++--- 91 files changed, 1094 insertions(+), 1198 deletions(-) diff --git a/.gitignore b/.gitignore index ce92fa93..c460f1fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.log -*.DS_Store \ No newline at end of file +*.DS_Store +.vscode \ No newline at end of file diff --git a/config/director/Invoke-IcingaCheckBiosSerial.json b/config/director/Invoke-IcingaCheckBiosSerial.json index 146eb571..49ca4585 100644 --- a/config/director/Invoke-IcingaCheckBiosSerial.json +++ b/config/director/Invoke-IcingaCheckBiosSerial.json @@ -1 +1 @@ -{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckBiosSerial":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckBiosSerial","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckBiosSerial\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckBiosSerial_String_ThresholdInterval$"}},"ifw_api_command":"Invoke-IcingaCheckBiosSerial"}}},"Datafield":{"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckBiosSerial_String_ThresholdInterval","format":null}}} +{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckBiosSerial":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckBiosSerial","arguments":{"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckBiosSerial_String_ThresholdInterval$"}},"ifw_api_command":"Invoke-IcingaCheckBiosSerial"}}},"Datafield":{"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckBiosSerial_String_ThresholdInterval","format":null}}} diff --git a/config/director/Invoke-IcingaCheckCPU.json b/config/director/Invoke-IcingaCheckCPU.json index b144881e..97d2cdf6 100644 --- a/config/director/Invoke-IcingaCheckCPU.json +++ b/config/director/Invoke-IcingaCheckCPU.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckCPU Verbosity":{"list_name":"IcingaCheckCPU Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckCPU":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCPU","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCPU\u0027 ","order":"0"},"-SocketFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckCPU_Array_SocketFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$","order":"6"},"-Core":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_Core$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_Core$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckCPU_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckCPU_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCPU_Switchparameter_OverallOnly":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckCPU_String_ThresholdInterval$"},"SocketFilter":{"value":"$IcingaCheckCPU_Array_SocketFilter$"},"Critical":{"value":"$IcingaCheckCPU_Object_Critical$"},"Core":{"value":"$IcingaCheckCPU_String_Core$"},"OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$"},"Warning":{"value":"$IcingaCheckCPU_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckCPU","IcingaCheckCPU_Switchparameter_NoPerfData":false}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a single core to check for. For the average load across all cores use `_Total`","caption":"Core","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCPU_String_Core","format":null},"9":{"settings":{"visibility":"visible"},"description":"If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all\nreturned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument","caption":"OverallOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckCPU_Switchparameter_OverallOnly","format":null},"10":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckCPU_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckCPU Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckCPU_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCPU_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckCPU_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCPU_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id\u0027s will not be evaluated\nby the plugin.","caption":"SocketFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckCPU_Array_SocketFilter","format":null}}} +{"DataList":{"IcingaCheckCPU Verbosity":{"list_name":"IcingaCheckCPU Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckCPU":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCPU","arguments":{"-Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$","order":"6"},"-SocketFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckCPU_Array_SocketFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Core":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_Core$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_Core$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckCPU_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckCPU_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCPU_Switchparameter_OverallOnly":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckCPU_String_ThresholdInterval$"},"SocketFilter":{"value":"$IcingaCheckCPU_Array_SocketFilter$"},"Critical":{"value":"$IcingaCheckCPU_Object_Critical$"},"Core":{"value":"$IcingaCheckCPU_String_Core$"},"OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$"},"Warning":{"value":"$IcingaCheckCPU_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckCPU","IcingaCheckCPU_Switchparameter_NoPerfData":false}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a single core to check for. For the average load across all cores use `_Total`","caption":"Core","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCPU_String_Core","format":null},"9":{"settings":{"visibility":"visible"},"description":"If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all\nreturned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument","caption":"OverallOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckCPU_Switchparameter_OverallOnly","format":null},"10":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckCPU_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckCPU Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckCPU_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCPU_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckCPU_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCPU_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id\u0027s will not be evaluated\nby the plugin.","caption":"SocketFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckCPU_Array_SocketFilter","format":null}}} diff --git a/config/director/Invoke-IcingaCheckCertificate.json b/config/director/Invoke-IcingaCheckCertificate.json index bcd8da4f..2167521e 100644 --- a/config/director/Invoke-IcingaCheckCertificate.json +++ b/config/director/Invoke-IcingaCheckCertificate.json @@ -1 +1 @@ -{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate CertStore":{"list_name":"IcingaCheckCertificate CertStore","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"None","entry_name":"None","format":"string"},{"allowed_roles":null,"entry_value":"*","entry_name":"*","format":"string"},{"allowed_roles":null,"entry_value":"LocalMachine","entry_name":"LocalMachine","format":"string"},{"allowed_roles":null,"entry_value":"CurrentUser","entry_name":"CurrentUser","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate Verbosity":{"list_name":"IcingaCheckCertificate Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckCertificate":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCertificate","arguments":{"-CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$","order":"9"},"-CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$","order":"4"},"-Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$","order":"12"},"-CertSubject":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertSubject$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$","set_if_format":"string","order":"99"},"-WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$","order":"3"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCertificate\u0027 ","order":"0"},"-CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CertStore":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$","set_if_format":"string","order":"99"},"-ExcludePattern":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_ExcludePattern$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-CertPaths":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertPaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-CertThumbprint":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertThumbprint$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-CertName":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCertificate_Switchparameter_IgnoreEmpty":false,"IcingaCheckCertificate_Switchparameter_Recurse":false,"ifw_api_arguments":{"CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$"},"CertPaths":{"value":"$IcingaCheckCertificate_Array_CertPaths$"},"CertName":{"value":"$IcingaCheckCertificate_Array_CertName$"},"CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$"},"Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$"},"ThresholdInterval":{"value":"$IcingaCheckCertificate_String_ThresholdInterval$"},"CertThumbprint":{"value":"$IcingaCheckCertificate_Array_CertThumbprint$"},"CertStore":{"value":"$IcingaCheckCertificate_String_CertStore$"},"CertSubject":{"value":"$IcingaCheckCertificate_Array_CertSubject$"},"IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$"},"Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$"},"CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$"},"WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$"},"ExcludePattern":{"value":"$IcingaCheckCertificate_Array_ExcludePattern$"},"Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$"}},"ifw_api_command":"Invoke-IcingaCheckCertificate","IcingaCheckCertificate_Switchparameter_Trusted":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Includes sub-directories and entries while looking for certificates on a given path","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"16","varname":"IcingaCheckCertificate_Switchparameter_Recurse","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"WarningEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCertificate_Object_WarningEnd","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root.\nWill return Critical in case of untrusted.\n\nNote: it is currently required that the root and intermediate CA is known and trusted by the local system.","caption":"Trusted","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"5","varname":"IcingaCheckCertificate_Switchparameter_Trusted","format":null},"18":{"settings":{"datalist":"IcingaCheckCertificate Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckCertificate_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify an array of exclusions, tested against Subject, Subject Alternative Name, Issuer and Thumbprint.","caption":"ExcludePattern","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckCertificate_Array_ExcludePattern","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore.","caption":"CertThumbprint","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckCertificate_Array_CertThumbprint","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"CriticalEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckCertificate_Object_CriticalEnd","format":null},"17":{"settings":{"visibility":"visible"},"description":"Will return `OK` instead of `UNKNOWN`, in case no certificates for the given filter and path were found","caption":"IgnoreEmpty","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckCertificate_Switchparameter_IgnoreEmpty","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore.","caption":"CertSubject","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckCertificate_Array_CertSubject","format":null},"9":{"settings":{"datalist":"IcingaCheckCertificate CertStore","behavior":"strict","data_type":"string"},"description":"Used to specify which CertStore to check. Valid choices are \u0027None\u0027, \u0027*\u0027, \u0027LocalMachine\u0027, \u0027CurrentUser\u0027.\nUse \u0027None\u0027 if you do not want to check the certificate store (Default)","caption":"CertStore","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckCertificate_String_CertStore","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify an array of paths on your system, where certificate files are. Use with CertName.","caption":"CertPaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckCertificate_Array_CertPaths","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of certificate names of certificate files to check. Use with CertPaths.","caption":"CertName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckCertificate_Array_CertName","format":null},"6":{"settings":{"visibility":"visible"},"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.\nUse format like: \u0027yyyy-MM-dd\u0027","caption":"CriticalStart","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckCertificate_Object_CriticalStart","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCertificate_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify which path within the CertStore should be checked.","caption":"CertStorePath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckCertificate_Object_CertStorePath","format":null}}} +{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate CertStore":{"list_name":"IcingaCheckCertificate CertStore","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"None","entry_name":"None","format":"string"},{"allowed_roles":null,"entry_value":"*","entry_name":"*","format":"string"},{"allowed_roles":null,"entry_value":"LocalMachine","entry_name":"LocalMachine","format":"string"},{"allowed_roles":null,"entry_value":"CurrentUser","entry_name":"CurrentUser","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate Verbosity":{"list_name":"IcingaCheckCertificate Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckCertificate":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCertificate","arguments":{"-CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$","order":"9"},"-CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$","order":"4"},"-Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$","order":"12"},"-CertSubject":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertSubject$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$","set_if_format":"string","order":"99"},"-WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$","order":"3"},"-CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CertStore":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$","set_if_format":"string","order":"99"},"-ExcludePattern":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_ExcludePattern$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-CertPaths":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertPaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-CertThumbprint":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertThumbprint$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-CertName":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCertificate_Switchparameter_IgnoreEmpty":false,"IcingaCheckCertificate_Switchparameter_Recurse":false,"ifw_api_arguments":{"CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$"},"CertPaths":{"value":"$IcingaCheckCertificate_Array_CertPaths$"},"CertName":{"value":"$IcingaCheckCertificate_Array_CertName$"},"CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$"},"Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$"},"ThresholdInterval":{"value":"$IcingaCheckCertificate_String_ThresholdInterval$"},"CertThumbprint":{"value":"$IcingaCheckCertificate_Array_CertThumbprint$"},"CertStore":{"value":"$IcingaCheckCertificate_String_CertStore$"},"CertSubject":{"value":"$IcingaCheckCertificate_Array_CertSubject$"},"IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$"},"Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$"},"CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$"},"WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$"},"ExcludePattern":{"value":"$IcingaCheckCertificate_Array_ExcludePattern$"},"Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$"}},"ifw_api_command":"Invoke-IcingaCheckCertificate","IcingaCheckCertificate_Switchparameter_Trusted":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Includes sub-directories and entries while looking for certificates on a given path","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"16","varname":"IcingaCheckCertificate_Switchparameter_Recurse","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"WarningEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCertificate_Object_WarningEnd","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root.\nWill return Critical in case of untrusted.\n\nNote: it is currently required that the root and intermediate CA is known and trusted by the local system.","caption":"Trusted","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"5","varname":"IcingaCheckCertificate_Switchparameter_Trusted","format":null},"18":{"settings":{"datalist":"IcingaCheckCertificate Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckCertificate_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify an array of exclusions, tested against Subject, Subject Alternative Name, Issuer and Thumbprint.","caption":"ExcludePattern","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckCertificate_Array_ExcludePattern","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore.","caption":"CertThumbprint","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckCertificate_Array_CertThumbprint","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"CriticalEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckCertificate_Object_CriticalEnd","format":null},"17":{"settings":{"visibility":"visible"},"description":"Will return `OK` instead of `UNKNOWN`, in case no certificates for the given filter and path were found","caption":"IgnoreEmpty","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckCertificate_Switchparameter_IgnoreEmpty","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore.","caption":"CertSubject","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckCertificate_Array_CertSubject","format":null},"9":{"settings":{"datalist":"IcingaCheckCertificate CertStore","behavior":"strict","data_type":"string"},"description":"Used to specify which CertStore to check. Valid choices are \u0027None\u0027, \u0027*\u0027, \u0027LocalMachine\u0027, \u0027CurrentUser\u0027.\nUse \u0027None\u0027 if you do not want to check the certificate store (Default)","caption":"CertStore","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckCertificate_String_CertStore","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify an array of paths on your system, where certificate files are. Use with CertName.","caption":"CertPaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckCertificate_Array_CertPaths","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of certificate names of certificate files to check. Use with CertPaths.","caption":"CertName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckCertificate_Array_CertName","format":null},"6":{"settings":{"visibility":"visible"},"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.\nUse format like: \u0027yyyy-MM-dd\u0027","caption":"CriticalStart","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckCertificate_Object_CriticalStart","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCertificate_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify which path within the CertStore should be checked.","caption":"CertStorePath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckCertificate_Object_CertStorePath","format":null}}} diff --git a/config/director/Invoke-IcingaCheckCheckSum.json b/config/director/Invoke-IcingaCheckCheckSum.json index 31455f13..a9010e4a 100644 --- a/config/director/Invoke-IcingaCheckCheckSum.json +++ b/config/director/Invoke-IcingaCheckCheckSum.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckCheckSum Verbosity":{"list_name":"IcingaCheckCheckSum Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Algorithm":{"list_name":"IcingaCheckCheckSum Algorithm","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"SHA1","entry_name":"SHA1","format":"string"},{"allowed_roles":null,"entry_value":"SHA256","entry_name":"SHA256","format":"string"},{"allowed_roles":null,"entry_value":"SHA384","entry_name":"SHA384","format":"string"},{"allowed_roles":null,"entry_value":"SHA512","entry_name":"SHA512","format":"string"},{"allowed_roles":null,"entry_value":"MD5","entry_name":"MD5","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckCheckSum":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCheckSum","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCheckSum\u0027 ","order":"0"},"-Algorithm":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$","order":"5"},"-Hash":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCheckSum_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Path":{"value":"$IcingaCheckCheckSum_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckCheckSum_String_ThresholdInterval$"},"Algorithm":{"value":"$IcingaCheckCheckSum_String_Algorithm$"},"Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$"},"NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$"},"Hash":{"value":"$IcingaCheckCheckSum_String_Hash$"}},"ifw_api_command":"Invoke-IcingaCheckCheckSum"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"Hash","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCheckSum_String_Hash","format":null},"9":{"settings":{"datalist":"IcingaCheckCheckSum Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckCheckSum_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCheckSum_String_ThresholdInterval","format":null},"6":{"settings":{"datalist":"IcingaCheckCheckSum Algorithm","behavior":"strict","data_type":"string"},"description":"Used to specify a string, which contains the algorithm to be used.\n\nAllowed algorithms: \u0027SHA1\u0027, \u0027SHA256\u0027, \u0027SHA384\u0027, \u0027SHA512\u0027, \u0027MD5\u0027","caption":"Algorithm","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckCheckSum_String_Algorithm","format":null},"5":{"settings":{"visibility":"visible"},"description":null,"caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCheckSum_String_Path","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckCheckSum_Switchparameter_NoPerfData","format":null}}} +{"DataList":{"IcingaCheckCheckSum Verbosity":{"list_name":"IcingaCheckCheckSum Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Algorithm":{"list_name":"IcingaCheckCheckSum Algorithm","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"SHA1","entry_name":"SHA1","format":"string"},{"allowed_roles":null,"entry_value":"SHA256","entry_name":"SHA256","format":"string"},{"allowed_roles":null,"entry_value":"SHA384","entry_name":"SHA384","format":"string"},{"allowed_roles":null,"entry_value":"SHA512","entry_name":"SHA512","format":"string"},{"allowed_roles":null,"entry_value":"MD5","entry_name":"MD5","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckCheckSum":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCheckSum","arguments":{"-Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$","order":"5"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Algorithm":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Hash":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCheckSum_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Path":{"value":"$IcingaCheckCheckSum_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckCheckSum_String_ThresholdInterval$"},"Algorithm":{"value":"$IcingaCheckCheckSum_String_Algorithm$"},"Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$"},"NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$"},"Hash":{"value":"$IcingaCheckCheckSum_String_Hash$"}},"ifw_api_command":"Invoke-IcingaCheckCheckSum"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"Hash","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCheckSum_String_Hash","format":null},"9":{"settings":{"datalist":"IcingaCheckCheckSum Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckCheckSum_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckCheckSum_String_ThresholdInterval","format":null},"6":{"settings":{"datalist":"IcingaCheckCheckSum Algorithm","behavior":"strict","data_type":"string"},"description":"Used to specify a string, which contains the algorithm to be used.\n\nAllowed algorithms: \u0027SHA1\u0027, \u0027SHA256\u0027, \u0027SHA384\u0027, \u0027SHA512\u0027, \u0027MD5\u0027","caption":"Algorithm","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckCheckSum_String_Algorithm","format":null},"5":{"settings":{"visibility":"visible"},"description":null,"caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCheckSum_String_Path","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckCheckSum_Switchparameter_NoPerfData","format":null}}} diff --git a/config/director/Invoke-IcingaCheckDirectory.json b/config/director/Invoke-IcingaCheckDirectory.json index e87500fe..b803adc7 100644 --- a/config/director/Invoke-IcingaCheckDirectory.json +++ b/config/director/Invoke-IcingaCheckDirectory.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckDirectory Verbosity":{"list_name":"IcingaCheckDirectory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckDirectory":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDirectory","arguments":{"-CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$","order":"11"},"-FileSizeGreaterThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"20"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckDirectory\u0027 ","order":"0"},"-WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$","order":"12"},"-WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$","order":"10"},"-CreationYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"19"},"-Warning":{"value":"$IcingaCheckDirectory_Object_Warning$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$","order":"22"},"-ChangeTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"14"},"-CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$","set_if_format":"string","order":"99"},"-WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$","order":"6"},"-CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$","order":"9"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ChangeOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"16"},"-CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$","order":"7"},"-Critical":{"value":"$IcingaCheckDirectory_Object_Critical$","order":"4"},"-CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$","order":"13"},"-FileSizeSmallerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"21"},"-CreationTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"17"},"-FileNames":{"value":{"body":"var arr = macro(\"$IcingaCheckDirectory_Array_FileNames$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$","order":"8"},"-CreationOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"18"},"-ChangeYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"15"},"-ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$","set_if_format":"string","order":"99"},"-Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDirectory_Switchparameter_CountFolderAsFile":false,"ifw_api_arguments":{"CreationOlderThan":{"value":"$IcingaCheckDirectory_String_CreationOlderThan$"},"WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$"},"CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$"},"WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$"},"CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$"},"WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$"},"NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$"},"ChangeYoungerThan":{"value":"$IcingaCheckDirectory_String_ChangeYoungerThan$"},"CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$"},"ThresholdInterval":{"value":"$IcingaCheckDirectory_String_ThresholdInterval$"},"CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$"},"CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$"},"FileSizeGreaterThan":{"value":"$IcingaCheckDirectory_String_FileSizeGreaterThan$"},"WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$"},"ChangeTimeEqual":{"value":"$IcingaCheckDirectory_String_ChangeTimeEqual$"},"FileSizeSmallerThan":{"value":"$IcingaCheckDirectory_String_FileSizeSmallerThan$"},"Warning":{"value":"$IcingaCheckDirectory_Object_Warning$"},"Critical":{"value":"$IcingaCheckDirectory_Object_Critical$"},"ChangeOlderThan":{"value":"$IcingaCheckDirectory_String_ChangeOlderThan$"},"ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$"},"FileNames":{"value":"$IcingaCheckDirectory_Array_FileNames$"},"CreationTimeEqual":{"value":"$IcingaCheckDirectory_String_CreationTimeEqual$"},"Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$"},"Path":{"value":"$IcingaCheckDirectory_String_Path$"},"CreationYoungerThan":{"value":"$IcingaCheckDirectory_String_CreationYoungerThan$"},"Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$"}},"IcingaCheckDirectory_Switchparameter_ShowFileList":false,"ifw_api_command":"Invoke-IcingaCheckDirectory","IcingaCheckDirectory_Switchparameter_NoPerfData":false,"IcingaCheckDirectory_Switchparameter_Recurse":false}}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckDirectory_Object_CriticalTotalSize","format":null},"7":{"settings":{"visibility":"visible"},"description":"A switch, which can be set to search through directories recursively.","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckDirectory_Switchparameter_Recurse","format":null},"20":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been changed 20 days ago are considered within the check.","caption":"ChangeTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckDirectory_String_ChangeTimeEqual","format":null},"12":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckDirectory_Object_WarningSmallestFile","format":null},"10":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckDirectory_Object_WarningTotalSize","format":null},"17":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckDirectory_Object_CriticalAverageFile","format":null},"13":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckDirectory_Object_CriticalSmallestFile","format":null},"27":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"5MB\", which translates to the filze size 5 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 5 MB or less are considered within the check.","caption":"FileSizeSmallerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckDirectory_String_FileSizeSmallerThan","format":null},"18":{"settings":{"visibility":"visible"},"description":"Will add the count of folders on top of the file count, allowing to include it within the threshold check.","caption":"CountFolderAsFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckDirectory_Switchparameter_CountFolderAsFile","format":null},"29":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"29","varname":"IcingaCheckDirectory_Switchparameter_NoPerfData","format":null},"23":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been created 20 days ago are considered within the check.","caption":"CreationTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckDirectory_String_CreationTimeEqual","format":null},"19":{"settings":{"visibility":"visible"},"description":"Allows to add the file list to the plugin output. Beware that this will cause your database to grow and\nperformance might be slower on huge directories!","caption":"ShowFileList","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckDirectory_Switchparameter_ShowFileList","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a path.\ne.g. \u0027C:\\Users\\Icinga\\Downloads\u0027","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckDirectory_String_Path","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckDirectory_String_ThresholdInterval","format":null},"26":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20MB\", which translates to the filze size 20 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 20 MB or larger are considered within the check.","caption":"FileSizeGreaterThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckDirectory_String_FileSizeGreaterThan","format":null},"14":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckDirectory_Object_WarningLargestFile","format":null},"22":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date older then 20 days are considered within the check.","caption":"ChangeOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckDirectory_String_ChangeOlderThan","format":null},"28":{"settings":{"datalist":"IcingaCheckDirectory Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"28","varname":"IcingaCheckDirectory_Int32_Verbosity","format":null},"25":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date younger then 20 days are considered within the check.","caption":"CreationYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckDirectory_String_CreationYoungerThan","format":null},"9":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckDirectory_Object_Warning","format":null},"15":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckDirectory_Object_CriticalLargestFile","format":null},"21":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date younger then 20 days are considered within the check.","caption":"ChangeYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckDirectory_String_ChangeYoungerThan","format":null},"24":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date older then 20 days are considered within the check.","caption":"CreationOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckDirectory_String_CreationOlderThan","format":null},"16":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckDirectory_Object_WarningAverageFile","format":null},"8":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckDirectory_Object_Critical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify an array of filenames or expressions to match against results to filter for specific files.\n\ne.g \u0027*.txt\u0027, \u0027*.sql\u0027, finds all files ending with .txt and .sql","caption":"FileNames","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckDirectory_Array_FileNames","format":null}}} +{"DataList":{"IcingaCheckDirectory Verbosity":{"list_name":"IcingaCheckDirectory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckDirectory":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDirectory","arguments":{"-Path":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$","order":"7"},"-CreationOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"18"},"-FileSizeGreaterThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"20"},"-Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$","order":"22"},"-ChangeOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"16"},"-ChangeYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"15"},"-FileSizeSmallerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"21"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CreationTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"17"},"-CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$","set_if_format":"string","order":"99"},"-CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$","order":"11"},"-WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$","order":"8"},"-FileNames":{"value":{"body":"var arr = macro(\"$IcingaCheckDirectory_Array_FileNames$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Critical":{"value":"$IcingaCheckDirectory_Object_Critical$","order":"4"},"-CreationYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"19"},"-Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$","order":"6"},"-WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$","order":"12"},"-WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$","order":"10"},"-Warning":{"value":"$IcingaCheckDirectory_Object_Warning$","order":"5"},"-CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$","order":"9"},"-CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$","order":"13"},"-ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$","set_if_format":"string","order":"99"},"-ChangeTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"14"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDirectory_Switchparameter_CountFolderAsFile":false,"ifw_api_arguments":{"CreationOlderThan":{"value":"$IcingaCheckDirectory_String_CreationOlderThan$"},"WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$"},"CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$"},"WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$"},"CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$"},"WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$"},"NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$"},"ChangeYoungerThan":{"value":"$IcingaCheckDirectory_String_ChangeYoungerThan$"},"CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$"},"ThresholdInterval":{"value":"$IcingaCheckDirectory_String_ThresholdInterval$"},"CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$"},"CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$"},"FileSizeGreaterThan":{"value":"$IcingaCheckDirectory_String_FileSizeGreaterThan$"},"WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$"},"ChangeTimeEqual":{"value":"$IcingaCheckDirectory_String_ChangeTimeEqual$"},"FileSizeSmallerThan":{"value":"$IcingaCheckDirectory_String_FileSizeSmallerThan$"},"Warning":{"value":"$IcingaCheckDirectory_Object_Warning$"},"Critical":{"value":"$IcingaCheckDirectory_Object_Critical$"},"ChangeOlderThan":{"value":"$IcingaCheckDirectory_String_ChangeOlderThan$"},"ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$"},"FileNames":{"value":"$IcingaCheckDirectory_Array_FileNames$"},"CreationTimeEqual":{"value":"$IcingaCheckDirectory_String_CreationTimeEqual$"},"Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$"},"Path":{"value":"$IcingaCheckDirectory_String_Path$"},"CreationYoungerThan":{"value":"$IcingaCheckDirectory_String_CreationYoungerThan$"},"Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$"}},"IcingaCheckDirectory_Switchparameter_ShowFileList":false,"ifw_api_command":"Invoke-IcingaCheckDirectory","IcingaCheckDirectory_Switchparameter_NoPerfData":false,"IcingaCheckDirectory_Switchparameter_Recurse":false}}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckDirectory_Object_CriticalTotalSize","format":null},"7":{"settings":{"visibility":"visible"},"description":"A switch, which can be set to search through directories recursively.","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckDirectory_Switchparameter_Recurse","format":null},"20":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been changed 20 days ago are considered within the check.","caption":"ChangeTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckDirectory_String_ChangeTimeEqual","format":null},"12":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckDirectory_Object_WarningSmallestFile","format":null},"10":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckDirectory_Object_WarningTotalSize","format":null},"17":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckDirectory_Object_CriticalAverageFile","format":null},"13":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckDirectory_Object_CriticalSmallestFile","format":null},"27":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"5MB\", which translates to the filze size 5 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 5 MB or less are considered within the check.","caption":"FileSizeSmallerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckDirectory_String_FileSizeSmallerThan","format":null},"18":{"settings":{"visibility":"visible"},"description":"Will add the count of folders on top of the file count, allowing to include it within the threshold check.","caption":"CountFolderAsFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckDirectory_Switchparameter_CountFolderAsFile","format":null},"29":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"29","varname":"IcingaCheckDirectory_Switchparameter_NoPerfData","format":null},"23":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been created 20 days ago are considered within the check.","caption":"CreationTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckDirectory_String_CreationTimeEqual","format":null},"19":{"settings":{"visibility":"visible"},"description":"Allows to add the file list to the plugin output. Beware that this will cause your database to grow and\nperformance might be slower on huge directories!","caption":"ShowFileList","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckDirectory_Switchparameter_ShowFileList","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a path.\ne.g. \u0027C:\\Users\\Icinga\\Downloads\u0027","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckDirectory_String_Path","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckDirectory_String_ThresholdInterval","format":null},"26":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20MB\", which translates to the filze size 20 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 20 MB or larger are considered within the check.","caption":"FileSizeGreaterThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckDirectory_String_FileSizeGreaterThan","format":null},"14":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckDirectory_Object_WarningLargestFile","format":null},"22":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date older then 20 days are considered within the check.","caption":"ChangeOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckDirectory_String_ChangeOlderThan","format":null},"28":{"settings":{"datalist":"IcingaCheckDirectory Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"28","varname":"IcingaCheckDirectory_Int32_Verbosity","format":null},"25":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date younger then 20 days are considered within the check.","caption":"CreationYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckDirectory_String_CreationYoungerThan","format":null},"9":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckDirectory_Object_Warning","format":null},"15":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckDirectory_Object_CriticalLargestFile","format":null},"21":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date younger then 20 days are considered within the check.","caption":"ChangeYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckDirectory_String_ChangeYoungerThan","format":null},"24":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date older then 20 days are considered within the check.","caption":"CreationOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckDirectory_String_CreationOlderThan","format":null},"16":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckDirectory_Object_WarningAverageFile","format":null},"8":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckDirectory_Object_Critical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify an array of filenames or expressions to match against results to filter for specific files.\n\ne.g \u0027*.txt\u0027, \u0027*.sql\u0027, finds all files ending with .txt and .sql","caption":"FileNames","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckDirectory_Array_FileNames","format":null}}} diff --git a/config/director/Invoke-IcingaCheckDiskHealth.json b/config/director/Invoke-IcingaCheckDiskHealth.json index 2107ebc2..7b8a3b8f 100644 --- a/config/director/Invoke-IcingaCheckDiskHealth.json +++ b/config/director/Invoke-IcingaCheckDiskHealth.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckDiskHealth Verbosity":{"list_name":"IcingaCheckDiskHealth Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckDiskHealth":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDiskHealth","arguments":{"-DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$","order":"14"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckDiskHealth\u0027 ","order":"0"},"-DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ExcludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$","order":"12"},"-IncludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$","order":"13"},"-DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$","order":"10"},"-IncludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$","order":"21"},"-DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$","order":"9"},"-IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$","set_if_format":"string","order":"99"},"-DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$","order":"20"},"-DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$","order":"17"},"-DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$","order":"18"},"-DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$","order":"22"},"-Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$","order":"24"},"-DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$","order":"6"},"-ExcludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$","order":"7"},"-CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$","set_if_format":"string","order":"99"},"-DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$","order":"15"},"-DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$","order":"23"},"-IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$","set_if_format":"string","order":"99"},"-DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$","order":"8"},"-DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$","order":"11"},"-DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$","order":"19"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDiskHealth_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$"},"DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$"},"CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$"},"Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$"},"DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$"},"IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$"},"DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$"},"DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$"},"ExcludeDisk":{"value":"$IcingaCheckDiskHealth_Array_ExcludeDisk$"},"IncludeDisk":{"value":"$IcingaCheckDiskHealth_Array_IncludeDisk$"},"DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$"},"DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$"},"DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$"},"DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$"},"DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$"},"ExcludePartition":{"value":"$IcingaCheckDiskHealth_Array_ExcludePartition$"},"IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$"},"DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$"},"DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$"},"DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$"},"DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$"},"DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$"},"DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$"},"ThresholdInterval":{"value":"$IcingaCheckDiskHealth_String_ThresholdInterval$"},"DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$"},"DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$"},"IncludePartition":{"value":"$IcingaCheckDiskHealth_Array_IncludePartition$"},"DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$"}},"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly":false,"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks":false,"ifw_api_command":"Invoke-IcingaCheckDiskHealth","IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecWarning","format":null},"7":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to include for checks. Example C:, D:","caption":"IncludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckDiskHealth_Array_IncludePartition","format":null},"20":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecCritical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckDiskHealth_Object_DiskReadSecCritical","format":null},"17":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecWarning","format":null},"13":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenWarning","format":null},"27":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Offline` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreOfflineDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"27","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks","format":null},"30":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"30","varname":"IcingaCheckDiskHealth_Switchparameter_NoPerfData","format":null},"18":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecCritical","format":null},"29":{"settings":{"visibility":"visible"},"description":"Set this to include only disks that have drive letters like C:, D:, ..., assigned to them. Can be combined with include/exclude filters","caption":"CheckLogicalOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"29","varname":"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly","format":null},"23":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning","format":null},"19":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to include for checks. Example 0, 1","caption":"IncludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckDiskHealth_Array_IncludeDisk","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckDiskHealth_String_ThresholdInterval","format":null},"26":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical","format":null},"14":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenCritical","format":null},"22":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical","format":null},"28":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Read Only` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreReadOnlyDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"28","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks","format":null},"25":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckDiskHealth_Object_DiskReadSecWarning","format":null},"15":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning","format":null},"21":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning","format":null},"24":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical","format":null},"16":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical","format":null},"8":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to exclude from checks. Example C:, D:","caption":"ExcludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckDiskHealth_Array_ExcludePartition","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to exclude from checks. Example 0, 1","caption":"ExcludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckDiskHealth_Array_ExcludeDisk","format":null},"31":{"settings":{"datalist":"IcingaCheckDiskHealth Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"31","varname":"IcingaCheckDiskHealth_Int32_Verbosity","format":null}}} +{"DataList":{"IcingaCheckDiskHealth Verbosity":{"list_name":"IcingaCheckDiskHealth Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckDiskHealth":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDiskHealth","arguments":{"-DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$","order":"14"},"-DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ExcludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IncludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$","order":"13"},"-DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$","order":"10"},"-IncludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$","order":"21"},"-DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$","order":"9"},"-DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$","order":"12"},"-DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$","order":"20"},"-DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$","order":"17"},"-DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$","order":"18"},"-DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$","order":"22"},"-Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$","order":"24"},"-DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$","order":"6"},"-ExcludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$","order":"7"},"-CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$","set_if_format":"string","order":"99"},"-DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$","order":"15"},"-DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$","order":"23"},"-IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$","set_if_format":"string","order":"99"},"-DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$","order":"8"},"-DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$","order":"11"},"-DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$","order":"19"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDiskHealth_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$"},"DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$"},"CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$"},"Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$"},"DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$"},"IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$"},"DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$"},"DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$"},"ExcludeDisk":{"value":"$IcingaCheckDiskHealth_Array_ExcludeDisk$"},"IncludeDisk":{"value":"$IcingaCheckDiskHealth_Array_IncludeDisk$"},"DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$"},"DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$"},"DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$"},"DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$"},"DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$"},"ExcludePartition":{"value":"$IcingaCheckDiskHealth_Array_ExcludePartition$"},"IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$"},"DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$"},"DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$"},"DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$"},"DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$"},"DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$"},"DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$"},"ThresholdInterval":{"value":"$IcingaCheckDiskHealth_String_ThresholdInterval$"},"DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$"},"DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$"},"IncludePartition":{"value":"$IcingaCheckDiskHealth_Array_IncludePartition$"},"DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$"}},"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly":false,"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks":false,"ifw_api_command":"Invoke-IcingaCheckDiskHealth","IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecWarning","format":null},"7":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to include for checks. Example C:, D:","caption":"IncludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckDiskHealth_Array_IncludePartition","format":null},"20":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecCritical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckDiskHealth_Object_DiskReadSecCritical","format":null},"17":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecWarning","format":null},"13":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenWarning","format":null},"27":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Offline` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreOfflineDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"27","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks","format":null},"30":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"30","varname":"IcingaCheckDiskHealth_Switchparameter_NoPerfData","format":null},"18":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecCritical","format":null},"29":{"settings":{"visibility":"visible"},"description":"Set this to include only disks that have drive letters like C:, D:, ..., assigned to them. Can be combined with include/exclude filters","caption":"CheckLogicalOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"29","varname":"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly","format":null},"23":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning","format":null},"19":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to include for checks. Example 0, 1","caption":"IncludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckDiskHealth_Array_IncludeDisk","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckDiskHealth_String_ThresholdInterval","format":null},"26":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical","format":null},"14":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenCritical","format":null},"22":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical","format":null},"28":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Read Only` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreReadOnlyDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"28","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks","format":null},"25":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckDiskHealth_Object_DiskReadSecWarning","format":null},"15":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning","format":null},"21":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning","format":null},"24":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical","format":null},"16":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical","format":null},"8":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to exclude from checks. Example C:, D:","caption":"ExcludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckDiskHealth_Array_ExcludePartition","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to exclude from checks. Example 0, 1","caption":"ExcludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckDiskHealth_Array_ExcludeDisk","format":null},"31":{"settings":{"datalist":"IcingaCheckDiskHealth Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"31","varname":"IcingaCheckDiskHealth_Int32_Verbosity","format":null}}} diff --git a/config/director/Invoke-IcingaCheckEventlog.json b/config/director/Invoke-IcingaCheckEventlog.json index 8e65986f..167b84a8 100644 --- a/config/director/Invoke-IcingaCheckEventlog.json +++ b/config/director/Invoke-IcingaCheckEventlog.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckEventlog IncludeEntryType":{"list_name":"IcingaCheckEventlog IncludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog Verbosity":{"list_name":"IcingaCheckEventlog Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog ExcludeEntryType":{"list_name":"IcingaCheckEventlog ExcludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckEventlog":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckEventlog","arguments":{"-Before":{"value":"$IcingaCheckEventlog_Object_Before$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IncludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-After":{"value":"$IcingaCheckEventlog_Object_After$","order":"15"},"-IncludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-LogName":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckEventlog\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ExcludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-ExcludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ExcludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-IncludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$","order":"17"},"-Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$","order":"18"},"-ExcludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckEventlog_Object_Critical$","order":"3"},"-DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckEventlog_Object_Warning$","order":"2"},"-IncludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-ExcludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"12"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckEventlog_Switchparameter_DisableTimeCache":false,"ifw_api_arguments":{"IncludeEventId":{"value":"$IcingaCheckEventlog_Array_IncludeEventId$"},"DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$"},"ThresholdInterval":{"value":"$IcingaCheckEventlog_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$"},"ExcludeEventId":{"value":"$IcingaCheckEventlog_Array_ExcludeEventId$"},"Before":{"value":"$IcingaCheckEventlog_Object_Before$"},"IncludeEntryType":{"value":"$IcingaCheckEventlog_Array_IncludeEntryType$"},"LogName":{"value":"$IcingaCheckEventlog_String_LogName$"},"ExcludeEntryType":{"value":"$IcingaCheckEventlog_Array_ExcludeEntryType$"},"IncludeSource":{"value":"$IcingaCheckEventlog_Array_IncludeSource$"},"Warning":{"value":"$IcingaCheckEventlog_Object_Warning$"},"MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$"},"Critical":{"value":"$IcingaCheckEventlog_Object_Critical$"},"ExcludeUsername":{"value":"$IcingaCheckEventlog_Array_ExcludeUsername$"},"After":{"value":"$IcingaCheckEventlog_Object_After$"},"IncludeUsername":{"value":"$IcingaCheckEventlog_Array_IncludeUsername$"},"ExcludeSource":{"value":"$IcingaCheckEventlog_Array_ExcludeSource$"},"IncludeMessage":{"value":"$IcingaCheckEventlog_Array_IncludeMessage$"},"ExcludeMessage":{"value":"$IcingaCheckEventlog_Array_ExcludeMessage$"},"Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckEventlog","IcingaCheckEventlog_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be included.","caption":"IncludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckEventlog_Array_IncludeSource","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a certain log.","caption":"LogName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckEventlog_String_LogName","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckEventlog_Object_Warning","format":null},"21":{"settings":{"visibility":"visible"},"description":"Switch to disable the time cache on a check. If this parameter is set the time cache is disabled.\nAfter the check has been run once, the next check instance will filter through the eventlog from the point the last check ended.\nThis is due to the time cache, when disabled the whole eventlog is checked instead.","caption":"DisableTimeCache","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckEventlog_Switchparameter_DisableTimeCache","format":null},"18":{"settings":{"visibility":"visible"},"description":"Used to specify time data of which point the plugin should start to read event logs from.\nYou can either use a fixed date and time like \"2021/01/30 12:00:00\", a fixed day \"2021/01/30\" or use more dynamic approaches like \"1d\", \"10h\" and so on.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"After","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckEventlog_Object_After","format":null},"12":{"settings":{"datalist":"IcingaCheckEventlog IncludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be included. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"IncludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"12","varname":"IcingaCheckEventlog_Array_IncludeEntryType","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be included.","caption":"IncludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckEventlog_Array_IncludeUsername","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckEventlog_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be included.","caption":"IncludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckEventlog_Array_IncludeEventId","format":null},"17":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be excluded.","caption":"ExcludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"17","varname":"IcingaCheckEventlog_Array_ExcludeSource","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be excluded.","caption":"ExcludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckEventlog_Array_ExcludeUsername","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be excluded.","caption":"ExcludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckEventlog_Array_ExcludeEventId","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be included.","caption":"IncludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckEventlog_Array_IncludeMessage","format":null},"20":{"settings":{"visibility":"visible"},"description":"Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact\nShould match the average amount of log files written for the intended time range filtered","caption":"MaxEntries","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"20","varname":"IcingaCheckEventlog_Int32_MaxEntries","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be excluded.","caption":"ExcludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckEventlog_Array_ExcludeMessage","format":null},"23":{"settings":{"datalist":"IcingaCheckEventlog Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckEventlog_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckEventlog_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckEventlog_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"Used to specify time data of which point the plugin should stop considering event logs.\nYou can either use a fixed date and time like \"2021/01/30 12:00:00\", a fixed day \"2021/01/30\" or use more dynamic approaches like \"1d\", \"10h\" and so on.\n\nBy using \"2h\" for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back\nfurther in time with the `-After` argument than the `-Before` argument.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Before","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckEventlog_Object_Before","format":null},"13":{"settings":{"datalist":"IcingaCheckEventlog ExcludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be excluded. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"ExcludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckEventlog_Array_ExcludeEntryType","format":null}}} +{"DataList":{"IcingaCheckEventlog IncludeEntryType":{"list_name":"IcingaCheckEventlog IncludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog Verbosity":{"list_name":"IcingaCheckEventlog Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog ExcludeEntryType":{"list_name":"IcingaCheckEventlog ExcludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckEventlog":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckEventlog","arguments":{"-Before":{"value":"$IcingaCheckEventlog_Object_Before$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IncludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-After":{"value":"$IcingaCheckEventlog_Object_After$","order":"15"},"-IncludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-LogName":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ExcludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-ExcludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ExcludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-IncludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$","order":"17"},"-Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$","order":"18"},"-ExcludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckEventlog_Object_Critical$","order":"3"},"-DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckEventlog_Object_Warning$","order":"2"},"-IncludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-ExcludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"12"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckEventlog_Switchparameter_DisableTimeCache":false,"ifw_api_arguments":{"IncludeEventId":{"value":"$IcingaCheckEventlog_Array_IncludeEventId$"},"DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$"},"ThresholdInterval":{"value":"$IcingaCheckEventlog_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$"},"ExcludeEventId":{"value":"$IcingaCheckEventlog_Array_ExcludeEventId$"},"Before":{"value":"$IcingaCheckEventlog_Object_Before$"},"IncludeEntryType":{"value":"$IcingaCheckEventlog_Array_IncludeEntryType$"},"LogName":{"value":"$IcingaCheckEventlog_String_LogName$"},"ExcludeEntryType":{"value":"$IcingaCheckEventlog_Array_ExcludeEntryType$"},"IncludeSource":{"value":"$IcingaCheckEventlog_Array_IncludeSource$"},"Warning":{"value":"$IcingaCheckEventlog_Object_Warning$"},"MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$"},"Critical":{"value":"$IcingaCheckEventlog_Object_Critical$"},"ExcludeUsername":{"value":"$IcingaCheckEventlog_Array_ExcludeUsername$"},"After":{"value":"$IcingaCheckEventlog_Object_After$"},"IncludeUsername":{"value":"$IcingaCheckEventlog_Array_IncludeUsername$"},"ExcludeSource":{"value":"$IcingaCheckEventlog_Array_ExcludeSource$"},"IncludeMessage":{"value":"$IcingaCheckEventlog_Array_IncludeMessage$"},"ExcludeMessage":{"value":"$IcingaCheckEventlog_Array_ExcludeMessage$"},"Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckEventlog","IcingaCheckEventlog_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be included.","caption":"IncludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckEventlog_Array_IncludeSource","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a certain log.","caption":"LogName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckEventlog_String_LogName","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckEventlog_Object_Warning","format":null},"21":{"settings":{"visibility":"visible"},"description":"Switch to disable the time cache on a check. If this parameter is set the time cache is disabled.\nAfter the check has been run once, the next check instance will filter through the eventlog from the point the last check ended.\nThis is due to the time cache, when disabled the whole eventlog is checked instead.","caption":"DisableTimeCache","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckEventlog_Switchparameter_DisableTimeCache","format":null},"18":{"settings":{"visibility":"visible"},"description":"Defines the starting point on which timeframe the plugin will start to read event log information.\nUsing 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours.\nFor thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:\n\n\"2024/01/01 12:00:00\": Will start reading eventlogs after the 1st January 2024 12:00 CET\n\"2024/01/15\": Will start reading eventlogs after the 15th January 2024 00:00 CET\n\"4h\": Will read the past 4 hours\n\"1d\": Will read the past day (24 hours)\n\nAllowed units for time metrics: ms, s, m, h, d, w, M, y\n\nExample\n``` Start of EventLog Plugin Execution\nv After 4h v\n|--------------------|-----------------|\n10:00 12:00 16:00\n| Not fetched | Fetched |```","caption":"After","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckEventlog_Object_After","format":null},"12":{"settings":{"datalist":"IcingaCheckEventlog IncludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be included. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"IncludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"12","varname":"IcingaCheckEventlog_Array_IncludeEntryType","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be included.","caption":"IncludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckEventlog_Array_IncludeUsername","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckEventlog_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be included.","caption":"IncludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckEventlog_Array_IncludeEventId","format":null},"17":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be excluded.","caption":"ExcludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"17","varname":"IcingaCheckEventlog_Array_ExcludeSource","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be excluded.","caption":"ExcludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckEventlog_Array_ExcludeUsername","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be excluded.","caption":"ExcludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckEventlog_Array_ExcludeEventId","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be included.","caption":"IncludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckEventlog_Array_IncludeMessage","format":null},"20":{"settings":{"visibility":"visible"},"description":"Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact\nShould match the average amount of log files written for the intended time range filtered","caption":"MaxEntries","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"20","varname":"IcingaCheckEventlog_Int32_MaxEntries","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be excluded.","caption":"ExcludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckEventlog_Array_ExcludeMessage","format":null},"23":{"settings":{"datalist":"IcingaCheckEventlog Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckEventlog_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckEventlog_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckEventlog_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"Defines the end point on which timeframe the plugin will stop to read event log information.\nUsing 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be\nused in combination with the \"-After\" argument. As example, you could provide \"-After 6h\" to start reading all eventlogs from the past\n6 hours, and use \"-Before 2h\" to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours\nhave been ignored.\nFor thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:\n\n\"2024/01/01 12:00:00\": Will stop reading eventlogs after the 1st January 2024 12:00 CET\n\"2024/01/15\": Will stop reading eventlogs after the 15th January 2024 00:00 CET\n\"4h\": Will ignore eventlogs of the past 4 hours\n\"1d\": Will ignore eventlogs of the past day (24 hours)\n\nAllowed units for time metrics: ms, s, m, h, d, w, M, y\n\nExample\n``` Start of EventLog Plugin Execution\nv After 6h Before 2h v\n|-------------|------------------|------|\n8:00 10:00 14:00 16:00\n| Not fetched | Fetched | Not fetchhed```","caption":"Before","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckEventlog_Object_Before","format":null},"13":{"settings":{"datalist":"IcingaCheckEventlog ExcludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be excluded. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"ExcludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckEventlog_Array_ExcludeEntryType","format":null}}} diff --git a/config/director/Invoke-IcingaCheckFirewall.json b/config/director/Invoke-IcingaCheckFirewall.json index bd11f729..0da728a7 100644 --- a/config/director/Invoke-IcingaCheckFirewall.json +++ b/config/director/Invoke-IcingaCheckFirewall.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckFirewall Verbosity":{"list_name":"IcingaCheckFirewall Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckFirewall":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckFirewall","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckFirewall\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$","order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Profile":{"value":{"body":"var arr = macro(\"$IcingaCheckFirewall_Array_Profile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckFirewall_Array_Profile$"},"Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckFirewall_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$"},"Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$"}},"ifw_api_command":"Invoke-IcingaCheckFirewall","IcingaCheckFirewall_Switchparameter_Enabled":false,"IcingaCheckFirewall_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckFirewall_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckFirewall_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify whether the firewall profiles should be enabled or disabled.\n\n-Enabled $TRUE translates to enabled, while not being specified translates to disabled.","caption":"Enabled","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"6","varname":"IcingaCheckFirewall_Switchparameter_Enabled","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of profiles to check. Available profiles are \u0027Domain\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckFirewall_Array_Profile","format":null},"8":{"settings":{"datalist":"IcingaCheckFirewall Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckFirewall_Int32_Verbosity","format":null}}} +{"DataList":{"IcingaCheckFirewall Verbosity":{"list_name":"IcingaCheckFirewall Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckFirewall":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckFirewall","arguments":{"-Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$","order":"3"},"-Profile":{"value":{"body":"var arr = macro(\"$IcingaCheckFirewall_Array_Profile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckFirewall_Array_Profile$"},"Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckFirewall_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$"},"Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$"}},"ifw_api_command":"Invoke-IcingaCheckFirewall","IcingaCheckFirewall_Switchparameter_Enabled":false,"IcingaCheckFirewall_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckFirewall_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckFirewall_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify whether the firewall profiles should be enabled or disabled.\n\n-Enabled $TRUE translates to enabled, while not being specified translates to disabled.","caption":"Enabled","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"6","varname":"IcingaCheckFirewall_Switchparameter_Enabled","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of profiles to check. Available profiles are \u0027Domain\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckFirewall_Array_Profile","format":null},"8":{"settings":{"datalist":"IcingaCheckFirewall Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckFirewall_Int32_Verbosity","format":null}}} diff --git a/config/director/Invoke-IcingaCheckHTTPStatus.json b/config/director/Invoke-IcingaCheckHTTPStatus.json index 842cda43..02464194 100644 --- a/config/director/Invoke-IcingaCheckHTTPStatus.json +++ b/config/director/Invoke-IcingaCheckHTTPStatus.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckHTTPStatus Verbosity":{"list_name":"IcingaCheckHTTPStatus Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckHTTPStatus":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHTTPStatus","arguments":{"-StatusCode":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_StatusCode$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$","order":"16"},"-Content":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Content$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-ProxyUsername":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$","set_if_format":"string","order":"99"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckHTTPStatus\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_Password$\u0027)","order":"9"},"-Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$","order":"2"},"-ProxyServer":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-ProxyPassword":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_ProxyPassword$\u0027)","order":"11"},"-Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$","order":"15"},"-VHost":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$","order":"3"},"-Headers":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Headers$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$","order":"7"},"-Url":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Url$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHTTPStatus_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Url":{"value":"$IcingaCheckHTTPStatus_Array_Url$"},"Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$"},"Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHTTPStatus_String_Username$"},"Password":{"value":"$IcingaCheckHTTPStatus_Securestring_Password$"},"Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$"},"ThresholdInterval":{"value":"$IcingaCheckHTTPStatus_String_ThresholdInterval$"},"VHost":{"value":"$IcingaCheckHTTPStatus_String_VHost$"},"Content":{"value":"$IcingaCheckHTTPStatus_Array_Content$"},"AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$"},"ProxyUsername":{"value":"$IcingaCheckHTTPStatus_String_ProxyUsername$"},"Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$"},"Headers":{"value":"$IcingaCheckHTTPStatus_Array_Headers$"},"Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$"},"StatusCode":{"value":"$IcingaCheckHTTPStatus_Array_StatusCode$"},"NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$"},"ProxyServer":{"value":"$IcingaCheckHTTPStatus_String_ProxyServer$"},"ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$"},"Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$"},"ProxyPassword":{"value":"$IcingaCheckHTTPStatus_Securestring_ProxyPassword$"}},"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent":false,"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit":false,"ifw_api_command":"Invoke-IcingaCheckHTTPStatus","IcingaCheckHTTPStatus_Switchparameter_Negate":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of regex-match-strings to match against the content of the webrequest response.","caption":"Content","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckHTTPStatus_Array_Content","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify the URL of the host to check http as string. Use \u0027http://\u0027 or \u0027https://\u0027 to actively chose a protocol. Likewise \u0027:80\u0027 or any other port number to specify a port, etc.","caption":"Url","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckHTTPStatus_Array_Url","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time warning threshold in seconds, everything past that threshold is considered a WARNING.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckHTTPStatus_Object_Warning","format":null},"21":{"settings":{"visibility":"visible"},"description":"By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this\nflag, the result will be modified from UNKNOWN to CRITICAL","caption":"ConnectionErrAsCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit","format":null},"18":{"settings":{"visibility":"visible"},"description":null,"caption":"Minimum","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"18","varname":"IcingaCheckHTTPStatus_Int32_Minimum","format":null},"12":{"settings":{"visibility":"hidden"},"description":"Used to specify a password as securestring to authenticate with. Authentication is only possible with \u0027https://\u0027.Use with: -Username","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckHTTPStatus_Securestring_Password","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify the timeout in seconds of the webrequest as integer. The default is 10 for 10 seconds.","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckHTTPStatus_Int32_Timeout","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckHTTPStatus_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a VHost as string.","caption":"VHost","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHTTPStatus_String_VHost","format":null},"17":{"settings":{"visibility":"visible"},"description":null,"caption":"StatusCode","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"17","varname":"IcingaCheckHTTPStatus_Array_StatusCode","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify a username as string to authenticate with. Authentication is only possible with \u0027https://\u0027. Use with: -Password","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckHTTPStatus_String_Username","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify headers as Array. Like: -Headers \u0027Accept:application/json\u0027","caption":"Headers","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckHTTPStatus_Array_Headers","format":null},"14":{"settings":{"visibility":"hidden"},"description":"Used to specify a proxy password as securestring to authenticate with. Use with: -ProxyUsername \u0026 -ProxyServer","caption":"ProxyPassword","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckHTTPStatus_Securestring_ProxyPassword","format":null},"20":{"settings":{"visibility":"visible"},"description":"Adds the returned content of a website to the plugin output for debugging purpose","caption":"AddOutputContent","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"20","varname":"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy server as string to authenticate with.","caption":"ProxyServer","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckHTTPStatus_String_ProxyServer","format":null},"23":{"settings":{"datalist":"IcingaCheckHTTPStatus Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckHTTPStatus_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time critical threshold in seconds, everything past that threshold is considered a CRITICAL.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHTTPStatus_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckHTTPStatus_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"A switch used to invert check results.","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckHTTPStatus_Switchparameter_Negate","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy username as string to authenticate with. Use with: -ProxyPassword \u0026 -ProxyServer","caption":"ProxyUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckHTTPStatus_String_ProxyUsername","format":null}}} +{"DataList":{"IcingaCheckHTTPStatus Verbosity":{"list_name":"IcingaCheckHTTPStatus Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckHTTPStatus":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHTTPStatus","arguments":{"-StatusCode":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_StatusCode$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$","order":"16"},"-Content":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Content$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-ProxyUsername":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_Password$\u0027)","order":"9"},"-Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$","order":"2"},"-ProxyServer":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-ProxyPassword":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_ProxyPassword$\u0027)","order":"11"},"-Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$","order":"15"},"-VHost":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$","order":"3"},"-Headers":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Headers$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$","order":"7"},"-Url":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Url$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHTTPStatus_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Url":{"value":"$IcingaCheckHTTPStatus_Array_Url$"},"Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$"},"Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHTTPStatus_String_Username$"},"Password":{"value":"$IcingaCheckHTTPStatus_Securestring_Password$"},"Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$"},"ThresholdInterval":{"value":"$IcingaCheckHTTPStatus_String_ThresholdInterval$"},"VHost":{"value":"$IcingaCheckHTTPStatus_String_VHost$"},"Content":{"value":"$IcingaCheckHTTPStatus_Array_Content$"},"AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$"},"ProxyUsername":{"value":"$IcingaCheckHTTPStatus_String_ProxyUsername$"},"Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$"},"Headers":{"value":"$IcingaCheckHTTPStatus_Array_Headers$"},"Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$"},"StatusCode":{"value":"$IcingaCheckHTTPStatus_Array_StatusCode$"},"NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$"},"ProxyServer":{"value":"$IcingaCheckHTTPStatus_String_ProxyServer$"},"ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$"},"Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$"},"ProxyPassword":{"value":"$IcingaCheckHTTPStatus_Securestring_ProxyPassword$"}},"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent":false,"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit":false,"ifw_api_command":"Invoke-IcingaCheckHTTPStatus","IcingaCheckHTTPStatus_Switchparameter_Negate":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of regex-match-strings to match against the content of the webrequest response.","caption":"Content","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckHTTPStatus_Array_Content","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify the URL of the host to check http as string. Use \u0027http://\u0027 or \u0027https://\u0027 to actively chose a protocol. Likewise \u0027:80\u0027 or any other port number to specify a port, etc.","caption":"Url","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckHTTPStatus_Array_Url","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time warning threshold in seconds, everything past that threshold is considered a WARNING.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckHTTPStatus_Object_Warning","format":null},"21":{"settings":{"visibility":"visible"},"description":"By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this\nflag, the result will be modified from UNKNOWN to CRITICAL","caption":"ConnectionErrAsCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit","format":null},"18":{"settings":{"visibility":"visible"},"description":null,"caption":"Minimum","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"18","varname":"IcingaCheckHTTPStatus_Int32_Minimum","format":null},"12":{"settings":{"visibility":"hidden"},"description":"Used to specify a password as securestring to authenticate with. Authentication is only possible with \u0027https://\u0027.Use with: -Username","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckHTTPStatus_Securestring_Password","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify the timeout in seconds of the webrequest as integer. The default is 10 for 10 seconds.","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckHTTPStatus_Int32_Timeout","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckHTTPStatus_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a VHost as string.","caption":"VHost","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHTTPStatus_String_VHost","format":null},"17":{"settings":{"visibility":"visible"},"description":null,"caption":"StatusCode","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"17","varname":"IcingaCheckHTTPStatus_Array_StatusCode","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify a username as string to authenticate with. Authentication is only possible with \u0027https://\u0027. Use with: -Password","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckHTTPStatus_String_Username","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify headers as Array. Like: -Headers \u0027Accept:application/json\u0027","caption":"Headers","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckHTTPStatus_Array_Headers","format":null},"14":{"settings":{"visibility":"hidden"},"description":"Used to specify a proxy password as securestring to authenticate with. Use with: -ProxyUsername \u0026 -ProxyServer","caption":"ProxyPassword","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckHTTPStatus_Securestring_ProxyPassword","format":null},"20":{"settings":{"visibility":"visible"},"description":"Adds the returned content of a website to the plugin output for debugging purpose","caption":"AddOutputContent","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"20","varname":"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy server as string to authenticate with.","caption":"ProxyServer","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckHTTPStatus_String_ProxyServer","format":null},"23":{"settings":{"datalist":"IcingaCheckHTTPStatus Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckHTTPStatus_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time critical threshold in seconds, everything past that threshold is considered a CRITICAL.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHTTPStatus_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckHTTPStatus_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"A switch used to invert check results.","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckHTTPStatus_Switchparameter_Negate","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy username as string to authenticate with. Use with: -ProxyPassword \u0026 -ProxyServer","caption":"ProxyUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckHTTPStatus_String_ProxyUsername","format":null}}} diff --git a/config/director/Invoke-IcingaCheckHttpJsonResponse.json b/config/director/Invoke-IcingaCheckHttpJsonResponse.json index cb3e4c88..705a947d 100644 --- a/config/director/Invoke-IcingaCheckHttpJsonResponse.json +++ b/config/director/Invoke-IcingaCheckHttpJsonResponse.json @@ -1 +1 @@ -{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse Verbosity":{"list_name":"IcingaCheckHttpJsonResponse Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse StatusOnRequestError":{"list_name":"IcingaCheckHttpJsonResponse StatusOnRequestError","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Critical","entry_name":"Critical","format":"string"},{"allowed_roles":null,"entry_value":"OK","entry_name":"OK","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckHttpJsonResponse":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHttpJsonResponse","arguments":{"-ServerPath":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$","order":"13"},"-StatusOnRequestError":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHttpJsonResponse_Securestring_Password$\u0027)","order":"6"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-ValuePaths":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValuePaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ValueTypes":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValueTypes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckHttpJsonResponse\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ServerUri":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Critical$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$","set_if_format":"string","order":"99"},"-Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$","order":"7"},"-Warning":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Warning$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-QueryParameter":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults":false,"ifw_api_arguments":{"QueryParameter":{"value":"$IcingaCheckHttpJsonResponse_String_QueryParameter$"},"Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHttpJsonResponse_String_Username$"},"Password":{"value":"$IcingaCheckHttpJsonResponse_Securestring_Password$"},"ValueTypes":{"value":"$IcingaCheckHttpJsonResponse_Array_ValueTypes$"},"ThresholdInterval":{"value":"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"},"IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$"},"ServerPath":{"value":"$IcingaCheckHttpJsonResponse_String_ServerPath$"},"NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$"},"Warning":{"value":"$IcingaCheckHttpJsonResponse_Array_Warning$"},"Critical":{"value":"$IcingaCheckHttpJsonResponse_Array_Critical$"},"ValuePaths":{"value":"$IcingaCheckHttpJsonResponse_Array_ValuePaths$"},"StatusOnRequestError":{"value":"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$"},"NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$"},"Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$"},"ServerUri":{"value":"$IcingaCheckHttpJsonResponse_String_ServerUri$"}},"ifw_api_command":"Invoke-IcingaCheckHttpJsonResponse","IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL":false,"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"datalist":"IcingaCheckHttpJsonResponse StatusOnRequestError","behavior":"strict","data_type":"string"},"description":"Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown\nSee https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values","caption":"StatusOnRequestError","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"16","varname":"IcingaCheckHttpJsonResponse_String_StatusOnRequestError","format":null},"7":{"settings":{"visibility":"visible"},"description":"Query parameter for the request without ?, example \"command=example\"","caption":"QueryParameter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckHttpJsonResponse_String_QueryParameter","format":null},"5":{"settings":{"visibility":"visible"},"description":"Base URI of the server, example \"https://example.comm\"","caption":"ServerUri","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckHttpJsonResponse_String_ServerUri","format":null},"18":{"settings":{"datalist":"IcingaCheckHttpJsonResponse Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckHttpJsonResponse_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Value types of each parameter. Supported Types: Numeric, Boolean, DateTime, String Example: \"myAlias01:Numeric\",\"myAlias02:DateTime\"","caption":"ValueTypes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckHttpJsonResponse_Array_ValueTypes","format":null},"10":{"settings":{"visibility":"visible"},"description":"Timeout in seconds before the http request is aborted. Defaults to 30","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckHttpJsonResponse_Int32_Timeout","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Credentials to use for basic auth","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHttpJsonResponse_String_Username","format":null},"17":{"settings":{"visibility":"visible"},"description":"Negate the conditions set for string parameters. When this is set to true, WarnIfLike/CritIfLike is used instead of WarnIfNotLike/CritIfNotLike for Strings","caption":"NegateStringResults","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults","format":null},"11":{"settings":{"visibility":"visible"},"description":"paths to look for values in the JSON object that is checked, including an alias for each parameter. Example: \"myAlias01:value01\",\"myAlias02:nested.object.value02\", \"myAlias03:\u0027object\u0027.\u0027my.Par.With.Dots\u0027\"","caption":"ValuePaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckHttpJsonResponse_Array_ValuePaths","format":null},"9":{"settings":{"visibility":"hidden"},"description":"Credentials to use for basic auth","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckHttpJsonResponse_Securestring_Password","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckHttpJsonResponse_Array_Critical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Disables SSL verification and allows the connection to endpoints with self-signed certificates as example","caption":"IgnoreSSL","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"15","varname":"IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL","format":null},"6":{"settings":{"visibility":"visible"},"description":"Path for the request, example \"/v1/my_endpoint\"","caption":"ServerPath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHttpJsonResponse_String_ServerPath","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckHttpJsonResponse_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData","format":null},"13":{"settings":{"visibility":"visible"},"description":"Warning thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"13","varname":"IcingaCheckHttpJsonResponse_Array_Warning","format":null}}} +{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse Verbosity":{"list_name":"IcingaCheckHttpJsonResponse Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse StatusOnRequestError":{"list_name":"IcingaCheckHttpJsonResponse StatusOnRequestError","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Critical","entry_name":"Critical","format":"string"},{"allowed_roles":null,"entry_value":"OK","entry_name":"OK","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckHttpJsonResponse":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHttpJsonResponse","arguments":{"-ServerPath":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$","order":"13"},"-StatusOnRequestError":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHttpJsonResponse_Securestring_Password$\u0027)","order":"6"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-ValuePaths":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValuePaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ValueTypes":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValueTypes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ServerUri":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Critical$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$","set_if_format":"string","order":"99"},"-Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$","order":"7"},"-Warning":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Warning$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-QueryParameter":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults":false,"ifw_api_arguments":{"QueryParameter":{"value":"$IcingaCheckHttpJsonResponse_String_QueryParameter$"},"Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHttpJsonResponse_String_Username$"},"Password":{"value":"$IcingaCheckHttpJsonResponse_Securestring_Password$"},"ValueTypes":{"value":"$IcingaCheckHttpJsonResponse_Array_ValueTypes$"},"ThresholdInterval":{"value":"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"},"IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$"},"ServerPath":{"value":"$IcingaCheckHttpJsonResponse_String_ServerPath$"},"NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$"},"Warning":{"value":"$IcingaCheckHttpJsonResponse_Array_Warning$"},"Critical":{"value":"$IcingaCheckHttpJsonResponse_Array_Critical$"},"ValuePaths":{"value":"$IcingaCheckHttpJsonResponse_Array_ValuePaths$"},"StatusOnRequestError":{"value":"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$"},"NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$"},"Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$"},"ServerUri":{"value":"$IcingaCheckHttpJsonResponse_String_ServerUri$"}},"ifw_api_command":"Invoke-IcingaCheckHttpJsonResponse","IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL":false,"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"datalist":"IcingaCheckHttpJsonResponse StatusOnRequestError","behavior":"strict","data_type":"string"},"description":"Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown\nSee https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values","caption":"StatusOnRequestError","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"16","varname":"IcingaCheckHttpJsonResponse_String_StatusOnRequestError","format":null},"7":{"settings":{"visibility":"visible"},"description":"Query parameter for the request without ?, example \"command=example\"","caption":"QueryParameter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckHttpJsonResponse_String_QueryParameter","format":null},"5":{"settings":{"visibility":"visible"},"description":"Base URI of the server, example \"https://example.comm\"","caption":"ServerUri","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckHttpJsonResponse_String_ServerUri","format":null},"18":{"settings":{"datalist":"IcingaCheckHttpJsonResponse Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckHttpJsonResponse_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Value types of each parameter. Supported Types: Numeric, Boolean, DateTime, String Example: \"myAlias01:Numeric\",\"myAlias02:DateTime\"","caption":"ValueTypes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckHttpJsonResponse_Array_ValueTypes","format":null},"10":{"settings":{"visibility":"visible"},"description":"Timeout in seconds before the http request is aborted. Defaults to 30","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckHttpJsonResponse_Int32_Timeout","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Credentials to use for basic auth","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHttpJsonResponse_String_Username","format":null},"17":{"settings":{"visibility":"visible"},"description":"Negate the conditions set for string parameters. When this is set to true, WarnIfLike/CritIfLike is used instead of WarnIfNotLike/CritIfNotLike for Strings","caption":"NegateStringResults","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults","format":null},"11":{"settings":{"visibility":"visible"},"description":"paths to look for values in the JSON object that is checked, including an alias for each parameter. Example: \"myAlias01:value01\",\"myAlias02:nested.object.value02\", \"myAlias03:\u0027object\u0027.\u0027my.Par.With.Dots\u0027\"","caption":"ValuePaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckHttpJsonResponse_Array_ValuePaths","format":null},"9":{"settings":{"visibility":"hidden"},"description":"Credentials to use for basic auth","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckHttpJsonResponse_Securestring_Password","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"14","varname":"IcingaCheckHttpJsonResponse_Array_Critical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Disables SSL verification and allows the connection to endpoints with self-signed certificates as example","caption":"IgnoreSSL","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"15","varname":"IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL","format":null},"6":{"settings":{"visibility":"visible"},"description":"Path for the request, example \"/v1/my_endpoint\"","caption":"ServerPath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHttpJsonResponse_String_ServerPath","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckHttpJsonResponse_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"19","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData","format":null},"13":{"settings":{"visibility":"visible"},"description":"Warning thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"13","varname":"IcingaCheckHttpJsonResponse_Array_Warning","format":null}}} diff --git a/config/director/Invoke-IcingaCheckICMP.json b/config/director/Invoke-IcingaCheckICMP.json index fd4c9b9b..3b14575f 100644 --- a/config/director/Invoke-IcingaCheckICMP.json +++ b/config/director/Invoke-IcingaCheckICMP.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckICMP Verbosity":{"list_name":"IcingaCheckICMP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckICMP":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckICMP","arguments":{"-Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$","order":"9"},"-IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$","order":"4"},"-Hostname":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"6"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckICMP\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"value":"$IcingaCheckICMP_Object_Critical$","order":"3"},"-PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$","order":"8"},"-PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$","order":"7"},"-Warning":{"value":"$IcingaCheckICMP_Object_Warning$","order":"2"},"-IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$","set_if_format":"string","order":"99"},"-CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$","order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckICMP_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$"},"Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$"},"Hostname":{"value":"$IcingaCheckICMP_String_Hostname$"},"CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$"},"WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$"},"NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckICMP_Object_Critical$"},"IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$"},"Warning":{"value":"$IcingaCheckICMP_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckICMP_String_ThresholdInterval$"},"PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$"},"IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$"}},"ifw_api_command":"Invoke-IcingaCheckICMP","IcingaCheckICMP_Switchparameter_IPv6":false,"IcingaCheckICMP_Switchparameter_IPv4":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for possible packet loss in %","caption":"WarningPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckICMP_Object_WarningPl","format":null},"5":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for the response time in ms","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckICMP_Object_Warning","format":null},"12":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv4 addresses for ICMP calls by using a hostname","caption":"IPv4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckICMP_Switchparameter_IPv4","format":null},"10":{"settings":{"visibility":"visible"},"description":"The amount of packets send to the target host","caption":"PacketCount","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckICMP_Int32_PacketCount","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for possible packet loss in %","caption":"CriticalPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckICMP_Object_CriticalPl","format":null},"11":{"settings":{"visibility":"visible"},"description":"The size of each packet send to the target host","caption":"PacketSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"11","varname":"IcingaCheckICMP_Int32_PacketSize","format":null},"9":{"settings":{"visibility":"visible"},"description":"The target hosts IP or FQDN to send ICMP requests too","caption":"Hostname","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckICMP_String_Hostname","format":null},"14":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckICMP_Switchparameter_NoPerfData","format":null},"15":{"settings":{"datalist":"IcingaCheckICMP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"15","varname":"IcingaCheckICMP_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for the response time in ms","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckICMP_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckICMP_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv6 addresses for ICMP calls by using a hostname","caption":"IPv6","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckICMP_Switchparameter_IPv6","format":null}}} +{"DataList":{"IcingaCheckICMP Verbosity":{"list_name":"IcingaCheckICMP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckICMP":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckICMP","arguments":{"-WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$","order":"4"},"-Hostname":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$","order":"9"},"-PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$","order":"7"},"-IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$","order":"8"},"-Warning":{"value":"$IcingaCheckICMP_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckICMP_Object_Critical$","order":"3"},"-IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$","set_if_format":"string","order":"99"},"-CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$","order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckICMP_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$"},"Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$"},"Hostname":{"value":"$IcingaCheckICMP_String_Hostname$"},"CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$"},"WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$"},"NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckICMP_Object_Critical$"},"IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$"},"Warning":{"value":"$IcingaCheckICMP_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckICMP_String_ThresholdInterval$"},"PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$"},"IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$"}},"ifw_api_command":"Invoke-IcingaCheckICMP","IcingaCheckICMP_Switchparameter_IPv6":false,"IcingaCheckICMP_Switchparameter_IPv4":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for possible packet loss in %","caption":"WarningPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckICMP_Object_WarningPl","format":null},"5":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for the response time in ms","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckICMP_Object_Warning","format":null},"12":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv4 addresses for ICMP calls by using a hostname","caption":"IPv4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckICMP_Switchparameter_IPv4","format":null},"10":{"settings":{"visibility":"visible"},"description":"The amount of packets send to the target host","caption":"PacketCount","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"10","varname":"IcingaCheckICMP_Int32_PacketCount","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for possible packet loss in %","caption":"CriticalPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckICMP_Object_CriticalPl","format":null},"11":{"settings":{"visibility":"visible"},"description":"The size of each packet send to the target host","caption":"PacketSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"11","varname":"IcingaCheckICMP_Int32_PacketSize","format":null},"9":{"settings":{"visibility":"visible"},"description":"The target hosts IP or FQDN to send ICMP requests too","caption":"Hostname","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckICMP_String_Hostname","format":null},"14":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckICMP_Switchparameter_NoPerfData","format":null},"15":{"settings":{"datalist":"IcingaCheckICMP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"15","varname":"IcingaCheckICMP_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for the response time in ms","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckICMP_Object_Critical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckICMP_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv6 addresses for ICMP calls by using a hostname","caption":"IPv6","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckICMP_Switchparameter_IPv6","format":null}}} diff --git a/config/director/Invoke-IcingaCheckMPIO.json b/config/director/Invoke-IcingaCheckMPIO.json index 99141954..309b9956 100644 --- a/config/director/Invoke-IcingaCheckMPIO.json +++ b/config/director/Invoke-IcingaCheckMPIO.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckMPIO Verbosity":{"list_name":"IcingaCheckMPIO Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMPIO":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMPIO","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckMPIO\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckMPIO_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMPIO_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMPIO_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMPIO_Object_Critical$"},"Warning":{"value":"$IcingaCheckMPIO_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckMPIO_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMPIO"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckMPIO_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMPIO_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the number of path defined.\nUse for example 6: for alerting for less than 6 MPIO paths available","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMPIO_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the number of path defined.\nUse for example 8: for alerting for less than 8 MPIO paths available","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMPIO_Object_Warning","format":null},"8":{"settings":{"datalist":"IcingaCheckMPIO Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckMPIO_Object_Verbosity","format":null}}} +{"DataList":{"IcingaCheckMPIO Verbosity":{"list_name":"IcingaCheckMPIO Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMPIO":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMPIO","arguments":{"-Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$","order":"4"},"-Warning":{"value":"$IcingaCheckMPIO_Object_Warning$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"value":"$IcingaCheckMPIO_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMPIO_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMPIO_Object_Critical$"},"Warning":{"value":"$IcingaCheckMPIO_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckMPIO_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMPIO"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckMPIO_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMPIO_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the number of path defined.\nUse for example 6: for alerting for less than 6 MPIO paths available","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMPIO_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the number of path defined.\nUse for example 8: for alerting for less than 8 MPIO paths available","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMPIO_Object_Warning","format":null},"8":{"settings":{"datalist":"IcingaCheckMPIO Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckMPIO_Object_Verbosity","format":null}}} diff --git a/config/director/Invoke-IcingaCheckMemory.json b/config/director/Invoke-IcingaCheckMemory.json index 0a796e3c..68b48d2b 100644 --- a/config/director/Invoke-IcingaCheckMemory.json +++ b/config/director/Invoke-IcingaCheckMemory.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckMemory Verbosity":{"list_name":"IcingaCheckMemory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMemory":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMemory","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckMemory\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$","order":"5"},"-ExcludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_ExcludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-Warning":{"value":"$IcingaCheckMemory_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMemory_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$","order":"4"},"-IncludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_IncludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMemory_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMemory_Object_Critical$"},"ThresholdInterval":{"value":"$IcingaCheckMemory_String_ThresholdInterval$"},"PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$"},"PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$"},"IncludePageFile":{"value":"$IcingaCheckMemory_Array_IncludePageFile$"},"Warning":{"value":"$IcingaCheckMemory_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$"},"ExcludePageFile":{"value":"$IcingaCheckMemory_Array_ExcludePageFile$"},"Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMemory"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\n It is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckMemory_Object_PageFileWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being included for the check","caption":"IncludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckMemory_Array_IncludePageFile","format":null},"10":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being excluded for the check","caption":"ExcludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckMemory_Array_ExcludePageFile","format":null},"12":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckMemory_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckMemory Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckMemory_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMemory_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMemory_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMemory_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckMemory_Object_PageFileCritical","format":null}}} +{"DataList":{"IcingaCheckMemory Verbosity":{"list_name":"IcingaCheckMemory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMemory":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMemory","arguments":{"-Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$","order":"5"},"-ExcludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_ExcludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-Warning":{"value":"$IcingaCheckMemory_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMemory_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$","order":"4"},"-IncludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_IncludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMemory_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMemory_Object_Critical$"},"ThresholdInterval":{"value":"$IcingaCheckMemory_String_ThresholdInterval$"},"PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$"},"PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$"},"IncludePageFile":{"value":"$IcingaCheckMemory_Array_IncludePageFile$"},"Warning":{"value":"$IcingaCheckMemory_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$"},"ExcludePageFile":{"value":"$IcingaCheckMemory_Array_ExcludePageFile$"},"Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMemory"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\n It is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckMemory_Object_PageFileWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being included for the check","caption":"IncludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckMemory_Array_IncludePageFile","format":null},"10":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being excluded for the check","caption":"ExcludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"10","varname":"IcingaCheckMemory_Array_ExcludePageFile","format":null},"12":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckMemory_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckMemory Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckMemory_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMemory_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMemory_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMemory_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckMemory_Object_PageFileCritical","format":null}}} diff --git a/config/director/Invoke-IcingaCheckNLA.json b/config/director/Invoke-IcingaCheckNLA.json index d5a6be11..2ff0992e 100644 --- a/config/director/Invoke-IcingaCheckNLA.json +++ b/config/director/Invoke-IcingaCheckNLA.json @@ -1 +1 @@ -{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Verbosity":{"list_name":"IcingaCheckNLA Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Profile":{"list_name":"IcingaCheckNLA Profile","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"DomainAuthenticated","entry_name":"DomainAuthenticated","format":"string"},{"allowed_roles":null,"entry_value":"Public","entry_name":"Public","format":"string"},{"allowed_roles":null,"entry_value":"Private","entry_name":"Private","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckNLA":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNLA","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckNLA\u0027 ","order":"0"},"-Profile":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_Profile$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_Profile$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NICs":{"value":{"body":"var arr = macro(\"$IcingaCheckNLA_Array_NICs$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$","order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckNLA_String_Profile$"},"NICs":{"value":"$IcingaCheckNLA_Array_NICs$"},"ThresholdInterval":{"value":"$IcingaCheckNLA_String_ThresholdInterval$"},"Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckNLA"}}},"Datafield":{"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"datalist":"IcingaCheckNLA Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckNLA_Int32_Verbosity","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckNLA_String_ThresholdInterval","format":null},"5":{"settings":{"datalist":"IcingaCheckNLA Profile","behavior":"strict","data_type":"string"},"description":"Used to specify the profile to check. Available profiles are \u0027DomainAuthenticated\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"5","varname":"IcingaCheckNLA_String_Profile","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked","caption":"NICs","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckNLA_Array_NICs","format":null}}} +{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Verbosity":{"list_name":"IcingaCheckNLA Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Profile":{"list_name":"IcingaCheckNLA Profile","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"DomainAuthenticated","entry_name":"DomainAuthenticated","format":"string"},{"allowed_roles":null,"entry_value":"Public","entry_name":"Public","format":"string"},{"allowed_roles":null,"entry_value":"Private","entry_name":"Private","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckNLA":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNLA","arguments":{"-Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$","order":"3"},"-Profile":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_Profile$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_Profile$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NICs":{"value":{"body":"var arr = macro(\"$IcingaCheckNLA_Array_NICs$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckNLA_String_Profile$"},"NICs":{"value":"$IcingaCheckNLA_Array_NICs$"},"ThresholdInterval":{"value":"$IcingaCheckNLA_String_ThresholdInterval$"},"Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckNLA"}}},"Datafield":{"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"datalist":"IcingaCheckNLA Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckNLA_Int32_Verbosity","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckNLA_String_ThresholdInterval","format":null},"5":{"settings":{"datalist":"IcingaCheckNLA Profile","behavior":"strict","data_type":"string"},"description":"Used to specify the profile to check. Available profiles are \u0027DomainAuthenticated\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"5","varname":"IcingaCheckNLA_String_Profile","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked","caption":"NICs","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckNLA_Array_NICs","format":null}}} diff --git a/config/director/Invoke-IcingaCheckNetworkInterface.json b/config/director/Invoke-IcingaCheckNetworkInterface.json index b46c474a..67fdf8de 100644 --- a/config/director/Invoke-IcingaCheckNetworkInterface.json +++ b/config/director/Invoke-IcingaCheckNetworkInterface.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckNetworkInterface IfConnectionStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface Verbosity":{"list_name":"IcingaCheckNetworkInterface Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfAdminStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfAdminStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckNetworkInterface":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null},{"datafield_id":32,"is_required":"n","var_filter":null},{"datafield_id":33,"is_required":"n","var_filter":null},{"datafield_id":34,"is_required":"n","var_filter":null},{"datafield_id":35,"is_required":"n","var_filter":null},{"datafield_id":36,"is_required":"n","var_filter":null},{"datafield_id":37,"is_required":"n","var_filter":null},{"datafield_id":38,"is_required":"n","var_filter":null},{"datafield_id":39,"is_required":"n","var_filter":null},{"datafield_id":40,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNetworkInterface","arguments":{"-PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$","order":"8"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckNetworkInterface\u0027 ","order":"0"},"-NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$","order":"25"},"-DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$","order":"22"},"-PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$","order":"13"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$","order":"23"},"-PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$","order":"11"},"-DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$","order":"21"},"-IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$","order":"29"},"-PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$","order":"16"},"-PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$","order":"17"},"-IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$","order":"26"},"-IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$","set_if_format":"string","order":"99"},"-DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$","order":"19"},"-PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$","order":"12"},"-DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$","order":"18"},"-IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$","order":"27"},"-LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$","order":"24"},"-IncludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$","order":"20"},"-PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$","order":"10"},"-PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$","order":"14"},"-IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$","order":"34"},"-IncludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$","order":"6"},"-PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$","order":"15"},"-Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$","order":"35"},"-IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$","order":"32"},"-IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$","order":"28"},"-IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$","order":"33"},"-IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$","order":"31"},"-ExcludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$","order":"7"},"-ExcludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$","order":"9"},"-IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$","order":"30"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden":false,"IcingaCheckNetworkInterface_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$"},"IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$"},"IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$"},"Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$"},"DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$"},"NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$"},"PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$"},"IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$"},"IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$"},"IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$"},"ExcludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$"},"DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$"},"IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$"},"PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$"},"PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$"},"IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$"},"DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$"},"PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$"},"ExcludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$"},"PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$"},"PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$"},"DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$"},"PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$"},"LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$"},"DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$"},"PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$"},"LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$"},"IncludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$"},"DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$"},"PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$"},"IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$"},"IncludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$"},"PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$"},"IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$"},"IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$"},"ThresholdInterval":{"value":"$IcingaCheckNetworkInterface_String_ThresholdInterval$"},"PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$"}},"ifw_api_command":"Invoke-IcingaCheckNetworkInterface"}}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecWarn","format":null},"7":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to exclude for checks. Example OutboundGroup, ClusterInterface","caption":"ExcludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam","format":null},"20":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit","format":null},"12":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecCrit","format":null},"10":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit","format":null},"17":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn","format":null},"13":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PackteReceivedErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn","format":null},"27":{"settings":{"visibility":"visible"},"description":"Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedWarn","format":null},"30":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"30","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusCrit","format":null},"18":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit","format":null},"36":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"36","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn","format":null},"29":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"29","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusWarn","format":null},"23":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn","format":null},"19":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn","format":null},"38":{"settings":{"visibility":"visible"},"description":"Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not\nbroadcasting its ID.","caption":"IncludeHidden","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"38","varname":"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden","format":null},"5":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to include for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"IncludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckNetworkInterface_Array_IncludeNetworkDevice","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckNetworkInterface_String_ThresholdInterval","format":null},"40":{"settings":{"datalist":"IcingaCheckNetworkInterface Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"40","varname":"IcingaCheckNetworkInterface_Object_Verbosity","format":null},"26":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit","format":null},"39":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"39","varname":"IcingaCheckNetworkInterface_Switchparameter_NoPerfData","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteReceivedErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit","format":null},"37":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"37","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit","format":null},"22":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit","format":null},"28":{"settings":{"visibility":"visible"},"description":"Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"28","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedCrit","format":null},"25":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn","format":null},"9":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn","format":null},"33":{"settings":{"datalist":"IcingaCheckNetworkInterface IfAdminStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the network Interface administrative status.","caption":"IfAdminStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"33","varname":"IcingaCheckNetworkInterface_Object_IfAdminStatusWarn","format":null},"15":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn","format":null},"34":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the current network interface operational status.","caption":"IfOperationalStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"34","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn","format":null},"21":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn","format":null},"24":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit","format":null},"16":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit","format":null},"35":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the current network interface operational status.","caption":"IfOperationalStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"35","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit","format":null},"32":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"32","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit","format":null},"8":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to include for checks. Example OutboundGroup, ClusterInterface","caption":"IncludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to exclude for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"ExcludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice","format":null},"31":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"31","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn","format":null}}} +{"DataList":{"IcingaCheckNetworkInterface IfConnectionStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface Verbosity":{"list_name":"IcingaCheckNetworkInterface Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfAdminStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfAdminStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckNetworkInterface":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null},{"datafield_id":32,"is_required":"n","var_filter":null},{"datafield_id":33,"is_required":"n","var_filter":null},{"datafield_id":34,"is_required":"n","var_filter":null},{"datafield_id":35,"is_required":"n","var_filter":null},{"datafield_id":36,"is_required":"n","var_filter":null},{"datafield_id":37,"is_required":"n","var_filter":null},{"datafield_id":38,"is_required":"n","var_filter":null},{"datafield_id":39,"is_required":"n","var_filter":null},{"datafield_id":40,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNetworkInterface","arguments":{"-PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$","order":"8"},"-NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$","order":"25"},"-DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$","order":"22"},"-PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$","order":"13"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$","order":"23"},"-PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$","order":"11"},"-DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$","order":"21"},"-IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$","order":"29"},"-PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$","order":"16"},"-PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$","order":"17"},"-IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$","order":"26"},"-IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$","set_if_format":"string","order":"99"},"-DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$","order":"19"},"-PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$","order":"12"},"-DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$","order":"18"},"-IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$","order":"27"},"-LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$","order":"24"},"-IncludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$","order":"20"},"-PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$","order":"10"},"-PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$","order":"14"},"-IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$","order":"34"},"-IncludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$","order":"6"},"-PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$","order":"15"},"-Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$","order":"35"},"-IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$","order":"32"},"-IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$","order":"28"},"-IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$","order":"33"},"-IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$","order":"31"},"-ExcludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$","order":"7"},"-ExcludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$","order":"9"},"-IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$","order":"30"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden":false,"IcingaCheckNetworkInterface_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$"},"IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$"},"IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$"},"Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$"},"DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$"},"NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$"},"PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$"},"IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$"},"IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$"},"IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$"},"ExcludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$"},"DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$"},"IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$"},"PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$"},"PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$"},"IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$"},"DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$"},"PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$"},"ExcludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$"},"PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$"},"PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$"},"DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$"},"PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$"},"LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$"},"DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$"},"PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$"},"LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$"},"IncludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$"},"DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$"},"PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$"},"IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$"},"IncludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$"},"PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$"},"IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$"},"IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$"},"ThresholdInterval":{"value":"$IcingaCheckNetworkInterface_String_ThresholdInterval$"},"PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$"}},"ifw_api_command":"Invoke-IcingaCheckNetworkInterface"}}},"Datafield":{"11":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecWarn","format":null},"7":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to exclude for checks. Example OutboundGroup, ClusterInterface","caption":"ExcludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam","format":null},"20":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit","format":null},"12":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecCrit","format":null},"10":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit","format":null},"17":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn","format":null},"13":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PackteReceivedErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn","format":null},"27":{"settings":{"visibility":"visible"},"description":"Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedWarn","format":null},"30":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"30","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusCrit","format":null},"18":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit","format":null},"36":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"36","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn","format":null},"29":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"29","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusWarn","format":null},"23":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn","format":null},"19":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn","format":null},"38":{"settings":{"visibility":"visible"},"description":"Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not\nbroadcasting its ID.","caption":"IncludeHidden","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"38","varname":"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden","format":null},"5":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to include for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"IncludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckNetworkInterface_Array_IncludeNetworkDevice","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckNetworkInterface_String_ThresholdInterval","format":null},"40":{"settings":{"datalist":"IcingaCheckNetworkInterface Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"40","varname":"IcingaCheckNetworkInterface_Object_Verbosity","format":null},"26":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit","format":null},"39":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"39","varname":"IcingaCheckNetworkInterface_Switchparameter_NoPerfData","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteReceivedErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit","format":null},"37":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"37","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit","format":null},"22":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit","format":null},"28":{"settings":{"visibility":"visible"},"description":"Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"28","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedCrit","format":null},"25":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"25","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn","format":null},"9":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn","format":null},"33":{"settings":{"datalist":"IcingaCheckNetworkInterface IfAdminStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the network Interface administrative status.","caption":"IfAdminStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"33","varname":"IcingaCheckNetworkInterface_Object_IfAdminStatusWarn","format":null},"15":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn","format":null},"34":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the current network interface operational status.","caption":"IfOperationalStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"34","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn","format":null},"21":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn","format":null},"24":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"24","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit","format":null},"16":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit","format":null},"35":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the current network interface operational status.","caption":"IfOperationalStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"35","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit","format":null},"32":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"32","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit","format":null},"8":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to include for checks. Example OutboundGroup, ClusterInterface","caption":"IncludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"6":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to exclude for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"ExcludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice","format":null},"31":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"31","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn","format":null}}} diff --git a/config/director/Invoke-IcingaCheckPartitionSpace.json b/config/director/Invoke-IcingaCheckPartitionSpace.json index 10707896..2f6f6e9c 100644 --- a/config/director/Invoke-IcingaCheckPartitionSpace.json +++ b/config/director/Invoke-IcingaCheckPartitionSpace.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckPartitionSpace Verbosity":{"list_name":"IcingaCheckPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckPartitionSpace":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPartitionSpace","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckPartitionSpace\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckPartitionSpace_Array_Include$"}},"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown":false,"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckPartitionSpace_Switchparameter_NoPerfData":false,"ifw_api_command":"Invoke-IcingaCheckPartitionSpace"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckPartitionSpace_Array_Include","format":null},"9":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckPartitionSpace_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckPartitionSpace_String_ThresholdInterval","format":null},"13":{"settings":{"datalist":"IcingaCheckPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckPartitionSpace_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckPartitionSpace_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckPartitionSpace_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckPartitionSpace_Array_Exclude","format":null}}} +{"DataList":{"IcingaCheckPartitionSpace Verbosity":{"list_name":"IcingaCheckPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckPartitionSpace":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPartitionSpace","arguments":{"-Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckPartitionSpace_Array_Include$"}},"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown":false,"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckPartitionSpace_Switchparameter_NoPerfData":false,"ifw_api_command":"Invoke-IcingaCheckPartitionSpace"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckPartitionSpace_Array_Include","format":null},"9":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckPartitionSpace_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckPartitionSpace_String_ThresholdInterval","format":null},"13":{"settings":{"datalist":"IcingaCheckPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckPartitionSpace_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckPartitionSpace_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckPartitionSpace_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckPartitionSpace_Array_Exclude","format":null}}} diff --git a/config/director/Invoke-IcingaCheckPerfcounter.json b/config/director/Invoke-IcingaCheckPerfcounter.json index ed51d268..83bd2a44 100644 --- a/config/director/Invoke-IcingaCheckPerfcounter.json +++ b/config/director/Invoke-IcingaCheckPerfcounter.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckPerfCounter Verbosity":{"list_name":"IcingaCheckPerfCounter Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckPerfCounter":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPerfCounter","arguments":{"-PerfCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_PerfCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$","order":"7"},"-Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$","order":"3"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-ExcludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_ExcludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_IncludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckPerfCounter\u0027 ","order":"0"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckPerfCounter_Switchparameter_NoPerfData":false,"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_arguments":{"PerfCounter":{"value":"$IcingaCheckPerfCounter_Array_PerfCounter$"},"ThresholdInterval":{"value":"$IcingaCheckPerfCounter_String_ThresholdInterval$"},"ExcludeCounter":{"value":"$IcingaCheckPerfCounter_Array_ExcludeCounter$"},"Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$"},"Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$"},"IncludeCounter":{"value":"$IcingaCheckPerfCounter_Array_IncludeCounter$"},"Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckPerfCounter"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckPerfCounter_Object_Critical","format":null},"9":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, excluding the provided counters. Allows\nwildcard \"*\" usage","caption":"ExcludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckPerfCounter_Array_ExcludeCounter","format":null},"10":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element was found and\nprevent the plugin from exiting UNKNOWN and returns OK instead","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks","format":null},"12":{"settings":{"datalist":"IcingaCheckPerfCounter Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"12","varname":"IcingaCheckPerfCounter_Int32_Verbosity","format":null},"11":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckPerfCounter_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckPerfCounter_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckPerfCounter_Object_Warning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of performance counter to check against.","caption":"PerfCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckPerfCounter_Array_PerfCounter","format":null},"8":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, only including the provided counters. Allows\nwildcard \"*\" usage","caption":"IncludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckPerfCounter_Array_IncludeCounter","format":null}}} +{"DataList":{"IcingaCheckPerfCounter Verbosity":{"list_name":"IcingaCheckPerfCounter Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckPerfCounter":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPerfCounter","arguments":{"-PerfCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_PerfCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$","order":"7"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_IncludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ExcludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_ExcludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckPerfCounter_Switchparameter_NoPerfData":false,"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_arguments":{"PerfCounter":{"value":"$IcingaCheckPerfCounter_Array_PerfCounter$"},"ThresholdInterval":{"value":"$IcingaCheckPerfCounter_String_ThresholdInterval$"},"ExcludeCounter":{"value":"$IcingaCheckPerfCounter_Array_ExcludeCounter$"},"Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$"},"Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$"},"IncludeCounter":{"value":"$IcingaCheckPerfCounter_Array_IncludeCounter$"},"Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckPerfCounter"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckPerfCounter_Object_Critical","format":null},"9":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, excluding the provided counters. Allows\nwildcard \"*\" usage","caption":"ExcludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"9","varname":"IcingaCheckPerfCounter_Array_ExcludeCounter","format":null},"10":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element was found and\nprevent the plugin from exiting UNKNOWN and returns OK instead","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks","format":null},"12":{"settings":{"datalist":"IcingaCheckPerfCounter Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"12","varname":"IcingaCheckPerfCounter_Int32_Verbosity","format":null},"11":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckPerfCounter_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckPerfCounter_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckPerfCounter_Object_Warning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of performance counter to check against.","caption":"PerfCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckPerfCounter_Array_PerfCounter","format":null},"8":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, only including the provided counters. Allows\nwildcard \"*\" usage","caption":"IncludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckPerfCounter_Array_IncludeCounter","format":null}}} diff --git a/config/director/Invoke-IcingaCheckProcess.json b/config/director/Invoke-IcingaCheckProcess.json index ac66f56e..4c2d41ae 100644 --- a/config/director/Invoke-IcingaCheckProcess.json +++ b/config/director/Invoke-IcingaCheckProcess.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckProcess Verbosity":{"list_name":"IcingaCheckProcess Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckProcess":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcess","arguments":{"-TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$","order":"17"},"-NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$","order":"22"},"-TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$","order":"16"},"-MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$","order":"4"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"20"},"-TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$","order":"14"},"-TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$","order":"12"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckProcess\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$","order":"3"},"-CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$","order":"6"},"-TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$","order":"10"},"-ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$","order":"8"},"-TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$","order":"18"},"-CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$","order":"7"},"-ExcludeProcess":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_ExcludeProcess$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"21"},"-TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$","order":"15"},"-MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$","order":"5"},"-PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$","order":"2"},"-TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$","order":"19"},"-TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$","order":"11"},"-TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$","order":"13"},"-ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckProcess_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$"},"ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$"},"NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$"},"CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$"},"TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$"},"ThresholdInterval":{"value":"$IcingaCheckProcess_String_ThresholdInterval$"},"ExcludeProcess":{"value":"$IcingaCheckProcess_Array_ExcludeProcess$"},"TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$"},"PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$"},"ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$"},"TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$"},"PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$"},"Process":{"value":"$IcingaCheckProcess_Array_Process$"},"TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$"},"CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$"},"TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$"},"TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$"},"TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$"},"MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$"},"Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$"},"TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$"},"MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$"},"TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$"}},"ifw_api_command":"Invoke-IcingaCheckProcess"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckProcess_Object_TotalMemoryCritical","format":null},"7":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckProcess_Object_MemoryWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckProcess_Object_PageFileWarning","format":null},"21":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckProcess_Object_TotalProcessCountWarning","format":null},"18":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckProcess_Object_TotalCPUCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckProcess_Object_ThreadCountCritical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckProcess_Object_CPUCritical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckProcess_Object_TotalProcessCountCritical","format":null},"8":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckProcess_Object_MemoryCritical","format":null},"17":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckProcess_Object_TotalCPUWarning","format":null},"11":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckProcess_Object_ThreadCountWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckProcess_Object_CPUWarning","format":null},"24":{"settings":{"visibility":"visible"},"description":"Define a list of process names which are excluded from the final result. Only the process name is required without \u0027.exe\u0027 at the end.","caption":"ExcludeProcess","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"24","varname":"IcingaCheckProcess_Array_ExcludeProcess","format":null},"14":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckProcess_Object_TotalPageFileCritical","format":null},"20":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckProcess_Object_TotalThreadCountCritical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckProcess_Object_TotalMemoryWarning","format":null},"25":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"25","varname":"IcingaCheckProcess_Switchparameter_NoPerfData","format":null},"23":{"settings":{"visibility":"visible"},"description":"Allows to filter for a list of processes with a given name. Use the process name without file ending, like \u0027.exe\u0027.","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"23","varname":"IcingaCheckProcess_Array_Process","format":null},"6":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckProcess_Object_PageFileCritical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckProcess_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckProcess_Object_TotalThreadCountWarning","format":null},"13":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckProcess_Object_TotalPageFileWarning","format":null},"26":{"settings":{"datalist":"IcingaCheckProcess Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"26","varname":"IcingaCheckProcess_Int32_Verbosity","format":null}}} +{"DataList":{"IcingaCheckProcess Verbosity":{"list_name":"IcingaCheckProcess Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckProcess":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null},{"datafield_id":26,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcess","arguments":{"-TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$","order":"17"},"-NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$","order":"22"},"-TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$","order":"16"},"-MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$","order":"4"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"20"},"-TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$","order":"14"},"-TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$","order":"12"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$","order":"3"},"-CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$","order":"6"},"-TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$","order":"10"},"-ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$","order":"8"},"-TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$","order":"18"},"-CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$","order":"7"},"-ExcludeProcess":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_ExcludeProcess$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"21"},"-TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$","order":"15"},"-MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$","order":"5"},"-PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$","order":"2"},"-TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$","order":"19"},"-TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$","order":"11"},"-TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$","order":"13"},"-ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckProcess_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$"},"ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$"},"NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$"},"CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$"},"TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$"},"ThresholdInterval":{"value":"$IcingaCheckProcess_String_ThresholdInterval$"},"ExcludeProcess":{"value":"$IcingaCheckProcess_Array_ExcludeProcess$"},"TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$"},"PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$"},"ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$"},"TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$"},"PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$"},"Process":{"value":"$IcingaCheckProcess_Array_Process$"},"TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$"},"CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$"},"TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$"},"TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$"},"TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$"},"MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$"},"Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$"},"TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$"},"MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$"},"TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$"}},"ifw_api_command":"Invoke-IcingaCheckProcess"}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckProcess_Object_TotalMemoryCritical","format":null},"7":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckProcess_Object_MemoryWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckProcess_Object_PageFileWarning","format":null},"21":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckProcess_Object_TotalProcessCountWarning","format":null},"18":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckProcess_Object_TotalCPUCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckProcess_Object_ThreadCountCritical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckProcess_Object_CPUCritical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"22","varname":"IcingaCheckProcess_Object_TotalProcessCountCritical","format":null},"8":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckProcess_Object_MemoryCritical","format":null},"17":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckProcess_Object_TotalCPUWarning","format":null},"11":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckProcess_Object_ThreadCountWarning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckProcess_Object_CPUWarning","format":null},"24":{"settings":{"visibility":"visible"},"description":"Define a list of process names which are excluded from the final result. Only the process name is required without \u0027.exe\u0027 at the end.","caption":"ExcludeProcess","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"24","varname":"IcingaCheckProcess_Array_ExcludeProcess","format":null},"14":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckProcess_Object_TotalPageFileCritical","format":null},"20":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckProcess_Object_TotalThreadCountCritical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckProcess_Object_TotalMemoryWarning","format":null},"25":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"25","varname":"IcingaCheckProcess_Switchparameter_NoPerfData","format":null},"23":{"settings":{"visibility":"visible"},"description":"Allows to filter for a list of processes with a given name. Use the process name without file ending, like \u0027.exe\u0027.","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"23","varname":"IcingaCheckProcess_Array_Process","format":null},"6":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckProcess_Object_PageFileCritical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckProcess_String_ThresholdInterval","format":null},"19":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckProcess_Object_TotalThreadCountWarning","format":null},"13":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckProcess_Object_TotalPageFileWarning","format":null},"26":{"settings":{"datalist":"IcingaCheckProcess Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"26","varname":"IcingaCheckProcess_Int32_Verbosity","format":null}}} diff --git a/config/director/Invoke-IcingaCheckProcessCount.json b/config/director/Invoke-IcingaCheckProcessCount.json index 83bc2aa6..2ad38344 100644 --- a/config/director/Invoke-IcingaCheckProcessCount.json +++ b/config/director/Invoke-IcingaCheckProcessCount.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckProcessCount Verbosity":{"list_name":"IcingaCheckProcessCount Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckProcessCount":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcessCount","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckProcessCount\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcessCount_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Process":{"value":"$IcingaCheckProcessCount_Array_Process$"},"ThresholdInterval":{"value":"$IcingaCheckProcessCount_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$"},"Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckProcessCount","IcingaCheckProcessCount_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of processes to count and match against. e.g. conhost,wininit","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckProcessCount_Array_Process","format":null},"9":{"settings":{"datalist":"IcingaCheckProcessCount Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckProcessCount_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckProcessCount_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckProcessCount_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckProcessCount_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckProcessCount_Switchparameter_NoPerfData","format":null}}} +{"DataList":{"IcingaCheckProcessCount Verbosity":{"list_name":"IcingaCheckProcessCount Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckProcessCount":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcessCount","arguments":{"-Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcessCount_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Process":{"value":"$IcingaCheckProcessCount_Array_Process$"},"ThresholdInterval":{"value":"$IcingaCheckProcessCount_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$"},"Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckProcessCount","IcingaCheckProcessCount_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of processes to count and match against. e.g. conhost,wininit","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckProcessCount_Array_Process","format":null},"9":{"settings":{"datalist":"IcingaCheckProcessCount Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckProcessCount_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckProcessCount_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckProcessCount_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckProcessCount_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckProcessCount_Switchparameter_NoPerfData","format":null}}} diff --git a/config/director/Invoke-IcingaCheckScheduledTask.json b/config/director/Invoke-IcingaCheckScheduledTask.json index 03a23cf0..3f70e892 100644 --- a/config/director/Invoke-IcingaCheckScheduledTask.json +++ b/config/director/Invoke-IcingaCheckScheduledTask.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckScheduledTask Verbosity":{"list_name":"IcingaCheckScheduledTask Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask State":{"list_name":"IcingaCheckScheduledTask State","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Queued","entry_name":"Queued","format":"string"},{"allowed_roles":null,"entry_value":"Ready","entry_name":"Ready","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckScheduledTask":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckScheduledTask","arguments":{"-WarningNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"9"},"-CriticalNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckScheduledTask\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$","order":"5"},"-IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$","set_if_format":"string","order":"99"},"-TaskName":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_TaskName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-CriticalLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-IgnoreExitCodes":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$","order":"6"},"-State":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_State$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$","order":"11"},"-WarningLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"7"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime":false,"ifw_api_arguments":{"CriticalNextRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalNextRunTime$"},"ThresholdInterval":{"value":"$IcingaCheckScheduledTask_String_ThresholdInterval$"},"TaskName":{"value":"$IcingaCheckScheduledTask_Array_TaskName$"},"WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$"},"WarningNextRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningNextRunTime$"},"CriticalLastRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalLastRunTime$"},"CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$"},"IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$"},"IgnoreExitCodes":{"value":"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$"},"WarningLastRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningLastRunTime$"},"State":{"value":"$IcingaCheckScheduledTask_Array_State$"},"NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckScheduledTask","IcingaCheckScheduledTask_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"datalist":"IcingaCheckScheduledTask Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"16","varname":"IcingaCheckScheduledTask_Int32_Verbosity","format":null},"7":{"settings":{"visibility":"visible"},"description":"A list of exit codes which will be considered as [OK]. By default every task which did not exit with 0 will be handled as critical.","caption":"IgnoreExitCodes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckScheduledTask_Array_IgnoreExitCodes","format":null},"5":{"settings":{"visibility":"visible"},"description":"A list of tasks to check for. If your tasks contain spaces, wrap them around a \u0027 to ensure they are\nproperly handled as string","caption":"TaskName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckScheduledTask_Array_TaskName","format":null},"12":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"WarningNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckScheduledTask_String_WarningNextRunTime","format":null},"10":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"WarningLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckScheduledTask_String_WarningLastRunTime","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Defines a warning threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"WarningMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckScheduledTask_Object_WarningMissedRuns","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"CriticalLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckScheduledTask_String_CriticalLastRunTime","format":null},"9":{"settings":{"visibility":"visible"},"description":"Defines a critical threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"CriticalMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckScheduledTask_Object_CriticalMissedRuns","format":null},"14":{"settings":{"visibility":"visible"},"description":"By default every task which did not exit with 0 will be handled as critical. If you set this flag,\nthe exit code of the task is ignored during check execution","caption":"IgnoreLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime","format":null},"15":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"15","varname":"IcingaCheckScheduledTask_Switchparameter_NoPerfData","format":null},"6":{"settings":{"datalist":"IcingaCheckScheduledTask State","behavior":"strict","data_type":"array"},"description":"The state a task should currently have for the plugin to return [OK]","caption":"State","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckScheduledTask_Array_State","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckScheduledTask_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"CriticalNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckScheduledTask_String_CriticalNextRunTime","format":null}}} +{"DataList":{"IcingaCheckScheduledTask Verbosity":{"list_name":"IcingaCheckScheduledTask Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask State":{"list_name":"IcingaCheckScheduledTask State","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Queued","entry_name":"Queued","format":"string"},{"allowed_roles":null,"entry_value":"Ready","entry_name":"Ready","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckScheduledTask":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckScheduledTask","arguments":{"-WarningNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"9"},"-CriticalNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$","order":"5"},"-IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$","set_if_format":"string","order":"99"},"-TaskName":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_TaskName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-CriticalLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-IgnoreExitCodes":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$","order":"6"},"-State":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_State$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$","order":"11"},"-WarningLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"7"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime":false,"ifw_api_arguments":{"CriticalNextRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalNextRunTime$"},"ThresholdInterval":{"value":"$IcingaCheckScheduledTask_String_ThresholdInterval$"},"TaskName":{"value":"$IcingaCheckScheduledTask_Array_TaskName$"},"WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$"},"WarningNextRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningNextRunTime$"},"CriticalLastRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalLastRunTime$"},"CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$"},"IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$"},"IgnoreExitCodes":{"value":"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$"},"WarningLastRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningLastRunTime$"},"State":{"value":"$IcingaCheckScheduledTask_Array_State$"},"NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckScheduledTask","IcingaCheckScheduledTask_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"datalist":"IcingaCheckScheduledTask Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"16","varname":"IcingaCheckScheduledTask_Int32_Verbosity","format":null},"7":{"settings":{"visibility":"visible"},"description":"A list of exit codes which will be considered as [OK]. By default every task which did not exit with 0 will be handled as critical.","caption":"IgnoreExitCodes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckScheduledTask_Array_IgnoreExitCodes","format":null},"5":{"settings":{"visibility":"visible"},"description":"A list of tasks to check for. If your tasks contain spaces, wrap them around a \u0027 to ensure they are\nproperly handled as string","caption":"TaskName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckScheduledTask_Array_TaskName","format":null},"12":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"WarningNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckScheduledTask_String_WarningNextRunTime","format":null},"10":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"WarningLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckScheduledTask_String_WarningLastRunTime","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Defines a warning threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"WarningMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckScheduledTask_Object_WarningMissedRuns","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"CriticalLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckScheduledTask_String_CriticalLastRunTime","format":null},"9":{"settings":{"visibility":"visible"},"description":"Defines a critical threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"CriticalMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckScheduledTask_Object_CriticalMissedRuns","format":null},"14":{"settings":{"visibility":"visible"},"description":"By default every task which did not exit with 0 will be handled as critical. If you set this flag,\nthe exit code of the task is ignored during check execution","caption":"IgnoreLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime","format":null},"15":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"15","varname":"IcingaCheckScheduledTask_Switchparameter_NoPerfData","format":null},"6":{"settings":{"datalist":"IcingaCheckScheduledTask State","behavior":"strict","data_type":"array"},"description":"The state a task should currently have for the plugin to return [OK]","caption":"State","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckScheduledTask_Array_State","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckScheduledTask_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"CriticalNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckScheduledTask_String_CriticalNextRunTime","format":null}}} diff --git a/config/director/Invoke-IcingaCheckService.json b/config/director/Invoke-IcingaCheckService.json index fedafcaa..b326e5f5 100644 --- a/config/director/Invoke-IcingaCheckService.json +++ b/config/director/Invoke-IcingaCheckService.json @@ -1 +1 @@ -{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckService Verbosity":{"list_name":"IcingaCheckService Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService FilterStartupType":{"list_name":"IcingaCheckService FilterStartupType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Boot","entry_name":"Boot","format":"string"},{"allowed_roles":null,"entry_value":"System","entry_name":"System","format":"string"},{"allowed_roles":null,"entry_value":"Automatic","entry_name":"Automatic","format":"string"},{"allowed_roles":null,"entry_value":"Manual","entry_name":"Manual","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckService Status":{"list_name":"IcingaCheckService Status","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Stopped","entry_name":"Stopped","format":"string"},{"allowed_roles":null,"entry_value":"StartPending","entry_name":"StartPending","format":"string"},{"allowed_roles":null,"entry_value":"StopPending","entry_name":"StopPending","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"},{"allowed_roles":null,"entry_value":"ContinuePending","entry_name":"ContinuePending","format":"string"},{"allowed_roles":null,"entry_value":"PausePending","entry_name":"PausePending","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckService":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckService","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckService\u0027 ","order":"0"},"-MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$","order":"6"},"-FilterStartupType":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_FilterStartupType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-Status":{"set_if":"var str = macro(\"$IcingaCheckService_String_Status$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_Status$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Service":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Service$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckService_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckService_String_ThresholdInterval$"},"MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$"},"FilterStartupType":{"value":"$IcingaCheckService_Array_FilterStartupType$"},"Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$"},"Service":{"value":"$IcingaCheckService_Array_Service$"},"NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$"},"Status":{"value":"$IcingaCheckService_String_Status$"},"Exclude":{"value":"$IcingaCheckService_Array_Exclude$"}},"ifw_api_command":"Invoke-IcingaCheckService","IcingaCheckService_Switchparameter_MitigateUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"datalist":"IcingaCheckService Status","behavior":"strict","data_type":"string"},"description":"Status for the specified service or services to check against.","caption":"Status","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"7","varname":"IcingaCheckService_String_Status","format":null},"9":{"settings":{"visibility":"visible"},"description":"This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this\ncheck","caption":"MitigateUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckService_Switchparameter_MitigateUnknown","format":null},"10":{"settings":{"datalist":"IcingaCheckService Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"10","varname":"IcingaCheckService_Int32_Verbosity","format":null},"11":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckService_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckService_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Allows to exclude services which might come in handy for checking services which are configured to start automatically\non Windows but are not running and weren\u0027t exited properly.","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckService_Array_Exclude","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of services which should be checked against the status. Supports \u0027*\u0027 for\nwildcards.","caption":"Service","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckService_Array_Service","format":null},"8":{"settings":{"datalist":"IcingaCheckService FilterStartupType","behavior":"strict","data_type":"array"},"description":"Allows to include only services with a specific startup type inside the monitoring,\nin case you check for a list of specific services by using `-Service`","caption":"FilterStartupType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckService_Array_FilterStartupType","format":null}}} +{"DataList":{"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckService Verbosity":{"list_name":"IcingaCheckService Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService FilterStartupType":{"list_name":"IcingaCheckService FilterStartupType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Boot","entry_name":"Boot","format":"string"},{"allowed_roles":null,"entry_value":"System","entry_name":"System","format":"string"},{"allowed_roles":null,"entry_value":"Automatic","entry_name":"Automatic","format":"string"},{"allowed_roles":null,"entry_value":"Manual","entry_name":"Manual","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckService Status":{"list_name":"IcingaCheckService Status","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Stopped","entry_name":"Stopped","format":"string"},{"allowed_roles":null,"entry_value":"StartPending","entry_name":"StartPending","format":"string"},{"allowed_roles":null,"entry_value":"StopPending","entry_name":"StopPending","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"},{"allowed_roles":null,"entry_value":"ContinuePending","entry_name":"ContinuePending","format":"string"},{"allowed_roles":null,"entry_value":"PausePending","entry_name":"PausePending","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckService":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckService","arguments":{"-FilterStartupType":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_FilterStartupType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$","order":"6"},"-Status":{"set_if":"var str = macro(\"$IcingaCheckService_String_Status$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_Status$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Service":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Service$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckService_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckService_String_ThresholdInterval$"},"MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$"},"FilterStartupType":{"value":"$IcingaCheckService_Array_FilterStartupType$"},"Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$"},"Service":{"value":"$IcingaCheckService_Array_Service$"},"NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$"},"Status":{"value":"$IcingaCheckService_String_Status$"},"Exclude":{"value":"$IcingaCheckService_Array_Exclude$"}},"ifw_api_command":"Invoke-IcingaCheckService","IcingaCheckService_Switchparameter_MitigateUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"datalist":"IcingaCheckService Status","behavior":"strict","data_type":"string"},"description":"Status for the specified service or services to check against.","caption":"Status","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"7","varname":"IcingaCheckService_String_Status","format":null},"9":{"settings":{"visibility":"visible"},"description":"This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this\ncheck","caption":"MitigateUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckService_Switchparameter_MitigateUnknown","format":null},"10":{"settings":{"datalist":"IcingaCheckService Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"10","varname":"IcingaCheckService_Int32_Verbosity","format":null},"11":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckService_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckService_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Allows to exclude services which might come in handy for checking services which are configured to start automatically\non Windows but are not running and weren\u0027t exited properly.","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckService_Array_Exclude","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of services which should be checked against the status. Supports \u0027*\u0027 for\nwildcards.","caption":"Service","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckService_Array_Service","format":null},"8":{"settings":{"datalist":"IcingaCheckService FilterStartupType","behavior":"strict","data_type":"array"},"description":"Allows to include only services with a specific startup type inside the monitoring,\nin case you check for a list of specific services by using `-Service`","caption":"FilterStartupType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckService_Array_FilterStartupType","format":null}}} diff --git a/config/director/Invoke-IcingaCheckStoragePool.json b/config/director/Invoke-IcingaCheckStoragePool.json index 41a64009..6009e29b 100644 --- a/config/director/Invoke-IcingaCheckStoragePool.json +++ b/config/director/Invoke-IcingaCheckStoragePool.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckStoragePool HealthStatusWarning":{"list_name":"IcingaCheckStoragePool HealthStatusWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool Verbosity":{"list_name":"IcingaCheckStoragePool Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusCritical":{"list_name":"IcingaCheckStoragePool HealthStatusCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckStoragePool":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckStoragePool","arguments":{"-RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$","order":"17"},"-IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$","order":"8"},"-Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$","order":"18"},"-IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$","order":"13"},"-HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$","order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$","order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckStoragePool\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$","order":"5"},"-IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$","set_if_format":"string","order":"99"},"-IncludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_IncludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ExcludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_ExcludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$","order":"9"},"-TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$","order":"7"},"-CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$","order":"10"},"-SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$","order":"12"},"-HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$","order":"15"},"-ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$","order":"11"},"-RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$","order":"16"},"-TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckStoragePool_Switchparameter_IncludePrimordial":false,"ifw_api_arguments":{"ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$"},"NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$"},"HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$"},"ThresholdInterval":{"value":"$IcingaCheckStoragePool_String_ThresholdInterval$"},"TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$"},"RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$"},"HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$"},"IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$"},"IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$"},"ExcludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_ExcludeStoragePool$"},"SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$"},"RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$"},"TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$"},"IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$"},"CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$"},"FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$"},"Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$"},"FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$"},"IncludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_IncludeStoragePool$"},"CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$"}},"ifw_api_command":"Invoke-IcingaCheckStoragePool","IcingaCheckStoragePool_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool IsPowerProtected is, whether the disks in this pool are able to tolerate power loss without data loss.\nFor example, they automatically flush volatile buffers to non-volatile media after external power is disconnected.","caption":"IsPowerProtectedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckStoragePool_Object_IsPowerProtectedCritical","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckStoragePool_Object_FreeSpaceWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system.","caption":"IncludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckStoragePool_Array_IncludeStoragePool","format":null},"21":{"settings":{"visibility":"visible"},"description":"A primordial pool, also known as the \u0027available storage\u0027 pool is where storage capacity is drawn and returned in the\ncreation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to\ntrue if you also want to check Primordial StoragePools. Default to false.","caption":"IncludePrimordial","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckStoragePool_Switchparameter_IncludePrimordial","format":null},"18":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckStoragePool_Object_HealthStatusCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool Capacity.","caption":"CapacityWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckStoragePool_Object_CapacityWarning","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Critical threshold in GB.","caption":"TotalUsedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckStoragePool_Object_TotalUsedCritical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckStoragePool_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckStoragePool_Object_FreeSpaceCritical","format":null},"17":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"17","varname":"IcingaCheckStoragePool_Object_HealthStatusWarning","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool IsReadOnly Attr.","caption":"IsReadOnlyCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckStoragePool_Object_IsReadOnlyCritical","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Warning threshold in GB.","caption":"TotalUsedWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckStoragePool_Object_TotalUsedWarning","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when\nunmapped or removed from the storage pool.","caption":"ClearOnDeallocateCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckStoragePool_Object_ClearOnDeallocateCritical","format":null},"20":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"20","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not.","caption":"SupportsDeduplicationCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckStoragePool_Object_SupportsDeduplicationCritical","format":null},"23":{"settings":{"datalist":"IcingaCheckStoragePool Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckStoragePool_Object_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system.","caption":"ExcludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckStoragePool_Array_ExcludeStoragePool","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckStoragePool_String_ThresholdInterval","format":null},"19":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool Capacity.","caption":"CapacityCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckStoragePool_Object_CapacityCritical","format":null}}} +{"DataList":{"IcingaCheckStoragePool HealthStatusWarning":{"list_name":"IcingaCheckStoragePool HealthStatusWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool Verbosity":{"list_name":"IcingaCheckStoragePool Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusCritical":{"list_name":"IcingaCheckStoragePool HealthStatusCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckStoragePool":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckStoragePool","arguments":{"-RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$","order":"17"},"-IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$","order":"8"},"-Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$","order":"18"},"-IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$","order":"13"},"-HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$","order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$","order":"5"},"-IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$","set_if_format":"string","order":"99"},"-IncludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_IncludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ExcludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_ExcludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$","order":"9"},"-TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$","order":"7"},"-CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$","order":"10"},"-SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$","order":"12"},"-HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$","order":"15"},"-ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$","order":"11"},"-RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$","order":"16"},"-TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckStoragePool_Switchparameter_IncludePrimordial":false,"ifw_api_arguments":{"ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$"},"NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$"},"HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$"},"ThresholdInterval":{"value":"$IcingaCheckStoragePool_String_ThresholdInterval$"},"TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$"},"RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$"},"HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$"},"IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$"},"IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$"},"ExcludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_ExcludeStoragePool$"},"SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$"},"RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$"},"TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$"},"IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$"},"CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$"},"FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$"},"Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$"},"FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$"},"IncludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_IncludeStoragePool$"},"CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$"}},"ifw_api_command":"Invoke-IcingaCheckStoragePool","IcingaCheckStoragePool_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool IsPowerProtected is, whether the disks in this pool are able to tolerate power loss without data loss.\nFor example, they automatically flush volatile buffers to non-volatile media after external power is disconnected.","caption":"IsPowerProtectedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckStoragePool_Object_IsPowerProtectedCritical","format":null},"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckStoragePool_Object_FreeSpaceWarning","format":null},"5":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system.","caption":"IncludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckStoragePool_Array_IncludeStoragePool","format":null},"21":{"settings":{"visibility":"visible"},"description":"A primordial pool, also known as the \u0027available storage\u0027 pool is where storage capacity is drawn and returned in the\ncreation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to\ntrue if you also want to check Primordial StoragePools. Default to false.","caption":"IncludePrimordial","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"21","varname":"IcingaCheckStoragePool_Switchparameter_IncludePrimordial","format":null},"18":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"18","varname":"IcingaCheckStoragePool_Object_HealthStatusCritical","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool Capacity.","caption":"CapacityWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckStoragePool_Object_CapacityWarning","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Critical threshold in GB.","caption":"TotalUsedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckStoragePool_Object_TotalUsedCritical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"22":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"22","varname":"IcingaCheckStoragePool_Switchparameter_NoPerfData","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckStoragePool_Object_FreeSpaceCritical","format":null},"17":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"17","varname":"IcingaCheckStoragePool_Object_HealthStatusWarning","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool IsReadOnly Attr.","caption":"IsReadOnlyCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckStoragePool_Object_IsReadOnlyCritical","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Warning threshold in GB.","caption":"TotalUsedWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckStoragePool_Object_TotalUsedWarning","format":null},"14":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when\nunmapped or removed from the storage pool.","caption":"ClearOnDeallocateCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckStoragePool_Object_ClearOnDeallocateCritical","format":null},"20":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"20","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not.","caption":"SupportsDeduplicationCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckStoragePool_Object_SupportsDeduplicationCritical","format":null},"23":{"settings":{"datalist":"IcingaCheckStoragePool Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"23","varname":"IcingaCheckStoragePool_Object_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system.","caption":"ExcludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckStoragePool_Array_ExcludeStoragePool","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckStoragePool_String_ThresholdInterval","format":null},"19":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool Capacity.","caption":"CapacityCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckStoragePool_Object_CapacityCritical","format":null}}} diff --git a/config/director/Invoke-IcingaCheckTCP.json b/config/director/Invoke-IcingaCheckTCP.json index 70e8c29c..c241826d 100644 --- a/config/director/Invoke-IcingaCheckTCP.json +++ b/config/director/Invoke-IcingaCheckTCP.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckTCP Verbosity":{"list_name":"IcingaCheckTCP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckTCP":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTCP","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckTCP\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Address":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_Address$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_Address$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTCP_Object_Critical$","order":"5"},"-NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Ports":{"value":{"body":"var arr = macro(\"$IcingaCheckTCP_Array_Ports$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Warning":{"value":"$IcingaCheckTCP_Object_Warning$","order":"4"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTCP_Switchparameter_Negate":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckTCP_String_ThresholdInterval$"},"Ports":{"value":"$IcingaCheckTCP_Array_Ports$"},"Critical":{"value":"$IcingaCheckTCP_Object_Critical$"},"Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$"},"Address":{"value":"$IcingaCheckTCP_String_Address$"},"Warning":{"value":"$IcingaCheckTCP_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTCP","IcingaCheckTCP_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument,\nthe plugin will return [CRITICAL] for successful connections instead","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckTCP_Switchparameter_Negate","format":null},"9":{"settings":{"visibility":"visible"},"description":"A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckTCP_Object_Critical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckTCP_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckTCP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckTCP_Object_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckTCP_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"A single or a list of ports to check on the target address","caption":"Ports","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckTCP_Array_Ports","format":null},"5":{"settings":{"visibility":"visible"},"description":"The IP address or FQDN of the target host","caption":"Address","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckTCP_String_Address","format":null},"8":{"settings":{"visibility":"visible"},"description":"A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckTCP_Object_Warning","format":null}}} +{"DataList":{"IcingaCheckTCP Verbosity":{"list_name":"IcingaCheckTCP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckTCP":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTCP","arguments":{"-Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Address":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_Address$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_Address$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTCP_Object_Critical$","order":"5"},"-NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Ports":{"value":{"body":"var arr = macro(\"$IcingaCheckTCP_Array_Ports$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Warning":{"value":"$IcingaCheckTCP_Object_Warning$","order":"4"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTCP_Switchparameter_Negate":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckTCP_String_ThresholdInterval$"},"Ports":{"value":"$IcingaCheckTCP_Array_Ports$"},"Critical":{"value":"$IcingaCheckTCP_Object_Critical$"},"Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$"},"Address":{"value":"$IcingaCheckTCP_String_Address$"},"Warning":{"value":"$IcingaCheckTCP_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTCP","IcingaCheckTCP_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument,\nthe plugin will return [CRITICAL] for successful connections instead","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckTCP_Switchparameter_Negate","format":null},"9":{"settings":{"visibility":"visible"},"description":"A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckTCP_Object_Critical","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckTCP_Switchparameter_NoPerfData","format":null},"11":{"settings":{"datalist":"IcingaCheckTCP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"11","varname":"IcingaCheckTCP_Object_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckTCP_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"A single or a list of ports to check on the target address","caption":"Ports","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"6","varname":"IcingaCheckTCP_Array_Ports","format":null},"5":{"settings":{"visibility":"visible"},"description":"The IP address or FQDN of the target host","caption":"Address","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckTCP_String_Address","format":null},"8":{"settings":{"visibility":"visible"},"description":"A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckTCP_Object_Warning","format":null}}} diff --git a/config/director/Invoke-IcingaCheckTimeSync.json b/config/director/Invoke-IcingaCheckTimeSync.json index 23d49190..541e3d3f 100644 --- a/config/director/Invoke-IcingaCheckTimeSync.json +++ b/config/director/Invoke-IcingaCheckTimeSync.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckTimeSync Verbosity":{"list_name":"IcingaCheckTimeSync Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckTimeSync":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTimeSync","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckTimeSync\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$","order":"8"},"-Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$","order":"4"},"-Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$","order":"6"},"-Port":{"value":"$IcingaCheckTimeSync_Int32_Port$","order":"7"},"-IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$","order":"5"},"-Server":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$","order":"3"},"-IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTimeSync_Switchparameter_IPV4":false,"IcingaCheckTimeSync_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$"},"TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$"},"ThresholdInterval":{"value":"$IcingaCheckTimeSync_String_ThresholdInterval$"},"Server":{"value":"$IcingaCheckTimeSync_String_Server$"},"Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$"},"Port":{"value":"$IcingaCheckTimeSync_Int32_Port$"},"Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$"},"Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$"},"IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$"},"Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTimeSync","IcingaCheckTimeSync_Switchparameter_IgnoreService":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Warning threshold e.g 10ms or 0.01s","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckTimeSync_Object_Warning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Seconds before connection times out (default: 10)","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"9","varname":"IcingaCheckTimeSync_Int32_Timeout","format":null},"10":{"settings":{"visibility":"visible"},"description":"Use IPV4 connection. Default $FALSE","caption":"IPV4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckTimeSync_Switchparameter_IPV4","format":null},"12":{"settings":{"visibility":"visible"},"description":"Ignores the W32Time service during check execution and will not throw warning or critical in case the service is not running","caption":"IgnoreService","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckTimeSync_Switchparameter_IgnoreService","format":null},"11":{"settings":{"visibility":"visible"},"description":"Port number (default: 123)","caption":"Port","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"11","varname":"IcingaCheckTimeSync_Int32_Port","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"14":{"settings":{"datalist":"IcingaCheckTimeSync Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"14","varname":"IcingaCheckTimeSync_Int32_Verbosity","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckTimeSync_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckTimeSync_Switchparameter_NoPerfData","format":null},"6":{"settings":{"visibility":"visible"},"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.\nInvoke-IcingaCheckTimeSync will return OK, if there is no difference between them,\nWARNING, if the time difference exceeds the Warning threshold,\nCRITICAL, if the time difference exceeds the Critical threshold.","caption":"TimeOffset","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckTimeSync_Object_TimeOffset","format":null},"5":{"settings":{"visibility":"visible"},"description":"The NTP Server you want to connect to.","caption":"Server","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckTimeSync_String_Server","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Critical threshold e.g 20ms or 0.02s.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckTimeSync_Object_Critical","format":null}}} +{"DataList":{"IcingaCheckTimeSync Verbosity":{"list_name":"IcingaCheckTimeSync Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckTimeSync":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTimeSync","arguments":{"-Port":{"value":"$IcingaCheckTimeSync_Int32_Port$","order":"7"},"-Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$","order":"6"},"-NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$","order":"4"},"-Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$","order":"5"},"-Server":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$","order":"3"},"-IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTimeSync_Switchparameter_IPV4":false,"IcingaCheckTimeSync_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$"},"TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$"},"ThresholdInterval":{"value":"$IcingaCheckTimeSync_String_ThresholdInterval$"},"Server":{"value":"$IcingaCheckTimeSync_String_Server$"},"Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$"},"Port":{"value":"$IcingaCheckTimeSync_Int32_Port$"},"Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$"},"Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$"},"IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$"},"Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTimeSync","IcingaCheckTimeSync_Switchparameter_IgnoreService":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Warning threshold e.g 10ms or 0.01s","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckTimeSync_Object_Warning","format":null},"9":{"settings":{"visibility":"visible"},"description":"Seconds before connection times out (default: 10)","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"9","varname":"IcingaCheckTimeSync_Int32_Timeout","format":null},"10":{"settings":{"visibility":"visible"},"description":"Use IPV4 connection. Default $FALSE","caption":"IPV4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckTimeSync_Switchparameter_IPV4","format":null},"12":{"settings":{"visibility":"visible"},"description":"Ignores the W32Time service during check execution and will not throw warning or critical in case the service is not running","caption":"IgnoreService","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckTimeSync_Switchparameter_IgnoreService","format":null},"11":{"settings":{"visibility":"visible"},"description":"Port number (default: 123)","caption":"Port","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"11","varname":"IcingaCheckTimeSync_Int32_Port","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"14":{"settings":{"datalist":"IcingaCheckTimeSync Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"14","varname":"IcingaCheckTimeSync_Int32_Verbosity","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckTimeSync_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckTimeSync_Switchparameter_NoPerfData","format":null},"6":{"settings":{"visibility":"visible"},"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.\nInvoke-IcingaCheckTimeSync will return OK, if there is no difference between them,\nWARNING, if the time difference exceeds the Warning threshold,\nCRITICAL, if the time difference exceeds the Critical threshold.","caption":"TimeOffset","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckTimeSync_Object_TimeOffset","format":null},"5":{"settings":{"visibility":"visible"},"description":"The NTP Server you want to connect to.","caption":"Server","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckTimeSync_String_Server","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Critical threshold e.g 20ms or 0.02s.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckTimeSync_Object_Critical","format":null}}} diff --git a/config/director/Invoke-IcingaCheckUNCPath.json b/config/director/Invoke-IcingaCheckUNCPath.json index 45c8f9c2..bdb7d197 100644 --- a/config/director/Invoke-IcingaCheckUNCPath.json +++ b/config/director/Invoke-IcingaCheckUNCPath.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckUNCPath Verbosity":{"list_name":"IcingaCheckUNCPath Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUNCPath":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUNCPath","arguments":{"-Path":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-DisplayAlias":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$","order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckUNCPath_Securestring_Password$\u0027)","order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUNCPath\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-User":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_User$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_User$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$","order":"7"},"-WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$","order":"8"},"-Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$","order":"6"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace":false,"ifw_api_arguments":{"WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$"},"DisplayAlias":{"value":"$IcingaCheckUNCPath_String_DisplayAlias$"},"Path":{"value":"$IcingaCheckUNCPath_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckUNCPath_String_ThresholdInterval$"},"CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$"},"Password":{"value":"$IcingaCheckUNCPath_Securestring_Password$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$"},"Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$"},"Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$"},"User":{"value":"$IcingaCheckUNCPath_String_User$"}},"ifw_api_command":"Invoke-IcingaCheckUNCPath","IcingaCheckUNCPath_Switchparameter_NoPerfData":false}}},"Datafield":{"7":{"settings":{"visibility":"hidden"},"description":"The password to authenticate the given user for. Has to be a secure string","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUNCPath_Securestring_Password","format":null},"5":{"settings":{"visibility":"visible"},"description":"The path to a volume or network share you want to monitor, like \"\\\\example.com\\Home\" or \"C:\\ClusterSharedVolume\\Volume1\"","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUNCPath_String_Path","format":null},"12":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"CriticalTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckUNCPath_Object_CriticalTotal","format":null},"10":{"settings":{"visibility":"visible"},"description":"A critical threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckUNCPath_Object_Critical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value\ninstead of shorten the output and make it more visual appealing.","caption":"DisplayAlias","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckUNCPath_String_DisplayAlias","format":null},"11":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"WarningTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckUNCPath_Object_WarningTotal","format":null},"9":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckUNCPath_Object_Warning","format":null},"14":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckUNCPath_Switchparameter_NoPerfData","format":null},"15":{"settings":{"datalist":"IcingaCheckUNCPath Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"15","varname":"IcingaCheckUNCPath_Object_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Provide a username and/or domain to run this check for. The format can either be \u0027domain\\user\u0027 or \u0027domain@user\u0027","caption":"User","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUNCPath_String_User","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUNCPath_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace","format":null}}} +{"DataList":{"IcingaCheckUNCPath Verbosity":{"list_name":"IcingaCheckUNCPath Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUNCPath":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUNCPath","arguments":{"-WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$","order":"8"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$","order":"10"},"-CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$","order":"9"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckUNCPath_Securestring_Password$\u0027)","order":"4"},"-Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$","order":"6"},"-Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$","order":"7"},"-NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-User":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_User$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_User$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-DisplayAlias":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace":false,"ifw_api_arguments":{"WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$"},"DisplayAlias":{"value":"$IcingaCheckUNCPath_String_DisplayAlias$"},"Path":{"value":"$IcingaCheckUNCPath_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckUNCPath_String_ThresholdInterval$"},"CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$"},"Password":{"value":"$IcingaCheckUNCPath_Securestring_Password$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$"},"Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$"},"Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$"},"User":{"value":"$IcingaCheckUNCPath_String_User$"}},"ifw_api_command":"Invoke-IcingaCheckUNCPath","IcingaCheckUNCPath_Switchparameter_NoPerfData":false}}},"Datafield":{"7":{"settings":{"visibility":"hidden"},"description":"The password to authenticate the given user for. Has to be a secure string","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUNCPath_Securestring_Password","format":null},"5":{"settings":{"visibility":"visible"},"description":"The path to a volume or network share you want to monitor, like \"\\\\example.com\\Home\" or \"C:\\ClusterSharedVolume\\Volume1\"","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUNCPath_String_Path","format":null},"12":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"CriticalTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckUNCPath_Object_CriticalTotal","format":null},"10":{"settings":{"visibility":"visible"},"description":"A critical threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckUNCPath_Object_Critical","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value\ninstead of shorten the output and make it more visual appealing.","caption":"DisplayAlias","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckUNCPath_String_DisplayAlias","format":null},"11":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"WarningTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckUNCPath_Object_WarningTotal","format":null},"9":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckUNCPath_Object_Warning","format":null},"14":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"14","varname":"IcingaCheckUNCPath_Switchparameter_NoPerfData","format":null},"15":{"settings":{"datalist":"IcingaCheckUNCPath Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"15","varname":"IcingaCheckUNCPath_Object_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Provide a username and/or domain to run this check for. The format can either be \u0027domain\\user\u0027 or \u0027domain@user\u0027","caption":"User","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUNCPath_String_User","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUNCPath_String_ThresholdInterval","format":null},"13":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace","format":null}}} diff --git a/config/director/Invoke-IcingaCheckUpdates.json b/config/director/Invoke-IcingaCheckUpdates.json index 2b8a9b3d..4dd419b0 100644 --- a/config/director/Invoke-IcingaCheckUpdates.json +++ b/config/director/Invoke-IcingaCheckUpdates.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckUpdates Verbosity":{"list_name":"IcingaCheckUpdates Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUpdates":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUpdates","arguments":{"-WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$","order":"7"},"-Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$","order":"13"},"-WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$","order":"12"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUpdates\u0027 ","order":"0"},"-WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$","order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$","order":"11"},"-Warning":{"value":"$IcingaCheckUpdates_Object_Warning$","order":"3"},"-CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$","order":"10"},"-CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$","order":"8"},"-Critical":{"value":"$IcingaCheckUpdates_Object_Critical$","order":"4"},"-CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$","set_if_format":"string","order":"99"},"-UpdateFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckUpdates_Array_UpdateFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$","order":"5"},"-CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUpdates_Switchparameter_NoPerfData":false,"IcingaCheckUpdates_Switchparameter_WarnOnReboot":false,"IcingaCheckUpdates_Switchparameter_CritOnReboot":false,"ifw_api_arguments":{"WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$"},"CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$"},"CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$"},"NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$"},"WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$"},"ThresholdInterval":{"value":"$IcingaCheckUpdates_String_ThresholdInterval$"},"WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$"},"CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$"},"CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$"},"WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$"},"Warning":{"value":"$IcingaCheckUpdates_Object_Warning$"},"Critical":{"value":"$IcingaCheckUpdates_Object_Critical$"},"CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$"},"Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$"},"UpdateFilter":{"value":"$IcingaCheckUpdates_Array_UpdateFilter$"},"WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$"}},"ifw_api_command":"Invoke-IcingaCheckUpdates"}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\nwarning if one is pending","caption":"WarnOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"16","varname":"IcingaCheckUpdates_Switchparameter_WarnOnReboot","format":null},"7":{"settings":{"visibility":"visible"},"description":"The critical threshold for the total pending update count on the Windows machine","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUpdates_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates\nbeyond the provided categories","caption":"UpdateFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckUpdates_Array_UpdateFilter","format":null},"18":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckUpdates_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"The warning threshold for the Microsoft Defender update count on the Windows machine","caption":"WarningDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckUpdates_Object_WarningDefender","format":null},"10":{"settings":{"visibility":"visible"},"description":"The warning threshold for the rollup update count on the Windows machine","caption":"WarningRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckUpdates_Object_WarningRollups","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"The warning threshold for the security update count on the Windows machine","caption":"WarningSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckUpdates_Object_WarningSecurity","format":null},"17":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\ncritical if one is pending","caption":"CritOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckUpdates_Switchparameter_CritOnReboot","format":null},"11":{"settings":{"visibility":"visible"},"description":"The critical threshold for the rollup update count on the Windows machine","caption":"CriticalRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckUpdates_Object_CriticalRollups","format":null},"9":{"settings":{"visibility":"visible"},"description":"The critical threshold for the security update count on the Windows machine","caption":"CriticalSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckUpdates_Object_CriticalSecurity","format":null},"14":{"settings":{"visibility":"visible"},"description":"The warning threshold for all other updates on the Windows machine","caption":"WarningOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckUpdates_Object_WarningOther","format":null},"15":{"settings":{"visibility":"visible"},"description":"The critical threshold for all other updates on the Windows machine","caption":"CriticalOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckUpdates_Object_CriticalOther","format":null},"6":{"settings":{"visibility":"visible"},"description":"The warning threshold for the total pending update count on the Windows machine","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUpdates_Object_Warning","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUpdates_String_ThresholdInterval","format":null},"19":{"settings":{"datalist":"IcingaCheckUpdates Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckUpdates_Int32_Verbosity","format":null},"13":{"settings":{"visibility":"visible"},"description":"The critical threshold for the Microsoft Defender update count on the Windows machine","caption":"CriticalDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckUpdates_Object_CriticalDefender","format":null}}} +{"DataList":{"IcingaCheckUpdates Verbosity":{"list_name":"IcingaCheckUpdates Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUpdates":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUpdates","arguments":{"-WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$","order":"7"},"-Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$","order":"13"},"-WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$","order":"12"},"-WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$","order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$","order":"11"},"-Warning":{"value":"$IcingaCheckUpdates_Object_Warning$","order":"3"},"-CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$","order":"10"},"-CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$","order":"8"},"-Critical":{"value":"$IcingaCheckUpdates_Object_Critical$","order":"4"},"-CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$","set_if_format":"string","order":"99"},"-UpdateFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckUpdates_Array_UpdateFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$","order":"5"},"-CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUpdates_Switchparameter_NoPerfData":false,"IcingaCheckUpdates_Switchparameter_WarnOnReboot":false,"IcingaCheckUpdates_Switchparameter_CritOnReboot":false,"ifw_api_arguments":{"WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$"},"CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$"},"CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$"},"NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$"},"WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$"},"ThresholdInterval":{"value":"$IcingaCheckUpdates_String_ThresholdInterval$"},"WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$"},"CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$"},"CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$"},"WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$"},"Warning":{"value":"$IcingaCheckUpdates_Object_Warning$"},"Critical":{"value":"$IcingaCheckUpdates_Object_Critical$"},"CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$"},"Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$"},"UpdateFilter":{"value":"$IcingaCheckUpdates_Array_UpdateFilter$"},"WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$"}},"ifw_api_command":"Invoke-IcingaCheckUpdates"}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\nwarning if one is pending","caption":"WarnOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"16","varname":"IcingaCheckUpdates_Switchparameter_WarnOnReboot","format":null},"7":{"settings":{"visibility":"visible"},"description":"The critical threshold for the total pending update count on the Windows machine","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUpdates_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates\nbeyond the provided categories","caption":"UpdateFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckUpdates_Array_UpdateFilter","format":null},"18":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckUpdates_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"The warning threshold for the Microsoft Defender update count on the Windows machine","caption":"WarningDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckUpdates_Object_WarningDefender","format":null},"10":{"settings":{"visibility":"visible"},"description":"The warning threshold for the rollup update count on the Windows machine","caption":"WarningRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckUpdates_Object_WarningRollups","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"8":{"settings":{"visibility":"visible"},"description":"The warning threshold for the security update count on the Windows machine","caption":"WarningSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckUpdates_Object_WarningSecurity","format":null},"17":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\ncritical if one is pending","caption":"CritOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckUpdates_Switchparameter_CritOnReboot","format":null},"11":{"settings":{"visibility":"visible"},"description":"The critical threshold for the rollup update count on the Windows machine","caption":"CriticalRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckUpdates_Object_CriticalRollups","format":null},"9":{"settings":{"visibility":"visible"},"description":"The critical threshold for the security update count on the Windows machine","caption":"CriticalSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckUpdates_Object_CriticalSecurity","format":null},"14":{"settings":{"visibility":"visible"},"description":"The warning threshold for all other updates on the Windows machine","caption":"WarningOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckUpdates_Object_WarningOther","format":null},"15":{"settings":{"visibility":"visible"},"description":"The critical threshold for all other updates on the Windows machine","caption":"CriticalOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckUpdates_Object_CriticalOther","format":null},"6":{"settings":{"visibility":"visible"},"description":"The warning threshold for the total pending update count on the Windows machine","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUpdates_Object_Warning","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUpdates_String_ThresholdInterval","format":null},"19":{"settings":{"datalist":"IcingaCheckUpdates Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckUpdates_Int32_Verbosity","format":null},"13":{"settings":{"visibility":"visible"},"description":"The critical threshold for the Microsoft Defender update count on the Windows machine","caption":"CriticalDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckUpdates_Object_CriticalDefender","format":null}}} diff --git a/config/director/Invoke-IcingaCheckUptime.json b/config/director/Invoke-IcingaCheckUptime.json index 4531fc2e..62278ef4 100644 --- a/config/director/Invoke-IcingaCheckUptime.json +++ b/config/director/Invoke-IcingaCheckUptime.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckUptime Verbosity":{"list_name":"IcingaCheckUptime Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUptime":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUptime","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUptime\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Warning$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Warning$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Critical$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Critical$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUptime_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckUptime_String_Critical$"},"Warning":{"value":"$IcingaCheckUptime_String_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckUptime_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUptime"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckUptime_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUptime_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUptime_String_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUptime_String_Warning","format":null},"8":{"settings":{"datalist":"IcingaCheckUptime Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckUptime_Int32_Verbosity","format":null}}} +{"DataList":{"IcingaCheckUptime Verbosity":{"list_name":"IcingaCheckUptime Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUptime":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUptime","arguments":{"-Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$","order":"4"},"-Warning":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Warning$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Warning$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Critical$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Critical$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUptime_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckUptime_String_Critical$"},"Warning":{"value":"$IcingaCheckUptime_String_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckUptime_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUptime"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckUptime_Switchparameter_NoPerfData","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUptime_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUptime_String_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUptime_String_Warning","format":null},"8":{"settings":{"datalist":"IcingaCheckUptime Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckUptime_Int32_Verbosity","format":null}}} diff --git a/config/director/Invoke-IcingaCheckUsedPartitionSpace.json b/config/director/Invoke-IcingaCheckUsedPartitionSpace.json index 88ee3063..02c6319f 100644 --- a/config/director/Invoke-IcingaCheckUsedPartitionSpace.json +++ b/config/director/Invoke-IcingaCheckUsedPartitionSpace.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckUsedPartitionSpace Verbosity":{"list_name":"IcingaCheckUsedPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckUsedPartitionSpace":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsedPartitionSpace","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUsedPartitionSpace\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckUsedPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckUsedPartitionSpace_Array_Include$"}},"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_command":"Invoke-IcingaCheckUsedPartitionSpace","IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData":false,"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckUsedPartitionSpace_Array_Include","format":null},"9":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUsedPartitionSpace_String_ThresholdInterval","format":null},"13":{"settings":{"datalist":"IcingaCheckUsedPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckUsedPartitionSpace_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUsedPartitionSpace_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUsedPartitionSpace_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckUsedPartitionSpace_Array_Exclude","format":null}}} +{"DataList":{"IcingaCheckUsedPartitionSpace Verbosity":{"list_name":"IcingaCheckUsedPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckUsedPartitionSpace":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsedPartitionSpace","arguments":{"-Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckUsedPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckUsedPartitionSpace_Array_Include$"}},"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_command":"Invoke-IcingaCheckUsedPartitionSpace","IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData":false,"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckUsedPartitionSpace_Array_Include","format":null},"9":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"9","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"10":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUsedPartitionSpace_String_ThresholdInterval","format":null},"13":{"settings":{"datalist":"IcingaCheckUsedPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"13","varname":"IcingaCheckUsedPartitionSpace_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUsedPartitionSpace_Object_Critical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckUsedPartitionSpace_Object_Warning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckUsedPartitionSpace_Array_Exclude","format":null}}} diff --git a/config/director/Invoke-IcingaCheckUsers.json b/config/director/Invoke-IcingaCheckUsers.json index 1ccf17e5..2b255286 100644 --- a/config/director/Invoke-IcingaCheckUsers.json +++ b/config/director/Invoke-IcingaCheckUsers.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckUsers Verbosity":{"list_name":"IcingaCheckUsers Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUsers":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsers","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUsers\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckUsers_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckUsers_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Username":{"value":{"body":"var arr = macro(\"$IcingaCheckUsers_Array_Username$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUsers_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Username":{"value":"$IcingaCheckUsers_Array_Username$"},"ThresholdInterval":{"value":"$IcingaCheckUsers_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckUsers_Object_Critical$"},"Warning":{"value":"$IcingaCheckUsers_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUsers"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUsers_Object_Critical","format":null},"9":{"settings":{"datalist":"IcingaCheckUsers Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckUsers_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUsers_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUsers_Object_Warning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames to match against. e.g \u0027Administrator\u0027, \u0027Icinga\u0027","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckUsers_Array_Username","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckUsers_Switchparameter_NoPerfData","format":null}}} +{"DataList":{"IcingaCheckUsers Verbosity":{"list_name":"IcingaCheckUsers Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckUsers":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsers","arguments":{"-Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckUsers_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckUsers_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Username":{"value":{"body":"var arr = macro(\"$IcingaCheckUsers_Array_Username$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUsers_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Username":{"value":"$IcingaCheckUsers_Array_Username$"},"ThresholdInterval":{"value":"$IcingaCheckUsers_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckUsers_Object_Critical$"},"Warning":{"value":"$IcingaCheckUsers_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUsers"}}},"Datafield":{"7":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckUsers_Object_Critical","format":null},"9":{"settings":{"datalist":"IcingaCheckUsers Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckUsers_Int32_Verbosity","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUsers_String_ThresholdInterval","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckUsers_Object_Warning","format":null},"5":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames to match against. e.g \u0027Administrator\u0027, \u0027Icinga\u0027","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"5","varname":"IcingaCheckUsers_Array_Username","format":null},"8":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckUsers_Switchparameter_NoPerfData","format":null}}} diff --git a/config/director/Plugins_Bundle.json b/config/director/Plugins_Bundle.json index 67c8ceb1..40903771 100644 --- a/config/director/Plugins_Bundle.json +++ b/config/director/Plugins_Bundle.json @@ -1 +1 @@ -{"DataList":{"IcingaCheckNetworkInterface IfOperationalStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckFirewall Verbosity":{"list_name":"IcingaCheckFirewall Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckPartitionSpace Verbosity":{"list_name":"IcingaCheckPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHTTPStatus Verbosity":{"list_name":"IcingaCheckHTTPStatus Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Verbosity":{"list_name":"IcingaCheckNLA Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckMemory Verbosity":{"list_name":"IcingaCheckMemory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService Verbosity":{"list_name":"IcingaCheckService Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog ExcludeEntryType":{"list_name":"IcingaCheckEventlog ExcludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask Verbosity":{"list_name":"IcingaCheckScheduledTask Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusWarning":{"list_name":"IcingaCheckStoragePool HealthStatusWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckUsedPartitionSpace Verbosity":{"list_name":"IcingaCheckUsedPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Verbosity":{"list_name":"IcingaCheckCheckSum Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCPU Verbosity":{"list_name":"IcingaCheckCPU Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse Verbosity":{"list_name":"IcingaCheckHttpJsonResponse Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog IncludeEntryType":{"list_name":"IcingaCheckEventlog IncludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"IcingaCheckMPIO Verbosity":{"list_name":"IcingaCheckMPIO Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckDirectory Verbosity":{"list_name":"IcingaCheckDirectory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate CertStore":{"list_name":"IcingaCheckCertificate CertStore","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"None","entry_name":"None","format":"string"},{"allowed_roles":null,"entry_value":"*","entry_name":"*","format":"string"},{"allowed_roles":null,"entry_value":"LocalMachine","entry_name":"LocalMachine","format":"string"},{"allowed_roles":null,"entry_value":"CurrentUser","entry_name":"CurrentUser","format":"string"}],"owner":"cstein"},"IcingaCheckProcessCount Verbosity":{"list_name":"IcingaCheckProcessCount Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate Verbosity":{"list_name":"IcingaCheckCertificate Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse StatusOnRequestError":{"list_name":"IcingaCheckHttpJsonResponse StatusOnRequestError","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Critical","entry_name":"Critical","format":"string"},{"allowed_roles":null,"entry_value":"OK","entry_name":"OK","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog Verbosity":{"list_name":"IcingaCheckEventlog Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface Verbosity":{"list_name":"IcingaCheckNetworkInterface Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask State":{"list_name":"IcingaCheckScheduledTask State","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Queued","entry_name":"Queued","format":"string"},{"allowed_roles":null,"entry_value":"Ready","entry_name":"Ready","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"}],"owner":"cstein"},"IcingaCheckPerfCounter Verbosity":{"list_name":"IcingaCheckPerfCounter Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService Status":{"list_name":"IcingaCheckService Status","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Stopped","entry_name":"Stopped","format":"string"},{"allowed_roles":null,"entry_value":"StartPending","entry_name":"StartPending","format":"string"},{"allowed_roles":null,"entry_value":"StopPending","entry_name":"StopPending","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"},{"allowed_roles":null,"entry_value":"ContinuePending","entry_name":"ContinuePending","format":"string"},{"allowed_roles":null,"entry_value":"PausePending","entry_name":"PausePending","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfAdminStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfAdminStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"}],"owner":"cstein"},"IcingaCheckProcess Verbosity":{"list_name":"IcingaCheckProcess Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckTimeSync Verbosity":{"list_name":"IcingaCheckTimeSync Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUptime Verbosity":{"list_name":"IcingaCheckUptime Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Algorithm":{"list_name":"IcingaCheckCheckSum Algorithm","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"SHA1","entry_name":"SHA1","format":"string"},{"allowed_roles":null,"entry_value":"SHA256","entry_name":"SHA256","format":"string"},{"allowed_roles":null,"entry_value":"SHA384","entry_name":"SHA384","format":"string"},{"allowed_roles":null,"entry_value":"SHA512","entry_name":"SHA512","format":"string"},{"allowed_roles":null,"entry_value":"MD5","entry_name":"MD5","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool Verbosity":{"list_name":"IcingaCheckStoragePool Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusCritical":{"list_name":"IcingaCheckStoragePool HealthStatusCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckDiskHealth Verbosity":{"list_name":"IcingaCheckDiskHealth Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUpdates Verbosity":{"list_name":"IcingaCheckUpdates Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Profile":{"list_name":"IcingaCheckNLA Profile","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"DomainAuthenticated","entry_name":"DomainAuthenticated","format":"string"},{"allowed_roles":null,"entry_value":"Public","entry_name":"Public","format":"string"},{"allowed_roles":null,"entry_value":"Private","entry_name":"Private","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckICMP Verbosity":{"list_name":"IcingaCheckICMP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckUsers Verbosity":{"list_name":"IcingaCheckUsers Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUNCPath Verbosity":{"list_name":"IcingaCheckUNCPath Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckTCP Verbosity":{"list_name":"IcingaCheckTCP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService FilterStartupType":{"list_name":"IcingaCheckService FilterStartupType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Boot","entry_name":"Boot","format":"string"},{"allowed_roles":null,"entry_value":"System","entry_name":"System","format":"string"},{"allowed_roles":null,"entry_value":"Automatic","entry_name":"Automatic","format":"string"},{"allowed_roles":null,"entry_value":"Manual","entry_name":"Manual","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMPIO":{"fields":[{"datafield_id":170,"is_required":"n","var_filter":null},{"datafield_id":171,"is_required":"n","var_filter":null},{"datafield_id":172,"is_required":"n","var_filter":null},{"datafield_id":173,"is_required":"n","var_filter":null},{"datafield_id":174,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMPIO","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckMPIO\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckMPIO_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMPIO_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMPIO_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMPIO_Object_Critical$"},"Warning":{"value":"$IcingaCheckMPIO_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckMPIO_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMPIO"}},"Invoke-IcingaCheckUsers":{"fields":[{"datafield_id":367,"is_required":"n","var_filter":null},{"datafield_id":368,"is_required":"n","var_filter":null},{"datafield_id":369,"is_required":"n","var_filter":null},{"datafield_id":370,"is_required":"n","var_filter":null},{"datafield_id":371,"is_required":"n","var_filter":null},{"datafield_id":372,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsers","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUsers\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckUsers_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckUsers_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Username":{"value":{"body":"var arr = macro(\"$IcingaCheckUsers_Array_Username$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUsers_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Username":{"value":"$IcingaCheckUsers_Array_Username$"},"ThresholdInterval":{"value":"$IcingaCheckUsers_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckUsers_Object_Critical$"},"Warning":{"value":"$IcingaCheckUsers_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUsers"}},"Invoke-IcingaCheckCertificate":{"fields":[{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCertificate","arguments":{"-CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$","order":"9"},"-CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$","order":"4"},"-Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$","order":"12"},"-CertSubject":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertSubject$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$","set_if_format":"string","order":"99"},"-WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$","order":"3"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCertificate\u0027 ","order":"0"},"-CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CertStore":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$","set_if_format":"string","order":"99"},"-ExcludePattern":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_ExcludePattern$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-CertPaths":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertPaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-CertThumbprint":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertThumbprint$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-CertName":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCertificate_Switchparameter_IgnoreEmpty":false,"IcingaCheckCertificate_Switchparameter_Recurse":false,"ifw_api_arguments":{"CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$"},"CertPaths":{"value":"$IcingaCheckCertificate_Array_CertPaths$"},"CertName":{"value":"$IcingaCheckCertificate_Array_CertName$"},"CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$"},"Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$"},"ThresholdInterval":{"value":"$IcingaCheckCertificate_String_ThresholdInterval$"},"CertThumbprint":{"value":"$IcingaCheckCertificate_Array_CertThumbprint$"},"CertStore":{"value":"$IcingaCheckCertificate_String_CertStore$"},"CertSubject":{"value":"$IcingaCheckCertificate_Array_CertSubject$"},"IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$"},"Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$"},"CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$"},"WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$"},"ExcludePattern":{"value":"$IcingaCheckCertificate_Array_ExcludePattern$"},"Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$"}},"ifw_api_command":"Invoke-IcingaCheckCertificate","IcingaCheckCertificate_Switchparameter_Trusted":false}},"Invoke-IcingaCheckMemory":{"fields":[{"datafield_id":161,"is_required":"n","var_filter":null},{"datafield_id":162,"is_required":"n","var_filter":null},{"datafield_id":163,"is_required":"n","var_filter":null},{"datafield_id":164,"is_required":"n","var_filter":null},{"datafield_id":165,"is_required":"n","var_filter":null},{"datafield_id":166,"is_required":"n","var_filter":null},{"datafield_id":167,"is_required":"n","var_filter":null},{"datafield_id":168,"is_required":"n","var_filter":null},{"datafield_id":169,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMemory","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckMemory\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$","order":"5"},"-ExcludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_ExcludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-Warning":{"value":"$IcingaCheckMemory_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMemory_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$","order":"4"},"-IncludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_IncludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMemory_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMemory_Object_Critical$"},"ThresholdInterval":{"value":"$IcingaCheckMemory_String_ThresholdInterval$"},"PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$"},"PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$"},"IncludePageFile":{"value":"$IcingaCheckMemory_Array_IncludePageFile$"},"Warning":{"value":"$IcingaCheckMemory_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$"},"ExcludePageFile":{"value":"$IcingaCheckMemory_Array_ExcludePageFile$"},"Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMemory"}},"Invoke-IcingaCheckPartitionSpace":{"fields":[{"datafield_id":216,"is_required":"n","var_filter":null},{"datafield_id":217,"is_required":"n","var_filter":null},{"datafield_id":218,"is_required":"n","var_filter":null},{"datafield_id":219,"is_required":"n","var_filter":null},{"datafield_id":220,"is_required":"n","var_filter":null},{"datafield_id":221,"is_required":"n","var_filter":null},{"datafield_id":222,"is_required":"n","var_filter":null},{"datafield_id":223,"is_required":"n","var_filter":null},{"datafield_id":224,"is_required":"n","var_filter":null},{"datafield_id":225,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPartitionSpace","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckPartitionSpace\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckPartitionSpace_Array_Include$"}},"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown":false,"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckPartitionSpace_Switchparameter_NoPerfData":false,"ifw_api_command":"Invoke-IcingaCheckPartitionSpace"}},"Invoke-IcingaCheckHTTPStatus":{"fields":[{"datafield_id":129,"is_required":"n","var_filter":null},{"datafield_id":130,"is_required":"n","var_filter":null},{"datafield_id":131,"is_required":"n","var_filter":null},{"datafield_id":132,"is_required":"n","var_filter":null},{"datafield_id":133,"is_required":"n","var_filter":null},{"datafield_id":134,"is_required":"n","var_filter":null},{"datafield_id":135,"is_required":"n","var_filter":null},{"datafield_id":136,"is_required":"n","var_filter":null},{"datafield_id":137,"is_required":"n","var_filter":null},{"datafield_id":138,"is_required":"n","var_filter":null},{"datafield_id":139,"is_required":"n","var_filter":null},{"datafield_id":140,"is_required":"n","var_filter":null},{"datafield_id":141,"is_required":"n","var_filter":null},{"datafield_id":142,"is_required":"n","var_filter":null},{"datafield_id":143,"is_required":"n","var_filter":null},{"datafield_id":144,"is_required":"n","var_filter":null},{"datafield_id":145,"is_required":"n","var_filter":null},{"datafield_id":146,"is_required":"n","var_filter":null},{"datafield_id":147,"is_required":"n","var_filter":null},{"datafield_id":148,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHTTPStatus","arguments":{"-StatusCode":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_StatusCode$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$","order":"16"},"-Content":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Content$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-ProxyUsername":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$","set_if_format":"string","order":"99"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckHTTPStatus\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_Password$\u0027)","order":"9"},"-Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$","order":"2"},"-ProxyServer":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-ProxyPassword":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_ProxyPassword$\u0027)","order":"11"},"-Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$","order":"15"},"-VHost":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$","order":"3"},"-Headers":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Headers$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$","order":"7"},"-Url":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Url$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHTTPStatus_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Url":{"value":"$IcingaCheckHTTPStatus_Array_Url$"},"Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$"},"Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHTTPStatus_String_Username$"},"Password":{"value":"$IcingaCheckHTTPStatus_Securestring_Password$"},"Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$"},"ThresholdInterval":{"value":"$IcingaCheckHTTPStatus_String_ThresholdInterval$"},"VHost":{"value":"$IcingaCheckHTTPStatus_String_VHost$"},"Content":{"value":"$IcingaCheckHTTPStatus_Array_Content$"},"AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$"},"ProxyUsername":{"value":"$IcingaCheckHTTPStatus_String_ProxyUsername$"},"Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$"},"Headers":{"value":"$IcingaCheckHTTPStatus_Array_Headers$"},"Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$"},"StatusCode":{"value":"$IcingaCheckHTTPStatus_Array_StatusCode$"},"NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$"},"ProxyServer":{"value":"$IcingaCheckHTTPStatus_String_ProxyServer$"},"ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$"},"Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$"},"ProxyPassword":{"value":"$IcingaCheckHTTPStatus_Securestring_ProxyPassword$"}},"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent":false,"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit":false,"ifw_api_command":"Invoke-IcingaCheckHTTPStatus","IcingaCheckHTTPStatus_Switchparameter_Negate":false}},"Invoke-IcingaCheckNLA":{"fields":[{"datafield_id":212,"is_required":"n","var_filter":null},{"datafield_id":213,"is_required":"n","var_filter":null},{"datafield_id":214,"is_required":"n","var_filter":null},{"datafield_id":215,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNLA","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckNLA\u0027 ","order":"0"},"-Profile":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_Profile$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_Profile$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NICs":{"value":{"body":"var arr = macro(\"$IcingaCheckNLA_Array_NICs$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$","order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckNLA_String_Profile$"},"NICs":{"value":"$IcingaCheckNLA_Array_NICs$"},"ThresholdInterval":{"value":"$IcingaCheckNLA_String_ThresholdInterval$"},"Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckNLA"}},"Invoke-IcingaCheckBiosSerial":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckBiosSerial","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckBiosSerial\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckBiosSerial_String_ThresholdInterval$"}},"ifw_api_command":"Invoke-IcingaCheckBiosSerial"}},"Invoke-IcingaCheckEventlog":{"fields":[{"datafield_id":88,"is_required":"n","var_filter":null},{"datafield_id":89,"is_required":"n","var_filter":null},{"datafield_id":90,"is_required":"n","var_filter":null},{"datafield_id":91,"is_required":"n","var_filter":null},{"datafield_id":92,"is_required":"n","var_filter":null},{"datafield_id":93,"is_required":"n","var_filter":null},{"datafield_id":94,"is_required":"n","var_filter":null},{"datafield_id":95,"is_required":"n","var_filter":null},{"datafield_id":96,"is_required":"n","var_filter":null},{"datafield_id":97,"is_required":"n","var_filter":null},{"datafield_id":98,"is_required":"n","var_filter":null},{"datafield_id":99,"is_required":"n","var_filter":null},{"datafield_id":100,"is_required":"n","var_filter":null},{"datafield_id":101,"is_required":"n","var_filter":null},{"datafield_id":102,"is_required":"n","var_filter":null},{"datafield_id":103,"is_required":"n","var_filter":null},{"datafield_id":104,"is_required":"n","var_filter":null},{"datafield_id":105,"is_required":"n","var_filter":null},{"datafield_id":106,"is_required":"n","var_filter":null},{"datafield_id":107,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckEventlog","arguments":{"-Before":{"value":"$IcingaCheckEventlog_Object_Before$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IncludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-After":{"value":"$IcingaCheckEventlog_Object_After$","order":"15"},"-IncludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-LogName":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckEventlog\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ExcludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-ExcludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ExcludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-IncludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$","order":"17"},"-Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$","order":"18"},"-ExcludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckEventlog_Object_Critical$","order":"3"},"-DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckEventlog_Object_Warning$","order":"2"},"-IncludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-ExcludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"12"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckEventlog_Switchparameter_DisableTimeCache":false,"ifw_api_arguments":{"IncludeEventId":{"value":"$IcingaCheckEventlog_Array_IncludeEventId$"},"DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$"},"ThresholdInterval":{"value":"$IcingaCheckEventlog_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$"},"ExcludeEventId":{"value":"$IcingaCheckEventlog_Array_ExcludeEventId$"},"Before":{"value":"$IcingaCheckEventlog_Object_Before$"},"IncludeEntryType":{"value":"$IcingaCheckEventlog_Array_IncludeEntryType$"},"LogName":{"value":"$IcingaCheckEventlog_String_LogName$"},"ExcludeEntryType":{"value":"$IcingaCheckEventlog_Array_ExcludeEntryType$"},"IncludeSource":{"value":"$IcingaCheckEventlog_Array_IncludeSource$"},"Warning":{"value":"$IcingaCheckEventlog_Object_Warning$"},"MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$"},"Critical":{"value":"$IcingaCheckEventlog_Object_Critical$"},"ExcludeUsername":{"value":"$IcingaCheckEventlog_Array_ExcludeUsername$"},"After":{"value":"$IcingaCheckEventlog_Object_After$"},"IncludeUsername":{"value":"$IcingaCheckEventlog_Array_IncludeUsername$"},"ExcludeSource":{"value":"$IcingaCheckEventlog_Array_ExcludeSource$"},"IncludeMessage":{"value":"$IcingaCheckEventlog_Array_IncludeMessage$"},"ExcludeMessage":{"value":"$IcingaCheckEventlog_Array_ExcludeMessage$"},"Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckEventlog","IcingaCheckEventlog_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckDiskHealth":{"fields":[{"datafield_id":60,"is_required":"n","var_filter":null},{"datafield_id":61,"is_required":"n","var_filter":null},{"datafield_id":62,"is_required":"n","var_filter":null},{"datafield_id":63,"is_required":"n","var_filter":null},{"datafield_id":64,"is_required":"n","var_filter":null},{"datafield_id":65,"is_required":"n","var_filter":null},{"datafield_id":66,"is_required":"n","var_filter":null},{"datafield_id":67,"is_required":"n","var_filter":null},{"datafield_id":68,"is_required":"n","var_filter":null},{"datafield_id":69,"is_required":"n","var_filter":null},{"datafield_id":70,"is_required":"n","var_filter":null},{"datafield_id":71,"is_required":"n","var_filter":null},{"datafield_id":72,"is_required":"n","var_filter":null},{"datafield_id":73,"is_required":"n","var_filter":null},{"datafield_id":74,"is_required":"n","var_filter":null},{"datafield_id":75,"is_required":"n","var_filter":null},{"datafield_id":76,"is_required":"n","var_filter":null},{"datafield_id":77,"is_required":"n","var_filter":null},{"datafield_id":78,"is_required":"n","var_filter":null},{"datafield_id":79,"is_required":"n","var_filter":null},{"datafield_id":80,"is_required":"n","var_filter":null},{"datafield_id":81,"is_required":"n","var_filter":null},{"datafield_id":82,"is_required":"n","var_filter":null},{"datafield_id":83,"is_required":"n","var_filter":null},{"datafield_id":84,"is_required":"n","var_filter":null},{"datafield_id":85,"is_required":"n","var_filter":null},{"datafield_id":86,"is_required":"n","var_filter":null},{"datafield_id":87,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDiskHealth","arguments":{"-DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$","order":"14"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckDiskHealth\u0027 ","order":"0"},"-DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ExcludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$","order":"12"},"-IncludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$","order":"13"},"-DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$","order":"10"},"-IncludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$","order":"21"},"-DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$","order":"9"},"-IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$","set_if_format":"string","order":"99"},"-DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$","order":"20"},"-DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$","order":"17"},"-DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$","order":"18"},"-DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$","order":"22"},"-Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$","order":"24"},"-DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$","order":"6"},"-ExcludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$","order":"7"},"-CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$","set_if_format":"string","order":"99"},"-DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$","order":"15"},"-DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$","order":"23"},"-IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$","set_if_format":"string","order":"99"},"-DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$","order":"8"},"-DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$","order":"11"},"-DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$","order":"19"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDiskHealth_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$"},"DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$"},"CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$"},"Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$"},"DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$"},"IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$"},"DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$"},"DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$"},"ExcludeDisk":{"value":"$IcingaCheckDiskHealth_Array_ExcludeDisk$"},"IncludeDisk":{"value":"$IcingaCheckDiskHealth_Array_IncludeDisk$"},"DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$"},"DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$"},"DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$"},"DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$"},"DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$"},"ExcludePartition":{"value":"$IcingaCheckDiskHealth_Array_ExcludePartition$"},"IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$"},"DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$"},"DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$"},"DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$"},"DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$"},"DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$"},"DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$"},"ThresholdInterval":{"value":"$IcingaCheckDiskHealth_String_ThresholdInterval$"},"DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$"},"DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$"},"IncludePartition":{"value":"$IcingaCheckDiskHealth_Array_IncludePartition$"},"DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$"}},"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly":false,"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks":false,"ifw_api_command":"Invoke-IcingaCheckDiskHealth","IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks":false}},"Invoke-IcingaCheckProcess":{"fields":[{"datafield_id":235,"is_required":"n","var_filter":null},{"datafield_id":236,"is_required":"n","var_filter":null},{"datafield_id":237,"is_required":"n","var_filter":null},{"datafield_id":238,"is_required":"n","var_filter":null},{"datafield_id":239,"is_required":"n","var_filter":null},{"datafield_id":240,"is_required":"n","var_filter":null},{"datafield_id":241,"is_required":"n","var_filter":null},{"datafield_id":242,"is_required":"n","var_filter":null},{"datafield_id":243,"is_required":"n","var_filter":null},{"datafield_id":244,"is_required":"n","var_filter":null},{"datafield_id":245,"is_required":"n","var_filter":null},{"datafield_id":246,"is_required":"n","var_filter":null},{"datafield_id":247,"is_required":"n","var_filter":null},{"datafield_id":248,"is_required":"n","var_filter":null},{"datafield_id":249,"is_required":"n","var_filter":null},{"datafield_id":250,"is_required":"n","var_filter":null},{"datafield_id":251,"is_required":"n","var_filter":null},{"datafield_id":252,"is_required":"n","var_filter":null},{"datafield_id":253,"is_required":"n","var_filter":null},{"datafield_id":254,"is_required":"n","var_filter":null},{"datafield_id":255,"is_required":"n","var_filter":null},{"datafield_id":256,"is_required":"n","var_filter":null},{"datafield_id":257,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcess","arguments":{"-TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$","order":"17"},"-NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$","order":"22"},"-TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$","order":"16"},"-MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$","order":"4"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"20"},"-TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$","order":"14"},"-TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$","order":"12"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckProcess\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$","order":"3"},"-CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$","order":"6"},"-TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$","order":"10"},"-ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$","order":"8"},"-TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$","order":"18"},"-CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$","order":"7"},"-ExcludeProcess":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_ExcludeProcess$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"21"},"-TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$","order":"15"},"-MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$","order":"5"},"-PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$","order":"2"},"-TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$","order":"19"},"-TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$","order":"11"},"-TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$","order":"13"},"-ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckProcess_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$"},"ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$"},"NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$"},"CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$"},"TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$"},"ThresholdInterval":{"value":"$IcingaCheckProcess_String_ThresholdInterval$"},"ExcludeProcess":{"value":"$IcingaCheckProcess_Array_ExcludeProcess$"},"TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$"},"PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$"},"ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$"},"TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$"},"PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$"},"Process":{"value":"$IcingaCheckProcess_Array_Process$"},"TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$"},"CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$"},"TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$"},"TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$"},"TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$"},"MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$"},"Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$"},"TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$"},"MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$"},"TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$"}},"ifw_api_command":"Invoke-IcingaCheckProcess"}},"Invoke-IcingaCheckCheckSum":{"fields":[{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCheckSum","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCheckSum\u0027 ","order":"0"},"-Algorithm":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$","order":"5"},"-Hash":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCheckSum_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Path":{"value":"$IcingaCheckCheckSum_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckCheckSum_String_ThresholdInterval$"},"Algorithm":{"value":"$IcingaCheckCheckSum_String_Algorithm$"},"Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$"},"NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$"},"Hash":{"value":"$IcingaCheckCheckSum_String_Hash$"}},"ifw_api_command":"Invoke-IcingaCheckCheckSum"}},"Invoke-IcingaCheckScheduledTask":{"fields":[{"datafield_id":264,"is_required":"n","var_filter":null},{"datafield_id":265,"is_required":"n","var_filter":null},{"datafield_id":266,"is_required":"n","var_filter":null},{"datafield_id":267,"is_required":"n","var_filter":null},{"datafield_id":268,"is_required":"n","var_filter":null},{"datafield_id":269,"is_required":"n","var_filter":null},{"datafield_id":270,"is_required":"n","var_filter":null},{"datafield_id":271,"is_required":"n","var_filter":null},{"datafield_id":272,"is_required":"n","var_filter":null},{"datafield_id":273,"is_required":"n","var_filter":null},{"datafield_id":274,"is_required":"n","var_filter":null},{"datafield_id":275,"is_required":"n","var_filter":null},{"datafield_id":276,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckScheduledTask","arguments":{"-WarningNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"9"},"-CriticalNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckScheduledTask\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$","order":"5"},"-IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$","set_if_format":"string","order":"99"},"-TaskName":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_TaskName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-CriticalLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-IgnoreExitCodes":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$","order":"6"},"-State":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_State$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$","order":"11"},"-WarningLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"7"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime":false,"ifw_api_arguments":{"CriticalNextRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalNextRunTime$"},"ThresholdInterval":{"value":"$IcingaCheckScheduledTask_String_ThresholdInterval$"},"TaskName":{"value":"$IcingaCheckScheduledTask_Array_TaskName$"},"WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$"},"WarningNextRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningNextRunTime$"},"CriticalLastRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalLastRunTime$"},"CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$"},"IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$"},"IgnoreExitCodes":{"value":"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$"},"WarningLastRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningLastRunTime$"},"State":{"value":"$IcingaCheckScheduledTask_Array_State$"},"NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckScheduledTask","IcingaCheckScheduledTask_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckFirewall":{"fields":[{"datafield_id":108,"is_required":"n","var_filter":null},{"datafield_id":109,"is_required":"n","var_filter":null},{"datafield_id":110,"is_required":"n","var_filter":null},{"datafield_id":111,"is_required":"n","var_filter":null},{"datafield_id":112,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckFirewall","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckFirewall\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$","order":"3"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Profile":{"value":{"body":"var arr = macro(\"$IcingaCheckFirewall_Array_Profile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckFirewall_Array_Profile$"},"Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckFirewall_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$"},"Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$"}},"ifw_api_command":"Invoke-IcingaCheckFirewall","IcingaCheckFirewall_Switchparameter_Enabled":false,"IcingaCheckFirewall_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckNetworkInterface":{"fields":[{"datafield_id":175,"is_required":"n","var_filter":null},{"datafield_id":176,"is_required":"n","var_filter":null},{"datafield_id":177,"is_required":"n","var_filter":null},{"datafield_id":178,"is_required":"n","var_filter":null},{"datafield_id":179,"is_required":"n","var_filter":null},{"datafield_id":180,"is_required":"n","var_filter":null},{"datafield_id":181,"is_required":"n","var_filter":null},{"datafield_id":182,"is_required":"n","var_filter":null},{"datafield_id":183,"is_required":"n","var_filter":null},{"datafield_id":184,"is_required":"n","var_filter":null},{"datafield_id":185,"is_required":"n","var_filter":null},{"datafield_id":186,"is_required":"n","var_filter":null},{"datafield_id":187,"is_required":"n","var_filter":null},{"datafield_id":188,"is_required":"n","var_filter":null},{"datafield_id":189,"is_required":"n","var_filter":null},{"datafield_id":190,"is_required":"n","var_filter":null},{"datafield_id":191,"is_required":"n","var_filter":null},{"datafield_id":192,"is_required":"n","var_filter":null},{"datafield_id":193,"is_required":"n","var_filter":null},{"datafield_id":194,"is_required":"n","var_filter":null},{"datafield_id":195,"is_required":"n","var_filter":null},{"datafield_id":196,"is_required":"n","var_filter":null},{"datafield_id":197,"is_required":"n","var_filter":null},{"datafield_id":198,"is_required":"n","var_filter":null},{"datafield_id":199,"is_required":"n","var_filter":null},{"datafield_id":200,"is_required":"n","var_filter":null},{"datafield_id":201,"is_required":"n","var_filter":null},{"datafield_id":202,"is_required":"n","var_filter":null},{"datafield_id":203,"is_required":"n","var_filter":null},{"datafield_id":204,"is_required":"n","var_filter":null},{"datafield_id":205,"is_required":"n","var_filter":null},{"datafield_id":206,"is_required":"n","var_filter":null},{"datafield_id":207,"is_required":"n","var_filter":null},{"datafield_id":208,"is_required":"n","var_filter":null},{"datafield_id":209,"is_required":"n","var_filter":null},{"datafield_id":210,"is_required":"n","var_filter":null},{"datafield_id":211,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNetworkInterface","arguments":{"-PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$","order":"8"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckNetworkInterface\u0027 ","order":"0"},"-NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$","order":"25"},"-DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$","order":"22"},"-PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$","order":"13"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$","order":"23"},"-PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$","order":"11"},"-DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$","order":"21"},"-IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$","order":"29"},"-PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$","order":"16"},"-PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$","order":"17"},"-IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$","order":"26"},"-IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$","set_if_format":"string","order":"99"},"-DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$","order":"19"},"-PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$","order":"12"},"-DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$","order":"18"},"-IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$","order":"27"},"-LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$","order":"24"},"-IncludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$","order":"20"},"-PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$","order":"10"},"-PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$","order":"14"},"-IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$","order":"34"},"-IncludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$","order":"6"},"-PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$","order":"15"},"-Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$","order":"35"},"-IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$","order":"32"},"-IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$","order":"28"},"-IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$","order":"33"},"-IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$","order":"31"},"-ExcludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$","order":"7"},"-ExcludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$","order":"9"},"-IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$","order":"30"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden":false,"IcingaCheckNetworkInterface_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$"},"IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$"},"IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$"},"Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$"},"DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$"},"NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$"},"PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$"},"IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$"},"IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$"},"IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$"},"ExcludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$"},"DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$"},"IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$"},"PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$"},"PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$"},"IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$"},"DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$"},"PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$"},"ExcludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$"},"PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$"},"PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$"},"DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$"},"PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$"},"LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$"},"DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$"},"PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$"},"LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$"},"IncludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$"},"DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$"},"PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$"},"IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$"},"IncludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$"},"PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$"},"IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$"},"IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$"},"ThresholdInterval":{"value":"$IcingaCheckNetworkInterface_String_ThresholdInterval$"},"PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$"}},"ifw_api_command":"Invoke-IcingaCheckNetworkInterface"}},"Invoke-IcingaCheckHttpJsonResponse":{"fields":[{"datafield_id":113,"is_required":"n","var_filter":null},{"datafield_id":114,"is_required":"n","var_filter":null},{"datafield_id":115,"is_required":"n","var_filter":null},{"datafield_id":116,"is_required":"n","var_filter":null},{"datafield_id":117,"is_required":"n","var_filter":null},{"datafield_id":118,"is_required":"n","var_filter":null},{"datafield_id":119,"is_required":"n","var_filter":null},{"datafield_id":120,"is_required":"n","var_filter":null},{"datafield_id":121,"is_required":"n","var_filter":null},{"datafield_id":122,"is_required":"n","var_filter":null},{"datafield_id":123,"is_required":"n","var_filter":null},{"datafield_id":124,"is_required":"n","var_filter":null},{"datafield_id":125,"is_required":"n","var_filter":null},{"datafield_id":126,"is_required":"n","var_filter":null},{"datafield_id":127,"is_required":"n","var_filter":null},{"datafield_id":128,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHttpJsonResponse","arguments":{"-ServerPath":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$","order":"13"},"-StatusOnRequestError":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHttpJsonResponse_Securestring_Password$\u0027)","order":"6"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-ValuePaths":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValuePaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ValueTypes":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValueTypes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckHttpJsonResponse\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ServerUri":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Critical$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$","set_if_format":"string","order":"99"},"-Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$","order":"7"},"-Warning":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Warning$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-QueryParameter":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults":false,"ifw_api_arguments":{"QueryParameter":{"value":"$IcingaCheckHttpJsonResponse_String_QueryParameter$"},"Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHttpJsonResponse_String_Username$"},"Password":{"value":"$IcingaCheckHttpJsonResponse_Securestring_Password$"},"ValueTypes":{"value":"$IcingaCheckHttpJsonResponse_Array_ValueTypes$"},"ThresholdInterval":{"value":"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"},"IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$"},"ServerPath":{"value":"$IcingaCheckHttpJsonResponse_String_ServerPath$"},"NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$"},"Warning":{"value":"$IcingaCheckHttpJsonResponse_Array_Warning$"},"Critical":{"value":"$IcingaCheckHttpJsonResponse_Array_Critical$"},"ValuePaths":{"value":"$IcingaCheckHttpJsonResponse_Array_ValuePaths$"},"StatusOnRequestError":{"value":"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$"},"NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$"},"Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$"},"ServerUri":{"value":"$IcingaCheckHttpJsonResponse_String_ServerUri$"}},"ifw_api_command":"Invoke-IcingaCheckHttpJsonResponse","IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL":false,"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckDirectory":{"fields":[{"datafield_id":34,"is_required":"n","var_filter":null},{"datafield_id":35,"is_required":"n","var_filter":null},{"datafield_id":36,"is_required":"n","var_filter":null},{"datafield_id":37,"is_required":"n","var_filter":null},{"datafield_id":38,"is_required":"n","var_filter":null},{"datafield_id":39,"is_required":"n","var_filter":null},{"datafield_id":40,"is_required":"n","var_filter":null},{"datafield_id":41,"is_required":"n","var_filter":null},{"datafield_id":42,"is_required":"n","var_filter":null},{"datafield_id":43,"is_required":"n","var_filter":null},{"datafield_id":44,"is_required":"n","var_filter":null},{"datafield_id":45,"is_required":"n","var_filter":null},{"datafield_id":46,"is_required":"n","var_filter":null},{"datafield_id":47,"is_required":"n","var_filter":null},{"datafield_id":48,"is_required":"n","var_filter":null},{"datafield_id":49,"is_required":"n","var_filter":null},{"datafield_id":50,"is_required":"n","var_filter":null},{"datafield_id":51,"is_required":"n","var_filter":null},{"datafield_id":52,"is_required":"n","var_filter":null},{"datafield_id":53,"is_required":"n","var_filter":null},{"datafield_id":54,"is_required":"n","var_filter":null},{"datafield_id":55,"is_required":"n","var_filter":null},{"datafield_id":56,"is_required":"n","var_filter":null},{"datafield_id":57,"is_required":"n","var_filter":null},{"datafield_id":58,"is_required":"n","var_filter":null},{"datafield_id":59,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDirectory","arguments":{"-CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$","order":"11"},"-FileSizeGreaterThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"20"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckDirectory\u0027 ","order":"0"},"-WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$","order":"12"},"-WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$","order":"10"},"-CreationYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"19"},"-Warning":{"value":"$IcingaCheckDirectory_Object_Warning$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$","order":"22"},"-ChangeTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"14"},"-CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$","set_if_format":"string","order":"99"},"-WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$","order":"6"},"-CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$","order":"9"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ChangeOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"16"},"-CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$","order":"7"},"-Critical":{"value":"$IcingaCheckDirectory_Object_Critical$","order":"4"},"-CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$","order":"13"},"-FileSizeSmallerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"21"},"-CreationTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"17"},"-FileNames":{"value":{"body":"var arr = macro(\"$IcingaCheckDirectory_Array_FileNames$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$","order":"8"},"-CreationOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"18"},"-ChangeYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"15"},"-ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$","set_if_format":"string","order":"99"},"-Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDirectory_Switchparameter_CountFolderAsFile":false,"ifw_api_arguments":{"CreationOlderThan":{"value":"$IcingaCheckDirectory_String_CreationOlderThan$"},"WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$"},"CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$"},"WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$"},"CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$"},"WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$"},"NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$"},"ChangeYoungerThan":{"value":"$IcingaCheckDirectory_String_ChangeYoungerThan$"},"CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$"},"ThresholdInterval":{"value":"$IcingaCheckDirectory_String_ThresholdInterval$"},"CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$"},"CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$"},"FileSizeGreaterThan":{"value":"$IcingaCheckDirectory_String_FileSizeGreaterThan$"},"WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$"},"ChangeTimeEqual":{"value":"$IcingaCheckDirectory_String_ChangeTimeEqual$"},"FileSizeSmallerThan":{"value":"$IcingaCheckDirectory_String_FileSizeSmallerThan$"},"Warning":{"value":"$IcingaCheckDirectory_Object_Warning$"},"Critical":{"value":"$IcingaCheckDirectory_Object_Critical$"},"ChangeOlderThan":{"value":"$IcingaCheckDirectory_String_ChangeOlderThan$"},"ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$"},"FileNames":{"value":"$IcingaCheckDirectory_Array_FileNames$"},"CreationTimeEqual":{"value":"$IcingaCheckDirectory_String_CreationTimeEqual$"},"Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$"},"Path":{"value":"$IcingaCheckDirectory_String_Path$"},"CreationYoungerThan":{"value":"$IcingaCheckDirectory_String_CreationYoungerThan$"},"Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$"}},"IcingaCheckDirectory_Switchparameter_ShowFileList":false,"ifw_api_command":"Invoke-IcingaCheckDirectory","IcingaCheckDirectory_Switchparameter_NoPerfData":false,"IcingaCheckDirectory_Switchparameter_Recurse":false}},"Invoke-IcingaCheckUNCPath":{"fields":[{"datafield_id":324,"is_required":"n","var_filter":null},{"datafield_id":325,"is_required":"n","var_filter":null},{"datafield_id":326,"is_required":"n","var_filter":null},{"datafield_id":327,"is_required":"n","var_filter":null},{"datafield_id":328,"is_required":"n","var_filter":null},{"datafield_id":329,"is_required":"n","var_filter":null},{"datafield_id":330,"is_required":"n","var_filter":null},{"datafield_id":331,"is_required":"n","var_filter":null},{"datafield_id":332,"is_required":"n","var_filter":null},{"datafield_id":333,"is_required":"n","var_filter":null},{"datafield_id":334,"is_required":"n","var_filter":null},{"datafield_id":335,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUNCPath","arguments":{"-Path":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-DisplayAlias":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$","order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckUNCPath_Securestring_Password$\u0027)","order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUNCPath\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-User":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_User$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_User$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$","order":"7"},"-WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$","order":"8"},"-Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$","order":"6"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace":false,"ifw_api_arguments":{"WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$"},"DisplayAlias":{"value":"$IcingaCheckUNCPath_String_DisplayAlias$"},"Path":{"value":"$IcingaCheckUNCPath_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckUNCPath_String_ThresholdInterval$"},"CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$"},"Password":{"value":"$IcingaCheckUNCPath_Securestring_Password$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$"},"Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$"},"Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$"},"User":{"value":"$IcingaCheckUNCPath_String_User$"}},"ifw_api_command":"Invoke-IcingaCheckUNCPath","IcingaCheckUNCPath_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckPerfCounter":{"fields":[{"datafield_id":226,"is_required":"n","var_filter":null},{"datafield_id":227,"is_required":"n","var_filter":null},{"datafield_id":228,"is_required":"n","var_filter":null},{"datafield_id":229,"is_required":"n","var_filter":null},{"datafield_id":230,"is_required":"n","var_filter":null},{"datafield_id":231,"is_required":"n","var_filter":null},{"datafield_id":232,"is_required":"n","var_filter":null},{"datafield_id":233,"is_required":"n","var_filter":null},{"datafield_id":234,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPerfCounter","arguments":{"-PerfCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_PerfCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$","order":"7"},"-Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$","order":"3"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-ExcludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_ExcludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_IncludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckPerfCounter\u0027 ","order":"0"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckPerfCounter_Switchparameter_NoPerfData":false,"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_arguments":{"PerfCounter":{"value":"$IcingaCheckPerfCounter_Array_PerfCounter$"},"ThresholdInterval":{"value":"$IcingaCheckPerfCounter_String_ThresholdInterval$"},"ExcludeCounter":{"value":"$IcingaCheckPerfCounter_Array_ExcludeCounter$"},"Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$"},"Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$"},"IncludeCounter":{"value":"$IcingaCheckPerfCounter_Array_IncludeCounter$"},"Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckPerfCounter"}},"Invoke-IcingaCheckICMP":{"fields":[{"datafield_id":149,"is_required":"n","var_filter":null},{"datafield_id":150,"is_required":"n","var_filter":null},{"datafield_id":151,"is_required":"n","var_filter":null},{"datafield_id":152,"is_required":"n","var_filter":null},{"datafield_id":153,"is_required":"n","var_filter":null},{"datafield_id":154,"is_required":"n","var_filter":null},{"datafield_id":155,"is_required":"n","var_filter":null},{"datafield_id":156,"is_required":"n","var_filter":null},{"datafield_id":157,"is_required":"n","var_filter":null},{"datafield_id":158,"is_required":"n","var_filter":null},{"datafield_id":159,"is_required":"n","var_filter":null},{"datafield_id":160,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckICMP","arguments":{"-Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$","order":"9"},"-IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$","order":"4"},"-Hostname":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"6"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckICMP\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"value":"$IcingaCheckICMP_Object_Critical$","order":"3"},"-PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$","order":"8"},"-PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$","order":"7"},"-Warning":{"value":"$IcingaCheckICMP_Object_Warning$","order":"2"},"-IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$","set_if_format":"string","order":"99"},"-CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$","order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckICMP_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$"},"Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$"},"Hostname":{"value":"$IcingaCheckICMP_String_Hostname$"},"CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$"},"WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$"},"NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckICMP_Object_Critical$"},"IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$"},"Warning":{"value":"$IcingaCheckICMP_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckICMP_String_ThresholdInterval$"},"PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$"},"IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$"}},"ifw_api_command":"Invoke-IcingaCheckICMP","IcingaCheckICMP_Switchparameter_IPv6":false,"IcingaCheckICMP_Switchparameter_IPv4":false}},"Invoke-IcingaCheckUsedPartitionSpace":{"fields":[{"datafield_id":357,"is_required":"n","var_filter":null},{"datafield_id":358,"is_required":"n","var_filter":null},{"datafield_id":359,"is_required":"n","var_filter":null},{"datafield_id":360,"is_required":"n","var_filter":null},{"datafield_id":361,"is_required":"n","var_filter":null},{"datafield_id":362,"is_required":"n","var_filter":null},{"datafield_id":363,"is_required":"n","var_filter":null},{"datafield_id":364,"is_required":"n","var_filter":null},{"datafield_id":365,"is_required":"n","var_filter":null},{"datafield_id":366,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsedPartitionSpace","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUsedPartitionSpace\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckUsedPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckUsedPartitionSpace_Array_Include$"}},"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_command":"Invoke-IcingaCheckUsedPartitionSpace","IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData":false,"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckService":{"fields":[{"datafield_id":277,"is_required":"n","var_filter":null},{"datafield_id":278,"is_required":"n","var_filter":null},{"datafield_id":279,"is_required":"n","var_filter":null},{"datafield_id":280,"is_required":"n","var_filter":null},{"datafield_id":281,"is_required":"n","var_filter":null},{"datafield_id":282,"is_required":"n","var_filter":null},{"datafield_id":283,"is_required":"n","var_filter":null},{"datafield_id":284,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckService","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckService\u0027 ","order":"0"},"-MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$","order":"6"},"-FilterStartupType":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_FilterStartupType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-Status":{"set_if":"var str = macro(\"$IcingaCheckService_String_Status$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_Status$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Service":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Service$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckService_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckService_String_ThresholdInterval$"},"MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$"},"FilterStartupType":{"value":"$IcingaCheckService_Array_FilterStartupType$"},"Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$"},"Service":{"value":"$IcingaCheckService_Array_Service$"},"NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$"},"Status":{"value":"$IcingaCheckService_String_Status$"},"Exclude":{"value":"$IcingaCheckService_Array_Exclude$"}},"ifw_api_command":"Invoke-IcingaCheckService","IcingaCheckService_Switchparameter_MitigateUnknown":false}},"Invoke-IcingaCheckCPU":{"fields":[{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null},{"datafield_id":32,"is_required":"n","var_filter":null},{"datafield_id":33,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCPU","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckCPU\u0027 ","order":"0"},"-SocketFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckCPU_Array_SocketFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$","order":"6"},"-Core":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_Core$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_Core$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckCPU_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckCPU_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCPU_Switchparameter_OverallOnly":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckCPU_String_ThresholdInterval$"},"SocketFilter":{"value":"$IcingaCheckCPU_Array_SocketFilter$"},"Critical":{"value":"$IcingaCheckCPU_Object_Critical$"},"Core":{"value":"$IcingaCheckCPU_String_Core$"},"OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$"},"Warning":{"value":"$IcingaCheckCPU_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckCPU","IcingaCheckCPU_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckTCP":{"fields":[{"datafield_id":305,"is_required":"n","var_filter":null},{"datafield_id":306,"is_required":"n","var_filter":null},{"datafield_id":307,"is_required":"n","var_filter":null},{"datafield_id":308,"is_required":"n","var_filter":null},{"datafield_id":309,"is_required":"n","var_filter":null},{"datafield_id":310,"is_required":"n","var_filter":null},{"datafield_id":311,"is_required":"n","var_filter":null},{"datafield_id":312,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTCP","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckTCP\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Address":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_Address$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_Address$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTCP_Object_Critical$","order":"5"},"-NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Ports":{"value":{"body":"var arr = macro(\"$IcingaCheckTCP_Array_Ports$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Warning":{"value":"$IcingaCheckTCP_Object_Warning$","order":"4"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTCP_Switchparameter_Negate":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckTCP_String_ThresholdInterval$"},"Ports":{"value":"$IcingaCheckTCP_Array_Ports$"},"Critical":{"value":"$IcingaCheckTCP_Object_Critical$"},"Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$"},"Address":{"value":"$IcingaCheckTCP_String_Address$"},"Warning":{"value":"$IcingaCheckTCP_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTCP","IcingaCheckTCP_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckUptime":{"fields":[{"datafield_id":352,"is_required":"n","var_filter":null},{"datafield_id":353,"is_required":"n","var_filter":null},{"datafield_id":354,"is_required":"n","var_filter":null},{"datafield_id":355,"is_required":"n","var_filter":null},{"datafield_id":356,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUptime","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUptime\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Warning$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Warning$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Critical$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Critical$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUptime_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckUptime_String_Critical$"},"Warning":{"value":"$IcingaCheckUptime_String_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckUptime_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUptime"}},"Invoke-IcingaCheckStoragePool":{"fields":[{"datafield_id":285,"is_required":"n","var_filter":null},{"datafield_id":286,"is_required":"n","var_filter":null},{"datafield_id":287,"is_required":"n","var_filter":null},{"datafield_id":288,"is_required":"n","var_filter":null},{"datafield_id":289,"is_required":"n","var_filter":null},{"datafield_id":290,"is_required":"n","var_filter":null},{"datafield_id":291,"is_required":"n","var_filter":null},{"datafield_id":292,"is_required":"n","var_filter":null},{"datafield_id":293,"is_required":"n","var_filter":null},{"datafield_id":294,"is_required":"n","var_filter":null},{"datafield_id":295,"is_required":"n","var_filter":null},{"datafield_id":296,"is_required":"n","var_filter":null},{"datafield_id":297,"is_required":"n","var_filter":null},{"datafield_id":298,"is_required":"n","var_filter":null},{"datafield_id":299,"is_required":"n","var_filter":null},{"datafield_id":300,"is_required":"n","var_filter":null},{"datafield_id":301,"is_required":"n","var_filter":null},{"datafield_id":302,"is_required":"n","var_filter":null},{"datafield_id":303,"is_required":"n","var_filter":null},{"datafield_id":304,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckStoragePool","arguments":{"-RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$","order":"17"},"-IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$","order":"8"},"-Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$","order":"18"},"-IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$","order":"13"},"-HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$","order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$","order":"4"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckStoragePool\u0027 ","order":"0"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$","order":"5"},"-IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$","set_if_format":"string","order":"99"},"-IncludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_IncludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ExcludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_ExcludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$","order":"9"},"-TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$","order":"7"},"-CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$","order":"10"},"-SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$","order":"12"},"-HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$","order":"15"},"-ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$","order":"11"},"-RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$","order":"16"},"-TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckStoragePool_Switchparameter_IncludePrimordial":false,"ifw_api_arguments":{"ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$"},"NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$"},"HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$"},"ThresholdInterval":{"value":"$IcingaCheckStoragePool_String_ThresholdInterval$"},"TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$"},"RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$"},"HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$"},"IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$"},"IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$"},"ExcludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_ExcludeStoragePool$"},"SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$"},"RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$"},"TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$"},"IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$"},"CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$"},"FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$"},"Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$"},"FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$"},"IncludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_IncludeStoragePool$"},"CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$"}},"ifw_api_command":"Invoke-IcingaCheckStoragePool","IcingaCheckStoragePool_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckUpdates":{"fields":[{"datafield_id":336,"is_required":"n","var_filter":null},{"datafield_id":337,"is_required":"n","var_filter":null},{"datafield_id":338,"is_required":"n","var_filter":null},{"datafield_id":339,"is_required":"n","var_filter":null},{"datafield_id":340,"is_required":"n","var_filter":null},{"datafield_id":341,"is_required":"n","var_filter":null},{"datafield_id":342,"is_required":"n","var_filter":null},{"datafield_id":343,"is_required":"n","var_filter":null},{"datafield_id":344,"is_required":"n","var_filter":null},{"datafield_id":345,"is_required":"n","var_filter":null},{"datafield_id":346,"is_required":"n","var_filter":null},{"datafield_id":347,"is_required":"n","var_filter":null},{"datafield_id":348,"is_required":"n","var_filter":null},{"datafield_id":349,"is_required":"n","var_filter":null},{"datafield_id":350,"is_required":"n","var_filter":null},{"datafield_id":351,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUpdates","arguments":{"-WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$","order":"7"},"-Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$","order":"13"},"-WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$","order":"12"},"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckUpdates\u0027 ","order":"0"},"-WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$","order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$","order":"11"},"-Warning":{"value":"$IcingaCheckUpdates_Object_Warning$","order":"3"},"-CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$","order":"10"},"-CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$","order":"8"},"-Critical":{"value":"$IcingaCheckUpdates_Object_Critical$","order":"4"},"-CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$","set_if_format":"string","order":"99"},"-UpdateFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckUpdates_Array_UpdateFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$","order":"5"},"-CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUpdates_Switchparameter_NoPerfData":false,"IcingaCheckUpdates_Switchparameter_WarnOnReboot":false,"IcingaCheckUpdates_Switchparameter_CritOnReboot":false,"ifw_api_arguments":{"WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$"},"CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$"},"CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$"},"NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$"},"WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$"},"ThresholdInterval":{"value":"$IcingaCheckUpdates_String_ThresholdInterval$"},"WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$"},"CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$"},"CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$"},"WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$"},"Warning":{"value":"$IcingaCheckUpdates_Object_Warning$"},"Critical":{"value":"$IcingaCheckUpdates_Object_Critical$"},"CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$"},"Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$"},"UpdateFilter":{"value":"$IcingaCheckUpdates_Array_UpdateFilter$"},"WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$"}},"ifw_api_command":"Invoke-IcingaCheckUpdates"}},"Invoke-IcingaCheckProcessCount":{"fields":[{"datafield_id":258,"is_required":"n","var_filter":null},{"datafield_id":259,"is_required":"n","var_filter":null},{"datafield_id":260,"is_required":"n","var_filter":null},{"datafield_id":261,"is_required":"n","var_filter":null},{"datafield_id":262,"is_required":"n","var_filter":null},{"datafield_id":263,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcessCount","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckProcessCount\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcessCount_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Process":{"value":"$IcingaCheckProcessCount_Array_Process$"},"ThresholdInterval":{"value":"$IcingaCheckProcessCount_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$"},"Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckProcessCount","IcingaCheckProcessCount_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckTimeSync":{"fields":[{"datafield_id":313,"is_required":"n","var_filter":null},{"datafield_id":314,"is_required":"n","var_filter":null},{"datafield_id":315,"is_required":"n","var_filter":null},{"datafield_id":316,"is_required":"n","var_filter":null},{"datafield_id":317,"is_required":"n","var_filter":null},{"datafield_id":318,"is_required":"n","var_filter":null},{"datafield_id":319,"is_required":"n","var_filter":null},{"datafield_id":320,"is_required":"n","var_filter":null},{"datafield_id":321,"is_required":"n","var_filter":null},{"datafield_id":322,"is_required":"n","var_filter":null},{"datafield_id":323,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTimeSync","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckTimeSync\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$","order":"8"},"-Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$","order":"4"},"-Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$","order":"6"},"-Port":{"value":"$IcingaCheckTimeSync_Int32_Port$","order":"7"},"-IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$","order":"5"},"-Server":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$","order":"3"},"-IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTimeSync_Switchparameter_IPV4":false,"IcingaCheckTimeSync_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$"},"TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$"},"ThresholdInterval":{"value":"$IcingaCheckTimeSync_String_ThresholdInterval$"},"Server":{"value":"$IcingaCheckTimeSync_String_Server$"},"Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$"},"Port":{"value":"$IcingaCheckTimeSync_Int32_Port$"},"Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$"},"Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$"},"IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$"},"Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTimeSync","IcingaCheckTimeSync_Switchparameter_IgnoreService":false}}},"Datafield":{"51":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date younger then 20 days are considered within the check.","caption":"ChangeYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"51","varname":"IcingaCheckDirectory_String_ChangeYoungerThan","format":null},"364":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"364","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown","format":null},"319":{"settings":{"visibility":"visible"},"description":"Use IPV4 connection. Default $FALSE","caption":"IPV4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"319","varname":"IcingaCheckTimeSync_Switchparameter_IPV4","format":null},"346":{"settings":{"visibility":"visible"},"description":"The warning threshold for all other updates on the Windows machine","caption":"WarningOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"346","varname":"IcingaCheckUpdates_Object_WarningOther","format":null},"294":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool Capacity.","caption":"CapacityCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"294","varname":"IcingaCheckStoragePool_Object_CapacityCritical","format":null},"90":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"90","varname":"IcingaCheckEventlog_Object_Critical","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify an array of exclusions, tested against Subject, Subject Alternative Name, Issuer and Thumbprint.","caption":"ExcludePattern","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"13","varname":"IcingaCheckCertificate_Array_ExcludePattern","format":null},"31":{"settings":{"visibility":"visible"},"description":"If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all\nreturned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument","caption":"OverallOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"31","varname":"IcingaCheckCPU_Switchparameter_OverallOnly","format":null},"81":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"81","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning","format":null},"192":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"192","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn","format":null},"111":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"111","varname":"IcingaCheckFirewall_Switchparameter_NoPerfData","format":null},"284":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"284","varname":"IcingaCheckService_Switchparameter_NoPerfData","format":null},"122":{"settings":{"visibility":"visible"},"description":"Warning thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"122","varname":"IcingaCheckHttpJsonResponse_Array_Warning","format":null},"60":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"60","varname":"IcingaCheckDiskHealth_String_ThresholdInterval","format":null},"150":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for the response time in ms","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"150","varname":"IcingaCheckICMP_Object_Warning","format":null},"363":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"363","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData","format":null},"372":{"settings":{"datalist":"IcingaCheckUsers Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"372","varname":"IcingaCheckUsers_Int32_Verbosity","format":null},"341":{"settings":{"visibility":"visible"},"description":"The critical threshold for the security update count on the Windows machine","caption":"CriticalSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"341","varname":"IcingaCheckUpdates_Object_CriticalSecurity","format":null},"180":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"180","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn","format":null},"293":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool Capacity.","caption":"CapacityWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"293","varname":"IcingaCheckStoragePool_Object_CapacityWarning","format":null},"236":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"236","varname":"IcingaCheckProcess_Object_PageFileWarning","format":null},"282":{"settings":{"visibility":"visible"},"description":"This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this\ncheck","caption":"MitigateUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"282","varname":"IcingaCheckService_Switchparameter_MitigateUnknown","format":null},"233":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"233","varname":"IcingaCheckPerfCounter_Switchparameter_NoPerfData","format":null},"310":{"settings":{"visibility":"visible"},"description":"A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"310","varname":"IcingaCheckTCP_Object_Critical","format":null},"222":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"222","varname":"IcingaCheckPartitionSpace_Switchparameter_NoPerfData","format":null},"211":{"settings":{"datalist":"IcingaCheckNetworkInterface Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"211","varname":"IcingaCheckNetworkInterface_Object_Verbosity","format":null},"53":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been created 20 days ago are considered within the check.","caption":"CreationTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"53","varname":"IcingaCheckDirectory_String_CreationTimeEqual","format":null},"128":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"128","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData","format":null},"71":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"71","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning","format":null},"250":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"250","varname":"IcingaCheckProcess_Object_TotalThreadCountWarning","format":null},"125":{"settings":{"datalist":"IcingaCheckHttpJsonResponse StatusOnRequestError","behavior":"strict","data_type":"string"},"description":"Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown\nSee https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values","caption":"StatusOnRequestError","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"125","varname":"IcingaCheckHttpJsonResponse_String_StatusOnRequestError","format":null},"149":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"149","varname":"IcingaCheckICMP_String_ThresholdInterval","format":null},"134":{"settings":{"visibility":"visible"},"description":"Used to specify headers as Array. Like: -Headers \u0027Accept:application/json\u0027","caption":"Headers","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"134","varname":"IcingaCheckHTTPStatus_Array_Headers","format":null},"158":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv6 addresses for ICMP calls by using a hostname","caption":"IPv6","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"158","varname":"IcingaCheckICMP_Switchparameter_IPv6","format":null},"94":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be included.","caption":"IncludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"94","varname":"IcingaCheckEventlog_Array_IncludeUsername","format":null},"238":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"238","varname":"IcingaCheckProcess_Object_MemoryWarning","format":null},"109":{"settings":{"visibility":"visible"},"description":"Used to specify an array of profiles to check. Available profiles are \u0027Domain\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"109","varname":"IcingaCheckFirewall_Array_Profile","format":null},"323":{"settings":{"datalist":"IcingaCheckTimeSync Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"323","varname":"IcingaCheckTimeSync_Int32_Verbosity","format":null},"99":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be excluded.","caption":"ExcludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"99","varname":"IcingaCheckEventlog_Array_ExcludeMessage","format":null},"292":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool IsReadOnly Attr.","caption":"IsReadOnlyCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"292","varname":"IcingaCheckStoragePool_Object_IsReadOnlyCritical","format":null},"88":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"88","varname":"IcingaCheckEventlog_String_ThresholdInterval","format":null},"283":{"settings":{"datalist":"IcingaCheckService Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"283","varname":"IcingaCheckService_Int32_Verbosity","format":null},"224":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"224","varname":"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"217":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"217","varname":"IcingaCheckPartitionSpace_Object_Warning","format":null},"55":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date younger then 20 days are considered within the check.","caption":"CreationYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"55","varname":"IcingaCheckDirectory_String_CreationYoungerThan","format":null},"340":{"settings":{"visibility":"visible"},"description":"The warning threshold for the security update count on the Windows machine","caption":"WarningSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"340","varname":"IcingaCheckUpdates_Object_WarningSecurity","format":null},"43":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"43","varname":"IcingaCheckDirectory_Object_CriticalSmallestFile","format":null},"143":{"settings":{"visibility":"visible"},"description":null,"caption":"Minimum","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"143","varname":"IcingaCheckHTTPStatus_Int32_Minimum","format":null},"61":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to include for checks. Example 0, 1","caption":"IncludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"61","varname":"IcingaCheckDiskHealth_Array_IncludeDisk","format":null},"152":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for possible packet loss in %","caption":"WarningPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"152","varname":"IcingaCheckICMP_Object_WarningPl","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"WarningEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckCertificate_Object_WarningEnd","format":null},"240":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"240","varname":"IcingaCheckProcess_Object_CPUWarning","format":null},"159":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"159","varname":"IcingaCheckICMP_Switchparameter_NoPerfData","format":null},"20":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckCheckSum_String_ThresholdInterval","format":null},"184":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PackteReceivedErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"184","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn","format":null},"195":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"195","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit","format":null},"209":{"settings":{"visibility":"visible"},"description":"Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not\nbroadcasting its ID.","caption":"IncludeHidden","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"209","varname":"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden","format":null},"103":{"settings":{"visibility":"visible"},"description":"Used to specify time data of which point the plugin should stop considering event logs.\nYou can either use a fixed date and time like \"2021/01/30 12:00:00\", a fixed day \"2021/01/30\" or use more dynamic approaches like \"1d\", \"10h\" and so on.\n\nBy using \"2h\" for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back\nfurther in time with the `-After` argument than the `-Before` argument.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Before","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"103","varname":"IcingaCheckEventlog_Object_Before","format":null},"325":{"settings":{"visibility":"visible"},"description":"The path to a volume or network share you want to monitor, like \"\\\\example.com\\Home\" or \"C:\\ClusterSharedVolume\\Volume1\"","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"325","varname":"IcingaCheckUNCPath_String_Path","format":null},"334":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"334","varname":"IcingaCheckUNCPath_Switchparameter_NoPerfData","format":null},"311":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"311","varname":"IcingaCheckTCP_Switchparameter_NoPerfData","format":null},"276":{"settings":{"datalist":"IcingaCheckScheduledTask Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"276","varname":"IcingaCheckScheduledTask_Int32_Verbosity","format":null},"54":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date older then 20 days are considered within the check.","caption":"CreationOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"54","varname":"IcingaCheckDirectory_String_CreationOlderThan","format":null},"267":{"settings":{"visibility":"visible"},"description":"A list of exit codes which will be considered as [OK]. By default every task which did not exit with 0 will be handled as critical.","caption":"IgnoreExitCodes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"267","varname":"IcingaCheckScheduledTask_Array_IgnoreExitCodes","format":null},"45":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"45","varname":"IcingaCheckDirectory_Object_CriticalLargestFile","format":null},"254":{"settings":{"visibility":"visible"},"description":"Allows to filter for a list of processes with a given name. Use the process name without file ending, like \u0027.exe\u0027.","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"254","varname":"IcingaCheckProcess_Array_Process","format":null},"76":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"76","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical","format":null},"245":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"245","varname":"IcingaCheckProcess_Object_TotalPageFileCritical","format":null},"67":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"67","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecWarning","format":null},"350":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"350","varname":"IcingaCheckUpdates_Switchparameter_NoPerfData","format":null},"259":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"259","varname":"IcingaCheckProcessCount_Object_Warning","format":null},"248":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"248","varname":"IcingaCheckProcess_Object_TotalCPUWarning","format":null},"171":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the number of path defined.\nUse for example 8: for alerting for less than 8 MPIO paths available","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"171","varname":"IcingaCheckMPIO_Object_Warning","format":null},"123":{"settings":{"visibility":"visible"},"description":"Critical thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"123","varname":"IcingaCheckHttpJsonResponse_Array_Critical","format":null},"28":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"28","varname":"IcingaCheckCPU_Object_Critical","format":null},"207":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"207","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn","format":null},"335":{"settings":{"datalist":"IcingaCheckUNCPath Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"335","varname":"IcingaCheckUNCPath_Object_Verbosity","format":null},"366":{"settings":{"datalist":"IcingaCheckUsedPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"366","varname":"IcingaCheckUsedPartitionSpace_Int32_Verbosity","format":null},"317":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Critical threshold e.g 20ms or 0.02s.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"317","varname":"IcingaCheckTimeSync_Object_Critical","format":null},"52":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date older then 20 days are considered within the check.","caption":"ChangeOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"52","varname":"IcingaCheckDirectory_String_ChangeOlderThan","format":null},"261":{"settings":{"visibility":"visible"},"description":"Used to specify an array of processes to count and match against. e.g. conhost,wininit","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"261","varname":"IcingaCheckProcessCount_Array_Process","format":null},"349":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\ncritical if one is pending","caption":"CritOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"349","varname":"IcingaCheckUpdates_Switchparameter_CritOnReboot","format":null},"257":{"settings":{"datalist":"IcingaCheckProcess Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"257","varname":"IcingaCheckProcess_Int32_Verbosity","format":null},"358":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"358","varname":"IcingaCheckUsedPartitionSpace_Object_Warning","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of paths on your system, where certificate files are. Use with CertName.","caption":"CertPaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckCertificate_Array_CertPaths","format":null},"68":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"68","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecCritical","format":null},"235":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"235","varname":"IcingaCheckProcess_String_ThresholdInterval","format":null},"37":{"settings":{"visibility":"visible"},"description":"A switch, which can be set to search through directories recursively.","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"37","varname":"IcingaCheckDirectory_Switchparameter_Recurse","format":null},"92":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be included.","caption":"IncludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"92","varname":"IcingaCheckEventlog_Array_IncludeEventId","format":null},"26":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckCPU_String_ThresholdInterval","format":null},"244":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"244","varname":"IcingaCheckProcess_Object_TotalPageFileWarning","format":null},"38":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"38","varname":"IcingaCheckDirectory_Object_Critical","format":null},"29":{"settings":{"visibility":"visible"},"description":"Used to specify a single core to check for. For the average load across all cores use `_Total`","caption":"Core","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"29","varname":"IcingaCheckCPU_String_Core","format":null},"285":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"285","varname":"IcingaCheckStoragePool_String_ThresholdInterval","format":null},"309":{"settings":{"visibility":"visible"},"description":"A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"309","varname":"IcingaCheckTCP_Object_Warning","format":null},"113":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"113","varname":"IcingaCheckHttpJsonResponse_String_ThresholdInterval","format":null},"7":{"settings":{"visibility":"visible"},"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.\nUse format like: \u0027yyyy-MM-dd\u0027","caption":"CriticalStart","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCertificate_Object_CriticalStart","format":null},"365":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"365","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"5":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCertificate_String_ThresholdInterval","format":null},"347":{"settings":{"visibility":"visible"},"description":"The critical threshold for all other updates on the Windows machine","caption":"CriticalOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"347","varname":"IcingaCheckUpdates_Object_CriticalOther","format":null},"356":{"settings":{"datalist":"IcingaCheckUptime Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"356","varname":"IcingaCheckUptime_Int32_Verbosity","format":null},"42":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"42","varname":"IcingaCheckDirectory_Object_WarningSmallestFile","format":null},"359":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"359","varname":"IcingaCheckUsedPartitionSpace_Object_Critical","format":null},"133":{"settings":{"visibility":"visible"},"description":"Used to specify a VHost as string.","caption":"VHost","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"133","varname":"IcingaCheckHTTPStatus_String_VHost","format":null},"36":{"settings":{"visibility":"visible"},"description":"Used to specify an array of filenames or expressions to match against results to filter for specific files.\n\ne.g \u0027*.txt\u0027, \u0027*.sql\u0027, finds all files ending with .txt and .sql","caption":"FileNames","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"36","varname":"IcingaCheckDirectory_Array_FileNames","format":null},"91":{"settings":{"visibility":"visible"},"description":"Used to specify a certain log.","caption":"LogName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"91","varname":"IcingaCheckEventlog_String_LogName","format":null},"27":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckCPU_Object_Warning","format":null},"307":{"settings":{"visibility":"visible"},"description":"A single or a list of ports to check on the target address","caption":"Ports","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"307","varname":"IcingaCheckTCP_Array_Ports","format":null},"115":{"settings":{"visibility":"visible"},"description":"Path for the request, example \"/v1/my_endpoint\"","caption":"ServerPath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"115","varname":"IcingaCheckHttpJsonResponse_String_ServerPath","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"CriticalEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckCertificate_Object_CriticalEnd","format":null},"70":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"70","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenCritical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckBiosSerial_String_ThresholdInterval","format":null},"361":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"361","varname":"IcingaCheckUsedPartitionSpace_Array_Exclude","format":null},"140":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy server as string to authenticate with.","caption":"ProxyServer","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"140","varname":"IcingaCheckHTTPStatus_String_ProxyServer","format":null},"357":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"357","varname":"IcingaCheckUsedPartitionSpace_String_ThresholdInterval","format":null},"237":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"237","varname":"IcingaCheckProcess_Object_PageFileCritical","format":null},"281":{"settings":{"datalist":"IcingaCheckService FilterStartupType","behavior":"strict","data_type":"array"},"description":"Allows to include only services with a specific startup type inside the monitoring,\nin case you check for a list of specific services by using `-Service`","caption":"FilterStartupType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"281","varname":"IcingaCheckService_Array_FilterStartupType","format":null},"226":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"226","varname":"IcingaCheckPerfCounter_String_ThresholdInterval","format":null},"215":{"settings":{"visibility":"visible"},"description":"Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked","caption":"NICs","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"215","varname":"IcingaCheckNLA_Array_NICs","format":null},"129":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"129","varname":"IcingaCheckHTTPStatus_String_ThresholdInterval","format":null},"145":{"settings":{"visibility":"visible"},"description":"Adds the returned content of a website to the plugin output for debugging purpose","caption":"AddOutputContent","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"145","varname":"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent","format":null},"138":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy username as string to authenticate with. Use with: -ProxyPassword \u0026 -ProxyServer","caption":"ProxyUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"138","varname":"IcingaCheckHTTPStatus_String_ProxyUsername","format":null},"193":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"193","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit","format":null},"168":{"settings":{"datalist":"IcingaCheckMemory Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"168","varname":"IcingaCheckMemory_Int32_Verbosity","format":null},"179":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to include for checks. Example OutboundGroup, ClusterInterface","caption":"IncludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"179","varname":"IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam","format":null},"242":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"242","varname":"IcingaCheckProcess_Object_ThreadCountWarning","format":null},"186":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"186","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn","format":null},"105":{"settings":{"visibility":"visible"},"description":"Switch to disable the time cache on a check. If this parameter is set the time cache is disabled.\nAfter the check has been run once, the next check instance will filter through the eventlog from the point the last check ended.\nThis is due to the time cache, when disabled the whole eventlog is checked instead.","caption":"DisableTimeCache","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"105","varname":"IcingaCheckEventlog_Switchparameter_DisableTimeCache","format":null},"95":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be excluded.","caption":"ExcludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"95","varname":"IcingaCheckEventlog_Array_ExcludeUsername","format":null},"327":{"settings":{"visibility":"hidden"},"description":"The password to authenticate the given user for. Has to be a secure string","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"327","varname":"IcingaCheckUNCPath_Securestring_Password","format":null},"84":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Read Only` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreReadOnlyDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"84","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks","format":null},"108":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"108","varname":"IcingaCheckFirewall_String_ThresholdInterval","format":null},"228":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"228","varname":"IcingaCheckPerfCounter_Object_Warning","format":null},"25":{"settings":{"datalist":"IcingaCheckCheckSum Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"25","varname":"IcingaCheckCheckSum_Int32_Verbosity","format":null},"227":{"settings":{"visibility":"visible"},"description":"Used to specify an array of performance counter to check against.","caption":"PerfCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"227","varname":"IcingaCheckPerfCounter_Array_PerfCounter","format":null},"214":{"settings":{"datalist":"IcingaCheckNLA Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"214","varname":"IcingaCheckNLA_Int32_Verbosity","format":null},"278":{"settings":{"visibility":"visible"},"description":"Used to specify an array of services which should be checked against the status. Supports \u0027*\u0027 for\nwildcards.","caption":"Service","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"278","varname":"IcingaCheckService_Array_Service","format":null},"56":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20MB\", which translates to the filze size 20 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 20 MB or larger are considered within the check.","caption":"FileSizeGreaterThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"56","varname":"IcingaCheckDirectory_String_FileSizeGreaterThan","format":null},"269":{"settings":{"visibility":"visible"},"description":"Defines a critical threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"CriticalMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"269","varname":"IcingaCheckScheduledTask_Object_CriticalMissedRuns","format":null},"47":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"47","varname":"IcingaCheckDirectory_Object_CriticalAverageFile","format":null},"74":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"74","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecCritical","format":null},"144":{"settings":{"visibility":"visible"},"description":"A switch used to invert check results.","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"144","varname":"IcingaCheckHTTPStatus_Switchparameter_Negate","format":null},"155":{"settings":{"visibility":"visible"},"description":"The amount of packets send to the target host","caption":"PacketCount","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"155","varname":"IcingaCheckICMP_Int32_PacketCount","format":null},"166":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being included for the check","caption":"IncludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"166","varname":"IcingaCheckMemory_Array_IncludePageFile","format":null},"177":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to exclude for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"ExcludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"177","varname":"IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice","format":null},"188":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"188","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn","format":null},"30":{"settings":{"visibility":"visible"},"description":"Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id\u0027s will not be evaluated\nby the plugin.","caption":"SocketFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"30","varname":"IcingaCheckCPU_Array_SocketFilter","format":null},"205":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the current network interface operational status.","caption":"IfOperationalStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"205","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn","format":null},"185":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteReceivedErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"185","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit","format":null},"194":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"194","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn","format":null},"102":{"settings":{"visibility":"visible"},"description":"Used to specify time data of which point the plugin should start to read event logs from.\nYou can either use a fixed date and time like \"2021/01/30 12:00:00\", a fixed day \"2021/01/30\" or use more dynamic approaches like \"1d\", \"10h\" and so on.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"After","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"102","varname":"IcingaCheckEventlog_Object_After","format":null},"10":{"settings":{"datalist":"IcingaCheckCertificate CertStore","behavior":"strict","data_type":"string"},"description":"Used to specify which CertStore to check. Valid choices are \u0027None\u0027, \u0027*\u0027, \u0027LocalMachine\u0027, \u0027CurrentUser\u0027.\nUse \u0027None\u0027 if you do not want to check the certificate store (Default)","caption":"CertStore","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"10","varname":"IcingaCheckCertificate_String_CertStore","format":null},"142":{"settings":{"visibility":"visible"},"description":null,"caption":"StatusCode","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"142","varname":"IcingaCheckHTTPStatus_Array_StatusCode","format":null},"326":{"settings":{"visibility":"visible"},"description":"Provide a username and/or domain to run this check for. The format can either be \u0027domain\\user\u0027 or \u0027domain@user\u0027","caption":"User","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"326","varname":"IcingaCheckUNCPath_String_User","format":null},"85":{"settings":{"visibility":"visible"},"description":"Set this to include only disks that have drive letters like C:, D:, ..., assigned to them. Can be combined with include/exclude filters","caption":"CheckLogicalOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"85","varname":"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly","format":null},"337":{"settings":{"visibility":"visible"},"description":"Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates\nbeyond the provided categories","caption":"UpdateFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"337","varname":"IcingaCheckUpdates_Array_UpdateFilter","format":null},"229":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"229","varname":"IcingaCheckPerfCounter_Object_Critical","format":null},"239":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"239","varname":"IcingaCheckProcess_Object_MemoryCritical","format":null},"315":{"settings":{"visibility":"visible"},"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.\nInvoke-IcingaCheckTimeSync will return OK, if there is no difference between them,\nWARNING, if the time difference exceeds the Warning threshold,\nCRITICAL, if the time difference exceeds the Critical threshold.","caption":"TimeOffset","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"315","varname":"IcingaCheckTimeSync_Object_TimeOffset","format":null},"58":{"settings":{"datalist":"IcingaCheckDirectory Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"58","varname":"IcingaCheckDirectory_Int32_Verbosity","format":null},"272":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"WarningNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"272","varname":"IcingaCheckScheduledTask_String_WarningNextRunTime","format":null},"49":{"settings":{"visibility":"visible"},"description":"Allows to add the file list to the plugin output. Beware that this will cause your database to grow and\nperformance might be slower on huge directories!","caption":"ShowFileList","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"49","varname":"IcingaCheckDirectory_Switchparameter_ShowFileList","format":null},"277":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"277","varname":"IcingaCheckService_String_ThresholdInterval","format":null},"266":{"settings":{"datalist":"IcingaCheckScheduledTask State","behavior":"strict","data_type":"array"},"description":"The state a task should currently have for the plugin to return [OK]","caption":"State","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"266","varname":"IcingaCheckScheduledTask_Array_State","format":null},"44":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"44","varname":"IcingaCheckDirectory_Object_WarningLargestFile","format":null},"255":{"settings":{"visibility":"visible"},"description":"Define a list of process names which are excluded from the final result. Only the process name is required without \u0027.exe\u0027 at the end.","caption":"ExcludeProcess","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"255","varname":"IcingaCheckProcess_Array_ExcludeProcess","format":null},"77":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"77","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning","format":null},"17":{"settings":{"visibility":"visible"},"description":"Includes sub-directories and entries while looking for certificates on a given path","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckCertificate_Switchparameter_Recurse","format":null},"66":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"66","varname":"IcingaCheckDiskHealth_Object_DiskReadSecCritical","format":null},"304":{"settings":{"datalist":"IcingaCheckStoragePool Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"304","varname":"IcingaCheckStoragePool_Object_Verbosity","format":null},"161":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"161","varname":"IcingaCheckMemory_String_ThresholdInterval","format":null},"204":{"settings":{"datalist":"IcingaCheckNetworkInterface IfAdminStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the network Interface administrative status.","caption":"IfAdminStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"204","varname":"IcingaCheckNetworkInterface_Object_IfAdminStatusWarn","format":null},"21":{"settings":{"visibility":"visible"},"description":null,"caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckCheckSum_String_Path","format":null},"328":{"settings":{"visibility":"visible"},"description":"Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value\ninstead of shorten the output and make it more visual appealing.","caption":"DisplayAlias","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"328","varname":"IcingaCheckUNCPath_String_DisplayAlias","format":null},"339":{"settings":{"visibility":"visible"},"description":"The critical threshold for the total pending update count on the Windows machine","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"339","varname":"IcingaCheckUpdates_Object_Critical","format":null},"130":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time warning threshold in seconds, everything past that threshold is considered a WARNING.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"130","varname":"IcingaCheckHTTPStatus_Object_Warning","format":null},"367":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"367","varname":"IcingaCheckUsers_String_ThresholdInterval","format":null},"316":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Warning threshold e.g 10ms or 0.01s","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"316","varname":"IcingaCheckTimeSync_Object_Warning","format":null},"271":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"CriticalLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"271","varname":"IcingaCheckScheduledTask_String_CriticalLastRunTime","format":null},"345":{"settings":{"visibility":"visible"},"description":"The critical threshold for the Microsoft Defender update count on the Windows machine","caption":"CriticalDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"345","varname":"IcingaCheckUpdates_Object_CriticalDefender","format":null},"253":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"253","varname":"IcingaCheckProcess_Object_TotalProcessCountCritical","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore.","caption":"CertThumbprint","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckCertificate_Array_CertThumbprint","format":null},"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of certificate names of certificate files to check. Use with CertPaths.","caption":"CertName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckCertificate_Array_CertName","format":null},"121":{"settings":{"visibility":"visible"},"description":"Value types of each parameter. Supported Types: Numeric, Boolean, DateTime, String Example: \"myAlias01:Numeric\",\"myAlias02:DateTime\"","caption":"ValueTypes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"121","varname":"IcingaCheckHttpJsonResponse_Array_ValueTypes","format":null},"34":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"34","varname":"IcingaCheckDirectory_String_ThresholdInterval","format":null},"220":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"220","varname":"IcingaCheckPartitionSpace_Array_Exclude","format":null},"298":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"298","varname":"IcingaCheckStoragePool_Object_HealthStatusWarning","format":null},"82":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"82","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical","format":null},"289":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"289","varname":"IcingaCheckStoragePool_Object_FreeSpaceCritical","format":null},"305":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"305","varname":"IcingaCheckTCP_String_ThresholdInterval","format":null},"202":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"202","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn","format":null},"308":{"settings":{"visibility":"visible"},"description":"By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument,\nthe plugin will return [CRITICAL] for successful connections instead","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"308","varname":"IcingaCheckTCP_Switchparameter_Negate","format":null},"112":{"settings":{"datalist":"IcingaCheckFirewall Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"112","varname":"IcingaCheckFirewall_Int32_Verbosity","format":null},"39":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"39","varname":"IcingaCheckDirectory_Object_Warning","format":null},"93":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be excluded.","caption":"ExcludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"93","varname":"IcingaCheckEventlog_Array_ExcludeEventId","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root.\nWill return Critical in case of untrusted.\n\nNote: it is currently required that the root and intermediate CA is known and trusted by the local system.","caption":"Trusted","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"6","varname":"IcingaCheckCertificate_Switchparameter_Trusted","format":null},"172":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the number of path defined.\nUse for example 6: for alerting for less than 6 MPIO paths available","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"172","varname":"IcingaCheckMPIO_Object_Critical","format":null},"160":{"settings":{"datalist":"IcingaCheckICMP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"160","varname":"IcingaCheckICMP_Int32_Verbosity","format":null},"344":{"settings":{"visibility":"visible"},"description":"The warning threshold for the Microsoft Defender update count on the Windows machine","caption":"WarningDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"344","varname":"IcingaCheckUpdates_Object_WarningDefender","format":null},"355":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"355","varname":"IcingaCheckUptime_Switchparameter_NoPerfData","format":null},"252":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"252","varname":"IcingaCheckProcess_Object_TotalProcessCountWarning","format":null},"243":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"243","varname":"IcingaCheckProcess_Object_ThreadCountCritical","format":null},"32":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"32","varname":"IcingaCheckCPU_Switchparameter_NoPerfData","format":null},"231":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, excluding the provided counters. Allows\nwildcard \"*\" usage","caption":"ExcludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"231","varname":"IcingaCheckPerfCounter_Array_ExcludeCounter","format":null},"23":{"settings":{"visibility":"visible"},"description":null,"caption":"Hash","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckCheckSum_String_Hash","format":null},"303":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"303","varname":"IcingaCheckStoragePool_Switchparameter_NoPerfData","format":null},"83":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Offline` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreOfflineDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"83","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks","format":null},"191":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"191","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit","format":null},"306":{"settings":{"visibility":"visible"},"description":"The IP address or FQDN of the target host","caption":"Address","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"306","varname":"IcingaCheckTCP_String_Address","format":null},"270":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"WarningLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"270","varname":"IcingaCheckScheduledTask_String_WarningLastRunTime","format":null},"114":{"settings":{"visibility":"visible"},"description":"Base URI of the server, example \"https://example.comm\"","caption":"ServerUri","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"114","varname":"IcingaCheckHttpJsonResponse_String_ServerUri","format":null},"127":{"settings":{"datalist":"IcingaCheckHttpJsonResponse Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"127","varname":"IcingaCheckHttpJsonResponse_Int32_Verbosity","format":null},"136":{"settings":{"visibility":"visible"},"description":"Used to specify a username as string to authenticate with. Authentication is only possible with \u0027https://\u0027. Use with: -Password","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"136","varname":"IcingaCheckHTTPStatus_String_Username","format":null},"131":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time critical threshold in seconds, everything past that threshold is considered a CRITICAL.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"131","varname":"IcingaCheckHTTPStatus_Object_Critical","format":null},"241":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"241","varname":"IcingaCheckProcess_Object_CPUCritical","format":null},"371":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"371","varname":"IcingaCheckUsers_Switchparameter_NoPerfData","format":null},"342":{"settings":{"visibility":"visible"},"description":"The warning threshold for the rollup update count on the Windows machine","caption":"WarningRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"342","varname":"IcingaCheckUpdates_Object_WarningRollups","format":null},"170":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"170","varname":"IcingaCheckMPIO_String_ThresholdInterval","format":null},"353":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"353","varname":"IcingaCheckUptime_String_Warning","format":null},"97":{"settings":{"datalist":"IcingaCheckEventlog ExcludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be excluded. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"ExcludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"97","varname":"IcingaCheckEventlog_Array_ExcludeEntryType","format":null},"24":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"24","varname":"IcingaCheckCheckSum_Switchparameter_NoPerfData","format":null},"291":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Critical threshold in GB.","caption":"TotalUsedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"291","varname":"IcingaCheckStoragePool_Object_TotalUsedCritical","format":null},"221":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"221","varname":"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"212":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"212","varname":"IcingaCheckNLA_String_ThresholdInterval","format":null},"41":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"41","varname":"IcingaCheckDirectory_Object_CriticalTotalSize","format":null},"260":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"260","varname":"IcingaCheckProcessCount_Object_Critical","format":null},"126":{"settings":{"visibility":"visible"},"description":"Negate the conditions set for string parameters. When this is set to true, WarnIfLike/CritIfLike is used instead of WarnIfNotLike/CritIfNotLike for Strings","caption":"NegateStringResults","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"126","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults","format":null},"146":{"settings":{"visibility":"visible"},"description":"By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this\nflag, the result will be modified from UNKNOWN to CRITICAL","caption":"ConnectionErrAsCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"146","varname":"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit","format":null},"137":{"settings":{"visibility":"hidden"},"description":"Used to specify a password as securestring to authenticate with. Authentication is only possible with \u0027https://\u0027.Use with: -Username","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"137","varname":"IcingaCheckHTTPStatus_Securestring_Password","format":null},"157":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv4 addresses for ICMP calls by using a hostname","caption":"IPv4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"157","varname":"IcingaCheckICMP_Switchparameter_IPv4","format":null},"19":{"settings":{"datalist":"IcingaCheckCertificate Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckCertificate_Int32_Verbosity","format":null},"164":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\n It is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"164","varname":"IcingaCheckMemory_Object_PageFileWarning","format":null},"169":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"169","varname":"IcingaCheckMemory_Switchparameter_NoPerfData","format":null},"178":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to exclude for checks. Example OutboundGroup, ClusterInterface","caption":"ExcludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"178","varname":"IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam","format":null},"187":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"187","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit","format":null},"196":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"196","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn","format":null},"104":{"settings":{"visibility":"visible"},"description":"Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact\nShould match the average amount of log files written for the intended time range filtered","caption":"MaxEntries","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"104","varname":"IcingaCheckEventlog_Int32_MaxEntries","format":null},"332":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"CriticalTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"332","varname":"IcingaCheckUNCPath_Object_CriticalTotal","format":null},"96":{"settings":{"datalist":"IcingaCheckEventlog IncludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be included. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"IncludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"96","varname":"IcingaCheckEventlog_Array_IncludeEntryType","format":null},"331":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"WarningTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"331","varname":"IcingaCheckUNCPath_Object_WarningTotal","format":null},"87":{"settings":{"datalist":"IcingaCheckDiskHealth Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"87","varname":"IcingaCheckDiskHealth_Int32_Verbosity","format":null},"313":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"313","varname":"IcingaCheckTimeSync_String_ThresholdInterval","format":null},"218":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"218","varname":"IcingaCheckPartitionSpace_Object_Critical","format":null},"370":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"370","varname":"IcingaCheckUsers_Object_Critical","format":null},"89":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"89","varname":"IcingaCheckEventlog_Object_Warning","format":null},"279":{"settings":{"visibility":"visible"},"description":"Allows to exclude services which might come in handy for checking services which are configured to start automatically\non Windows but are not running and weren\u0027t exited properly.","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"279","varname":"IcingaCheckService_Array_Exclude","format":null},"57":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"5MB\", which translates to the filze size 5 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 5 MB or less are considered within the check.","caption":"FileSizeSmallerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"57","varname":"IcingaCheckDirectory_String_FileSizeSmallerThan","format":null},"268":{"settings":{"visibility":"visible"},"description":"Defines a warning threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"WarningMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"268","varname":"IcingaCheckScheduledTask_Object_WarningMissedRuns","format":null},"46":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"46","varname":"IcingaCheckDirectory_Object_WarningAverageFile","format":null},"75":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"75","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning","format":null},"64":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to exclude from checks. Example C:, D:","caption":"ExcludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"64","varname":"IcingaCheckDiskHealth_Array_ExcludePartition","format":null},"154":{"settings":{"visibility":"visible"},"description":"The target hosts IP or FQDN to send ICMP requests too","caption":"Hostname","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"154","varname":"IcingaCheckICMP_String_Hostname","format":null},"167":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being excluded for the check","caption":"ExcludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"167","varname":"IcingaCheckMemory_Array_ExcludePageFile","format":null},"176":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to include for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"IncludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"176","varname":"IcingaCheckNetworkInterface_Array_IncludeNetworkDevice","format":null},"189":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"189","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit","format":null},"198":{"settings":{"visibility":"visible"},"description":"Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"198","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedWarn","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify which path within the CertStore should be checked.","caption":"CertStorePath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckCertificate_Object_CertStorePath","format":null},"197":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"197","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit","format":null},"336":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"336","varname":"IcingaCheckUpdates_String_ThresholdInterval","format":null},"369":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"369","varname":"IcingaCheckUsers_Object_Warning","format":null},"314":{"settings":{"visibility":"visible"},"description":"The NTP Server you want to connect to.","caption":"Server","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"314","varname":"IcingaCheckTimeSync_String_Server","format":null},"59":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"59","varname":"IcingaCheckDirectory_Switchparameter_NoPerfData","format":null},"273":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"CriticalNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"273","varname":"IcingaCheckScheduledTask_String_CriticalNextRunTime","format":null},"48":{"settings":{"visibility":"visible"},"description":"Will add the count of folders on top of the file count, allowing to include it within the threshold check.","caption":"CountFolderAsFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"48","varname":"IcingaCheckDirectory_Switchparameter_CountFolderAsFile","format":null},"262":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"262","varname":"IcingaCheckProcessCount_Switchparameter_NoPerfData","format":null},"251":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"251","varname":"IcingaCheckProcess_Object_TotalThreadCountCritical","format":null},"18":{"settings":{"visibility":"visible"},"description":"Will return `OK` instead of `UNKNOWN`, in case no certificates for the given filter and path were found","caption":"IgnoreEmpty","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckCertificate_Switchparameter_IgnoreEmpty","format":null},"65":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"65","varname":"IcingaCheckDiskHealth_Object_DiskReadSecWarning","format":null},"296":{"settings":{"visibility":"visible"},"description":"Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not.","caption":"SupportsDeduplicationCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"296","varname":"IcingaCheckStoragePool_Object_SupportsDeduplicationCritical","format":null},"287":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system.","caption":"ExcludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"287","varname":"IcingaCheckStoragePool_Array_ExcludeStoragePool","format":null},"295":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when\nunmapped or removed from the storage pool.","caption":"ClearOnDeallocateCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"295","varname":"IcingaCheckStoragePool_Object_ClearOnDeallocateCritical","format":null},"199":{"settings":{"visibility":"visible"},"description":"Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"199","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedCrit","format":null},"100":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be included.","caption":"IncludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"100","varname":"IcingaCheckEventlog_Array_IncludeSource","format":null},"329":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"329","varname":"IcingaCheckUNCPath_Object_Warning","format":null},"338":{"settings":{"visibility":"visible"},"description":"The warning threshold for the total pending update count on the Windows machine","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"338","varname":"IcingaCheckUpdates_Object_Warning","format":null},"120":{"settings":{"visibility":"visible"},"description":"paths to look for values in the JSON object that is checked, including an alias for each parameter. Example: \"myAlias01:value01\",\"myAlias02:nested.object.value02\", \"myAlias03:\u0027object\u0027.\u0027my.Par.With.Dots\u0027\"","caption":"ValuePaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"120","varname":"IcingaCheckHttpJsonResponse_Array_ValuePaths","format":null},"368":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames to match against. e.g \u0027Administrator\u0027, \u0027Icinga\u0027","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"368","varname":"IcingaCheckUsers_Array_Username","format":null},"263":{"settings":{"datalist":"IcingaCheckProcessCount Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"263","varname":"IcingaCheckProcessCount_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore.","caption":"CertSubject","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckCertificate_Array_CertSubject","format":null},"80":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"80","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical","format":null},"183":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"183","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecCrit","format":null},"230":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, only including the provided counters. Allows\nwildcard \"*\" usage","caption":"IncludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"230","varname":"IcingaCheckPerfCounter_Array_IncludeCounter","format":null},"35":{"settings":{"visibility":"visible"},"description":"Used to specify a path.\ne.g. \u0027C:\\Users\\Icinga\\Downloads\u0027","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"35","varname":"IcingaCheckDirectory_String_Path","format":null},"182":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"182","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecWarn","format":null},"200":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"200","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusWarn","format":null},"288":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"288","varname":"IcingaCheckStoragePool_Object_FreeSpaceWarning","format":null},"50":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been changed 20 days ago are considered within the check.","caption":"ChangeTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"50","varname":"IcingaCheckDirectory_String_ChangeTimeEqual","format":null},"203":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"203","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit","format":null},"116":{"settings":{"visibility":"visible"},"description":"Query parameter for the request without ?, example \"command=example\"","caption":"QueryParameter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"116","varname":"IcingaCheckHttpJsonResponse_String_QueryParameter","format":null},"362":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"362","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"246":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"246","varname":"IcingaCheckProcess_Object_TotalMemoryWarning","format":null},"351":{"settings":{"datalist":"IcingaCheckUpdates Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"351","varname":"IcingaCheckUpdates_Int32_Verbosity","format":null},"190":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"190","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn","format":null},"354":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"354","varname":"IcingaCheckUptime_String_Critical","format":null},"320":{"settings":{"visibility":"visible"},"description":"Port number (default: 123)","caption":"Port","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"320","varname":"IcingaCheckTimeSync_Int32_Port","format":null},"33":{"settings":{"datalist":"IcingaCheckCPU Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"33","varname":"IcingaCheckCPU_Int32_Verbosity","format":null},"232":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element was found and\nprevent the plugin from exiting UNKNOWN and returns OK instead","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"232","varname":"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks","format":null},"22":{"settings":{"datalist":"IcingaCheckCheckSum Algorithm","behavior":"strict","data_type":"string"},"description":"Used to specify a string, which contains the algorithm to be used.\n\nAllowed algorithms: \u0027SHA1\u0027, \u0027SHA256\u0027, \u0027SHA384\u0027, \u0027SHA512\u0027, \u0027MD5\u0027","caption":"Algorithm","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"22","varname":"IcingaCheckCheckSum_String_Algorithm","format":null},"223":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"223","varname":"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown","format":null},"302":{"settings":{"visibility":"visible"},"description":"A primordial pool, also known as the \u0027available storage\u0027 pool is where storage capacity is drawn and returned in the\ncreation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to\ntrue if you also want to check Primordial StoragePools. Default to false.","caption":"IncludePrimordial","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"302","varname":"IcingaCheckStoragePool_Switchparameter_IncludePrimordial","format":null},"118":{"settings":{"visibility":"hidden"},"description":"Credentials to use for basic auth","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"118","varname":"IcingaCheckHttpJsonResponse_Securestring_Password","format":null},"330":{"settings":{"visibility":"visible"},"description":"A critical threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"330","varname":"IcingaCheckUNCPath_Object_Critical","format":null},"40":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"40","varname":"IcingaCheckDirectory_Object_WarningTotalSize","format":null},"117":{"settings":{"visibility":"visible"},"description":"Credentials to use for basic auth","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"117","varname":"IcingaCheckHttpJsonResponse_String_Username","format":null},"124":{"settings":{"visibility":"visible"},"description":"Disables SSL verification and allows the connection to endpoints with self-signed certificates as example","caption":"IgnoreSSL","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"124","varname":"IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL","format":null},"148":{"settings":{"datalist":"IcingaCheckHTTPStatus Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"148","varname":"IcingaCheckHTTPStatus_Int32_Verbosity","format":null},"135":{"settings":{"visibility":"visible"},"description":"Used to specify the timeout in seconds of the webrequest as integer. The default is 10 for 10 seconds.","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"135","varname":"IcingaCheckHTTPStatus_Int32_Timeout","format":null},"290":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Warning threshold in GB.","caption":"TotalUsedWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"290","varname":"IcingaCheckStoragePool_Object_TotalUsedWarning","format":null},"181":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"181","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit","format":null},"343":{"settings":{"visibility":"visible"},"description":"The critical threshold for the rollup update count on the Windows machine","caption":"CriticalRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"343","varname":"IcingaCheckUpdates_Object_CriticalRollups","format":null},"352":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"352","varname":"IcingaCheckUptime_String_ThresholdInterval","format":null},"106":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"106","varname":"IcingaCheckEventlog_Switchparameter_NoPerfData","format":null},"322":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"322","varname":"IcingaCheckTimeSync_Switchparameter_NoPerfData","format":null},"98":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be included.","caption":"IncludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"98","varname":"IcingaCheckEventlog_Array_IncludeMessage","format":null},"333":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"333","varname":"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace","format":null},"234":{"settings":{"datalist":"IcingaCheckPerfCounter Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"234","varname":"IcingaCheckPerfCounter_Int32_Verbosity","format":null},"225":{"settings":{"datalist":"IcingaCheckPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"225","varname":"IcingaCheckPartitionSpace_Int32_Verbosity","format":null},"216":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"216","varname":"IcingaCheckPartitionSpace_String_ThresholdInterval","format":null},"300":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"300","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning","format":null},"213":{"settings":{"datalist":"IcingaCheckNLA Profile","behavior":"strict","data_type":"string"},"description":"Used to specify the profile to check. Available profiles are \u0027DomainAuthenticated\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"213","varname":"IcingaCheckNLA_String_Profile","format":null},"119":{"settings":{"visibility":"visible"},"description":"Timeout in seconds before the http request is aborted. Defaults to 30","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"119","varname":"IcingaCheckHttpJsonResponse_Int32_Timeout","format":null},"73":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"73","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecWarning","format":null},"62":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to exclude from checks. Example 0, 1","caption":"ExcludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"62","varname":"IcingaCheckDiskHealth_Array_ExcludeDisk","format":null},"147":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"147","varname":"IcingaCheckHTTPStatus_Switchparameter_NoPerfData","format":null},"360":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"360","varname":"IcingaCheckUsedPartitionSpace_Array_Include","format":null},"156":{"settings":{"visibility":"visible"},"description":"The size of each packet send to the target host","caption":"PacketSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"156","varname":"IcingaCheckICMP_Int32_PacketSize","format":null},"132":{"settings":{"visibility":"visible"},"description":"Used to specify the URL of the host to check http as string. Use \u0027http://\u0027 or \u0027https://\u0027 to actively chose a protocol. Likewise \u0027:80\u0027 or any other port number to specify a port, etc.","caption":"Url","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"132","varname":"IcingaCheckHTTPStatus_Array_Url","format":null},"165":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"165","varname":"IcingaCheckMemory_Object_PageFileCritical","format":null},"174":{"settings":{"datalist":"IcingaCheckMPIO Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"174","varname":"IcingaCheckMPIO_Object_Verbosity","format":null},"208":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"208","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit","format":null},"280":{"settings":{"datalist":"IcingaCheckService Status","behavior":"strict","data_type":"string"},"description":"Status for the specified service or services to check against.","caption":"Status","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"280","varname":"IcingaCheckService_String_Status","format":null},"324":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"324","varname":"IcingaCheckUNCPath_String_ThresholdInterval","format":null},"107":{"settings":{"datalist":"IcingaCheckEventlog Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"107","varname":"IcingaCheckEventlog_Int32_Verbosity","format":null},"321":{"settings":{"visibility":"visible"},"description":"Ignores the W32Time service during check execution and will not throw warning or critical in case the service is not running","caption":"IgnoreService","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"321","varname":"IcingaCheckTimeSync_Switchparameter_IgnoreService","format":null},"86":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"86","varname":"IcingaCheckDiskHealth_Switchparameter_NoPerfData","format":null},"312":{"settings":{"datalist":"IcingaCheckTCP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"312","varname":"IcingaCheckTCP_Object_Verbosity","format":null},"219":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"219","varname":"IcingaCheckPartitionSpace_Array_Include","format":null},"275":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"275","varname":"IcingaCheckScheduledTask_Switchparameter_NoPerfData","format":null},"264":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"264","varname":"IcingaCheckScheduledTask_String_ThresholdInterval","format":null},"79":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"79","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning","format":null},"72":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"72","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical","format":null},"141":{"settings":{"visibility":"visible"},"description":"Used to specify an array of regex-match-strings to match against the content of the webrequest response.","caption":"Content","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"141","varname":"IcingaCheckHTTPStatus_Array_Content","format":null},"63":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to include for checks. Example C:, D:","caption":"IncludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"63","varname":"IcingaCheckDiskHealth_Array_IncludePartition","format":null},"249":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"249","varname":"IcingaCheckProcess_Object_TotalCPUCritical","format":null},"163":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"163","varname":"IcingaCheckMemory_Object_Critical","format":null},"258":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"258","varname":"IcingaCheckProcessCount_String_ThresholdInterval","format":null},"206":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the current network interface operational status.","caption":"IfOperationalStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"206","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit","format":null},"175":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"175","varname":"IcingaCheckNetworkInterface_String_ThresholdInterval","format":null},"139":{"settings":{"visibility":"hidden"},"description":"Used to specify a proxy password as securestring to authenticate with. Use with: -ProxyUsername \u0026 -ProxyServer","caption":"ProxyPassword","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"139","varname":"IcingaCheckHTTPStatus_Securestring_ProxyPassword","format":null},"110":{"settings":{"visibility":"visible"},"description":"Used to specify whether the firewall profiles should be enabled or disabled.\n\n-Enabled $TRUE translates to enabled, while not being specified translates to disabled.","caption":"Enabled","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"110","varname":"IcingaCheckFirewall_Switchparameter_Enabled","format":null},"101":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be excluded.","caption":"ExcludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"101","varname":"IcingaCheckEventlog_Array_ExcludeSource","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"318":{"settings":{"visibility":"visible"},"description":"Seconds before connection times out (default: 10)","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"318","varname":"IcingaCheckTimeSync_Int32_Timeout","format":null},"274":{"settings":{"visibility":"visible"},"description":"By default every task which did not exit with 0 will be handled as critical. If you set this flag,\nthe exit code of the task is ignored during check execution","caption":"IgnoreLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"274","varname":"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime","format":null},"265":{"settings":{"visibility":"visible"},"description":"A list of tasks to check for. If your tasks contain spaces, wrap them around a \u0027 to ensure they are\nproperly handled as string","caption":"TaskName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"265","varname":"IcingaCheckScheduledTask_Array_TaskName","format":null},"348":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\nwarning if one is pending","caption":"WarnOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"348","varname":"IcingaCheckUpdates_Switchparameter_WarnOnReboot","format":null},"256":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"256","varname":"IcingaCheckProcess_Switchparameter_NoPerfData","format":null},"78":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"78","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical","format":null},"247":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"247","varname":"IcingaCheckProcess_Object_TotalMemoryCritical","format":null},"69":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"69","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenWarning","format":null},"299":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"299","varname":"IcingaCheckStoragePool_Object_HealthStatusCritical","format":null},"151":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for the response time in ms","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"151","varname":"IcingaCheckICMP_Object_Critical","format":null},"301":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"301","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical","format":null},"162":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"162","varname":"IcingaCheckMemory_Object_Warning","format":null},"173":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"173","varname":"IcingaCheckMPIO_Switchparameter_NoPerfData","format":null},"297":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool IsPowerProtected is, whether the disks in this pool are able to tolerate power loss without data loss.\nFor example, they automatically flush volatile buffers to non-volatile media after external power is disconnected.","caption":"IsPowerProtectedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"297","varname":"IcingaCheckStoragePool_Object_IsPowerProtectedCritical","format":null},"210":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"210","varname":"IcingaCheckNetworkInterface_Switchparameter_NoPerfData","format":null},"286":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system.","caption":"IncludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"286","varname":"IcingaCheckStoragePool_Array_IncludeStoragePool","format":null},"201":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"201","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusCrit","format":null},"153":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for possible packet loss in %","caption":"CriticalPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"153","varname":"IcingaCheckICMP_Object_CriticalPl","format":null}}} +{"DataList":{"IcingaCheckNetworkInterface IfOperationalStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckFirewall Verbosity":{"list_name":"IcingaCheckFirewall Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckPartitionSpace Verbosity":{"list_name":"IcingaCheckPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHTTPStatus Verbosity":{"list_name":"IcingaCheckHTTPStatus Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Verbosity":{"list_name":"IcingaCheckNLA Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckMemory Verbosity":{"list_name":"IcingaCheckMemory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService Verbosity":{"list_name":"IcingaCheckService Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog ExcludeEntryType":{"list_name":"IcingaCheckEventlog ExcludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask Verbosity":{"list_name":"IcingaCheckScheduledTask Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusWarning":{"list_name":"IcingaCheckStoragePool HealthStatusWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckUsedPartitionSpace Verbosity":{"list_name":"IcingaCheckUsedPartitionSpace Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Verbosity":{"list_name":"IcingaCheckCheckSum Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCPU Verbosity":{"list_name":"IcingaCheckCPU Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse Verbosity":{"list_name":"IcingaCheckHttpJsonResponse Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfOperationalStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfOperationalStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Dormant","entry_name":"Dormant","format":"string"},{"allowed_roles":null,"entry_value":"NotPresent","entry_name":"NotPresent","format":"string"},{"allowed_roles":null,"entry_value":"LowerLayerDown","entry_name":"LowerLayerDown","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog IncludeEntryType":{"list_name":"IcingaCheckEventlog IncludeEntryType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Information","entry_name":"Information","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Error","entry_name":"Error","format":"string"},{"allowed_roles":null,"entry_value":"SuccessAudit","entry_name":"SuccessAudit","format":"string"},{"allowed_roles":null,"entry_value":"FailureAudit","entry_name":"FailureAudit","format":"string"}],"owner":"cstein"},"IcingaCheckMPIO Verbosity":{"list_name":"IcingaCheckMPIO Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckDirectory Verbosity":{"list_name":"IcingaCheckDirectory Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate CertStore":{"list_name":"IcingaCheckCertificate CertStore","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"None","entry_name":"None","format":"string"},{"allowed_roles":null,"entry_value":"*","entry_name":"*","format":"string"},{"allowed_roles":null,"entry_value":"LocalMachine","entry_name":"LocalMachine","format":"string"},{"allowed_roles":null,"entry_value":"CurrentUser","entry_name":"CurrentUser","format":"string"}],"owner":"cstein"},"IcingaCheckProcessCount Verbosity":{"list_name":"IcingaCheckProcessCount Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckCertificate Verbosity":{"list_name":"IcingaCheckCertificate Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckHttpJsonResponse StatusOnRequestError":{"list_name":"IcingaCheckHttpJsonResponse StatusOnRequestError","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Critical","entry_name":"Critical","format":"string"},{"allowed_roles":null,"entry_value":"OK","entry_name":"OK","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning":{"list_name":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Auto","entry_name":"Auto","format":"string"},{"allowed_roles":null,"entry_value":"Always","entry_name":"Always","format":"string"},{"allowed_roles":null,"entry_value":"Never","entry_name":"Never","format":"string"}],"owner":"cstein"},"IcingaCheckEventlog Verbosity":{"list_name":"IcingaCheckEventlog Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface Verbosity":{"list_name":"IcingaCheckNetworkInterface Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckScheduledTask State":{"list_name":"IcingaCheckScheduledTask State","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Queued","entry_name":"Queued","format":"string"},{"allowed_roles":null,"entry_value":"Ready","entry_name":"Ready","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"}],"owner":"cstein"},"IcingaCheckPerfCounter Verbosity":{"list_name":"IcingaCheckPerfCounter Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService Status":{"list_name":"IcingaCheckService Status","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Stopped","entry_name":"Stopped","format":"string"},{"allowed_roles":null,"entry_value":"StartPending","entry_name":"StartPending","format":"string"},{"allowed_roles":null,"entry_value":"StopPending","entry_name":"StopPending","format":"string"},{"allowed_roles":null,"entry_value":"Running","entry_name":"Running","format":"string"},{"allowed_roles":null,"entry_value":"ContinuePending","entry_name":"ContinuePending","format":"string"},{"allowed_roles":null,"entry_value":"PausePending","entry_name":"PausePending","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfAdminStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfAdminStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Testing","entry_name":"Testing","format":"string"}],"owner":"cstein"},"IcingaCheckProcess Verbosity":{"list_name":"IcingaCheckProcess Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckTimeSync Verbosity":{"list_name":"IcingaCheckTimeSync Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUptime Verbosity":{"list_name":"IcingaCheckUptime Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfTeamStatusCrit":{"list_name":"IcingaCheckNetworkInterface IfTeamStatusCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Degraded","entry_name":"Degraded","format":"string"}],"owner":"cstein"},"IcingaCheckCheckSum Algorithm":{"list_name":"IcingaCheckCheckSum Algorithm","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"SHA1","entry_name":"SHA1","format":"string"},{"allowed_roles":null,"entry_value":"SHA256","entry_name":"SHA256","format":"string"},{"allowed_roles":null,"entry_value":"SHA384","entry_name":"SHA384","format":"string"},{"allowed_roles":null,"entry_value":"SHA512","entry_name":"SHA512","format":"string"},{"allowed_roles":null,"entry_value":"MD5","entry_name":"MD5","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool Verbosity":{"list_name":"IcingaCheckStoragePool Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckStoragePool HealthStatusCritical":{"list_name":"IcingaCheckStoragePool HealthStatusCritical","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Healthy","entry_name":"Healthy","format":"string"},{"allowed_roles":null,"entry_value":"Warning","entry_name":"Warning","format":"string"},{"allowed_roles":null,"entry_value":"Unhealthy","entry_name":"Unhealthy","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfConnectionStatusWarn":{"list_name":"IcingaCheckNetworkInterface IfConnectionStatusWarn","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Disconnected","entry_name":"Disconnected","format":"string"},{"allowed_roles":null,"entry_value":"Connecting","entry_name":"Connecting","format":"string"},{"allowed_roles":null,"entry_value":"Connected","entry_name":"Connected","format":"string"},{"allowed_roles":null,"entry_value":"Disconnecting","entry_name":"Disconnecting","format":"string"},{"allowed_roles":null,"entry_value":"HardwareNotPresent","entry_name":"HardwareNotPresent","format":"string"},{"allowed_roles":null,"entry_value":"HardwareDisabled","entry_name":"HardwareDisabled","format":"string"},{"allowed_roles":null,"entry_value":"HardwareMalfunction","entry_name":"HardwareMalfunction","format":"string"},{"allowed_roles":null,"entry_value":"MediaDisconnected","entry_name":"MediaDisconnected","format":"string"},{"allowed_roles":null,"entry_value":"Authenticating","entry_name":"Authenticating","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationSucceeded","entry_name":"AuthenticationSucceeded","format":"string"},{"allowed_roles":null,"entry_value":"AuthenticationFailed","entry_name":"AuthenticationFailed","format":"string"},{"allowed_roles":null,"entry_value":"InvalidAddress","entry_name":"InvalidAddress","format":"string"},{"allowed_roles":null,"entry_value":"CredentialsRequired","entry_name":"CredentialsRequired","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"}],"owner":"cstein"},"IcingaCheckDiskHealth Verbosity":{"list_name":"IcingaCheckDiskHealth Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUpdates Verbosity":{"list_name":"IcingaCheckUpdates Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNLA Profile":{"list_name":"IcingaCheckNLA Profile","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"DomainAuthenticated","entry_name":"DomainAuthenticated","format":"string"},{"allowed_roles":null,"entry_value":"Public","entry_name":"Public","format":"string"},{"allowed_roles":null,"entry_value":"Private","entry_name":"Private","format":"string"}],"owner":"cstein"},"PowerShell ExecutionPolicies":{"list_name":"PowerShell ExecutionPolicies","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"AllSigned","entry_name":"AllSigned","format":"string"},{"allowed_roles":null,"entry_value":"Bypass","entry_name":"Bypass","format":"string"},{"allowed_roles":null,"entry_value":"Default","entry_name":"Default","format":"string"},{"allowed_roles":null,"entry_value":"RemoteSigned","entry_name":"RemoteSigned","format":"string"},{"allowed_roles":null,"entry_value":"Restricted","entry_name":"Restricted","format":"string"},{"allowed_roles":null,"entry_value":"Undefined","entry_name":"Undefined","format":"string"},{"allowed_roles":null,"entry_value":"Unrestricted","entry_name":"Unrestricted","format":"string"}],"owner":"cstein"},"IcingaCheckICMP Verbosity":{"list_name":"IcingaCheckICMP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit":{"list_name":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Other","entry_name":"Other","format":"string"},{"allowed_roles":null,"entry_value":"Enabled","entry_name":"Enabled","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"ShuttingDown","entry_name":"ShuttingDown","format":"string"},{"allowed_roles":null,"entry_value":"NotApplicable","entry_name":"NotApplicable","format":"string"},{"allowed_roles":null,"entry_value":"EnabledButOffline","entry_name":"EnabledButOffline","format":"string"},{"allowed_roles":null,"entry_value":"InTest","entry_name":"InTest","format":"string"},{"allowed_roles":null,"entry_value":"Deferred","entry_name":"Deferred","format":"string"},{"allowed_roles":null,"entry_value":"Quiesce","entry_name":"Quiesce","format":"string"},{"allowed_roles":null,"entry_value":"Starting","entry_name":"Starting","format":"string"}],"owner":"cstein"},"IcingaCheckUsers Verbosity":{"list_name":"IcingaCheckUsers Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckUNCPath Verbosity":{"list_name":"IcingaCheckUNCPath Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckTCP Verbosity":{"list_name":"IcingaCheckTCP Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"cstein"},"IcingaCheckService FilterStartupType":{"list_name":"IcingaCheckService FilterStartupType","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Boot","entry_name":"Boot","format":"string"},{"allowed_roles":null,"entry_value":"System","entry_name":"System","format":"string"},{"allowed_roles":null,"entry_value":"Automatic","entry_name":"Automatic","format":"string"},{"allowed_roles":null,"entry_value":"Manual","entry_name":"Manual","format":"string"},{"allowed_roles":null,"entry_value":"Disabled","entry_name":"Disabled","format":"string"},{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"}],"owner":"cstein"}},"Command":{"Invoke-IcingaCheckMPIO":{"fields":[{"datafield_id":170,"is_required":"n","var_filter":null},{"datafield_id":171,"is_required":"n","var_filter":null},{"datafield_id":172,"is_required":"n","var_filter":null},{"datafield_id":173,"is_required":"n","var_filter":null},{"datafield_id":174,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMPIO","arguments":{"-Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$","order":"4"},"-Warning":{"value":"$IcingaCheckMPIO_Object_Warning$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMPIO_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"value":"$IcingaCheckMPIO_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMPIO_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMPIO_Object_Critical$"},"Warning":{"value":"$IcingaCheckMPIO_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckMPIO_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckMPIO_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckMPIO_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMPIO"}},"Invoke-IcingaCheckUsers":{"fields":[{"datafield_id":367,"is_required":"n","var_filter":null},{"datafield_id":368,"is_required":"n","var_filter":null},{"datafield_id":369,"is_required":"n","var_filter":null},{"datafield_id":370,"is_required":"n","var_filter":null},{"datafield_id":371,"is_required":"n","var_filter":null},{"datafield_id":372,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsers","arguments":{"-Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsers_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Warning":{"value":"$IcingaCheckUsers_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckUsers_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Username":{"value":{"body":"var arr = macro(\"$IcingaCheckUsers_Array_Username$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUsers_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Username":{"value":"$IcingaCheckUsers_Array_Username$"},"ThresholdInterval":{"value":"$IcingaCheckUsers_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckUsers_Object_Critical$"},"Warning":{"value":"$IcingaCheckUsers_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUsers_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUsers_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUsers"}},"Invoke-IcingaCheckCertificate":{"fields":[{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null},{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null},{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCertificate","arguments":{"-CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$","order":"9"},"-CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$","order":"4"},"-Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$","order":"12"},"-CertSubject":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertSubject$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$","set_if_format":"string","order":"99"},"-WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$","order":"3"},"-CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$","order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CertStore":{"set_if":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCertificate_String_CertStore$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$","set_if_format":"string","order":"99"},"-ExcludePattern":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_ExcludePattern$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-CertPaths":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertPaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-CertThumbprint":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertThumbprint$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-CertName":{"value":{"body":"var arr = macro(\"$IcingaCheckCertificate_Array_CertName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCertificate_Switchparameter_IgnoreEmpty":false,"IcingaCheckCertificate_Switchparameter_Recurse":false,"ifw_api_arguments":{"CertStorePath":{"value":"$IcingaCheckCertificate_Object_CertStorePath$"},"CertPaths":{"value":"$IcingaCheckCertificate_Array_CertPaths$"},"CertName":{"value":"$IcingaCheckCertificate_Array_CertName$"},"CriticalEnd":{"value":"$IcingaCheckCertificate_Object_CriticalEnd$"},"Trusted":{"set_if":"$IcingaCheckCertificate_Switchparameter_Trusted$"},"ThresholdInterval":{"value":"$IcingaCheckCertificate_String_ThresholdInterval$"},"CertThumbprint":{"value":"$IcingaCheckCertificate_Array_CertThumbprint$"},"CertStore":{"value":"$IcingaCheckCertificate_String_CertStore$"},"CertSubject":{"value":"$IcingaCheckCertificate_Array_CertSubject$"},"IgnoreEmpty":{"set_if":"$IcingaCheckCertificate_Switchparameter_IgnoreEmpty$"},"Verbosity":{"value":"$IcingaCheckCertificate_Int32_Verbosity$"},"CriticalStart":{"value":"$IcingaCheckCertificate_Object_CriticalStart$"},"WarningEnd":{"value":"$IcingaCheckCertificate_Object_WarningEnd$"},"ExcludePattern":{"value":"$IcingaCheckCertificate_Array_ExcludePattern$"},"Recurse":{"set_if":"$IcingaCheckCertificate_Switchparameter_Recurse$"}},"ifw_api_command":"Invoke-IcingaCheckCertificate","IcingaCheckCertificate_Switchparameter_Trusted":false}},"Invoke-IcingaCheckMemory":{"fields":[{"datafield_id":161,"is_required":"n","var_filter":null},{"datafield_id":162,"is_required":"n","var_filter":null},{"datafield_id":163,"is_required":"n","var_filter":null},{"datafield_id":164,"is_required":"n","var_filter":null},{"datafield_id":165,"is_required":"n","var_filter":null},{"datafield_id":166,"is_required":"n","var_filter":null},{"datafield_id":167,"is_required":"n","var_filter":null},{"datafield_id":168,"is_required":"n","var_filter":null},{"datafield_id":169,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckMemory","arguments":{"-Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckMemory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$","order":"5"},"-ExcludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_ExcludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-Warning":{"value":"$IcingaCheckMemory_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMemory_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$","order":"4"},"-IncludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_IncludePageFile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMemory_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckMemory_Object_Critical$"},"ThresholdInterval":{"value":"$IcingaCheckMemory_String_ThresholdInterval$"},"PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$"},"PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$"},"IncludePageFile":{"value":"$IcingaCheckMemory_Array_IncludePageFile$"},"Warning":{"value":"$IcingaCheckMemory_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$"},"ExcludePageFile":{"value":"$IcingaCheckMemory_Array_ExcludePageFile$"},"Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckMemory"}},"Invoke-IcingaCheckPartitionSpace":{"fields":[{"datafield_id":216,"is_required":"n","var_filter":null},{"datafield_id":217,"is_required":"n","var_filter":null},{"datafield_id":218,"is_required":"n","var_filter":null},{"datafield_id":219,"is_required":"n","var_filter":null},{"datafield_id":220,"is_required":"n","var_filter":null},{"datafield_id":221,"is_required":"n","var_filter":null},{"datafield_id":222,"is_required":"n","var_filter":null},{"datafield_id":223,"is_required":"n","var_filter":null},{"datafield_id":224,"is_required":"n","var_filter":null},{"datafield_id":225,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPartitionSpace","arguments":{"-Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckPartitionSpace_Array_Include$"}},"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown":false,"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckPartitionSpace_Switchparameter_NoPerfData":false,"ifw_api_command":"Invoke-IcingaCheckPartitionSpace"}},"Invoke-IcingaCheckHTTPStatus":{"fields":[{"datafield_id":129,"is_required":"n","var_filter":null},{"datafield_id":130,"is_required":"n","var_filter":null},{"datafield_id":131,"is_required":"n","var_filter":null},{"datafield_id":132,"is_required":"n","var_filter":null},{"datafield_id":133,"is_required":"n","var_filter":null},{"datafield_id":134,"is_required":"n","var_filter":null},{"datafield_id":135,"is_required":"n","var_filter":null},{"datafield_id":136,"is_required":"n","var_filter":null},{"datafield_id":137,"is_required":"n","var_filter":null},{"datafield_id":138,"is_required":"n","var_filter":null},{"datafield_id":139,"is_required":"n","var_filter":null},{"datafield_id":140,"is_required":"n","var_filter":null},{"datafield_id":141,"is_required":"n","var_filter":null},{"datafield_id":142,"is_required":"n","var_filter":null},{"datafield_id":143,"is_required":"n","var_filter":null},{"datafield_id":144,"is_required":"n","var_filter":null},{"datafield_id":145,"is_required":"n","var_filter":null},{"datafield_id":146,"is_required":"n","var_filter":null},{"datafield_id":147,"is_required":"n","var_filter":null},{"datafield_id":148,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHTTPStatus","arguments":{"-StatusCode":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_StatusCode$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$","order":"16"},"-Content":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Content$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-ProxyUsername":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyUsername$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_Password$\u0027)","order":"9"},"-Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$","order":"2"},"-ProxyServer":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_ProxyServer$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-ProxyPassword":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHTTPStatus_Securestring_ProxyPassword$\u0027)","order":"11"},"-Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$","order":"15"},"-VHost":{"set_if":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHTTPStatus_String_VHost$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$","order":"3"},"-Headers":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Headers$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$","order":"7"},"-Url":{"value":{"body":"var arr = macro(\"$IcingaCheckHTTPStatus_Array_Url$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHTTPStatus_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Url":{"value":"$IcingaCheckHTTPStatus_Array_Url$"},"Verbosity":{"value":"$IcingaCheckHTTPStatus_Int32_Verbosity$"},"Timeout":{"value":"$IcingaCheckHTTPStatus_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHTTPStatus_String_Username$"},"Password":{"value":"$IcingaCheckHTTPStatus_Securestring_Password$"},"Negate":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_Negate$"},"ThresholdInterval":{"value":"$IcingaCheckHTTPStatus_String_ThresholdInterval$"},"VHost":{"value":"$IcingaCheckHTTPStatus_String_VHost$"},"Content":{"value":"$IcingaCheckHTTPStatus_Array_Content$"},"AddOutputContent":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$"},"ProxyUsername":{"value":"$IcingaCheckHTTPStatus_String_ProxyUsername$"},"Warning":{"value":"$IcingaCheckHTTPStatus_Object_Warning$"},"Headers":{"value":"$IcingaCheckHTTPStatus_Array_Headers$"},"Critical":{"value":"$IcingaCheckHTTPStatus_Object_Critical$"},"StatusCode":{"value":"$IcingaCheckHTTPStatus_Array_StatusCode$"},"NoPerfData":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_NoPerfData$"},"ProxyServer":{"value":"$IcingaCheckHTTPStatus_String_ProxyServer$"},"ConnectionErrAsCrit":{"set_if":"$IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit$"},"Minimum":{"value":"$IcingaCheckHTTPStatus_Int32_Minimum$"},"ProxyPassword":{"value":"$IcingaCheckHTTPStatus_Securestring_ProxyPassword$"}},"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent":false,"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit":false,"ifw_api_command":"Invoke-IcingaCheckHTTPStatus","IcingaCheckHTTPStatus_Switchparameter_Negate":false}},"Invoke-IcingaCheckNLA":{"fields":[{"datafield_id":212,"is_required":"n","var_filter":null},{"datafield_id":213,"is_required":"n","var_filter":null},{"datafield_id":214,"is_required":"n","var_filter":null},{"datafield_id":215,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNLA","arguments":{"-Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$","order":"3"},"-Profile":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_Profile$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_Profile$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NICs":{"value":{"body":"var arr = macro(\"$IcingaCheckNLA_Array_NICs$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNLA_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckNLA_String_Profile$"},"NICs":{"value":"$IcingaCheckNLA_Array_NICs$"},"ThresholdInterval":{"value":"$IcingaCheckNLA_String_ThresholdInterval$"},"Verbosity":{"value":"$IcingaCheckNLA_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckNLA"}},"Invoke-IcingaCheckBiosSerial":{"fields":[{"datafield_id":4,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckBiosSerial","arguments":{"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckBiosSerial_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckBiosSerial_String_ThresholdInterval$"}},"ifw_api_command":"Invoke-IcingaCheckBiosSerial"}},"Invoke-IcingaCheckEventlog":{"fields":[{"datafield_id":88,"is_required":"n","var_filter":null},{"datafield_id":89,"is_required":"n","var_filter":null},{"datafield_id":90,"is_required":"n","var_filter":null},{"datafield_id":91,"is_required":"n","var_filter":null},{"datafield_id":92,"is_required":"n","var_filter":null},{"datafield_id":93,"is_required":"n","var_filter":null},{"datafield_id":94,"is_required":"n","var_filter":null},{"datafield_id":95,"is_required":"n","var_filter":null},{"datafield_id":96,"is_required":"n","var_filter":null},{"datafield_id":97,"is_required":"n","var_filter":null},{"datafield_id":98,"is_required":"n","var_filter":null},{"datafield_id":99,"is_required":"n","var_filter":null},{"datafield_id":100,"is_required":"n","var_filter":null},{"datafield_id":101,"is_required":"n","var_filter":null},{"datafield_id":102,"is_required":"n","var_filter":null},{"datafield_id":103,"is_required":"n","var_filter":null},{"datafield_id":104,"is_required":"n","var_filter":null},{"datafield_id":105,"is_required":"n","var_filter":null},{"datafield_id":106,"is_required":"n","var_filter":null},{"datafield_id":107,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckEventlog","arguments":{"-Before":{"value":"$IcingaCheckEventlog_Object_Before$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IncludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"13"},"-After":{"value":"$IcingaCheckEventlog_Object_After$","order":"15"},"-IncludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-LogName":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_LogName$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckEventlog_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ExcludeSource":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeSource$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"14"},"-ExcludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ExcludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-IncludeEntryType":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeEntryType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$","order":"17"},"-Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$","order":"18"},"-ExcludeEventId":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeEventId$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"},"-Critical":{"value":"$IcingaCheckEventlog_Object_Critical$","order":"3"},"-DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckEventlog_Object_Warning$","order":"2"},"-IncludeUsername":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_IncludeUsername$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"7"},"-ExcludeMessage":{"value":{"body":"var arr = macro(\"$IcingaCheckEventlog_Array_ExcludeMessage$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"12"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckEventlog_Switchparameter_DisableTimeCache":false,"ifw_api_arguments":{"IncludeEventId":{"value":"$IcingaCheckEventlog_Array_IncludeEventId$"},"DisableTimeCache":{"set_if":"$IcingaCheckEventlog_Switchparameter_DisableTimeCache$"},"ThresholdInterval":{"value":"$IcingaCheckEventlog_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckEventlog_Switchparameter_NoPerfData$"},"ExcludeEventId":{"value":"$IcingaCheckEventlog_Array_ExcludeEventId$"},"Before":{"value":"$IcingaCheckEventlog_Object_Before$"},"IncludeEntryType":{"value":"$IcingaCheckEventlog_Array_IncludeEntryType$"},"LogName":{"value":"$IcingaCheckEventlog_String_LogName$"},"ExcludeEntryType":{"value":"$IcingaCheckEventlog_Array_ExcludeEntryType$"},"IncludeSource":{"value":"$IcingaCheckEventlog_Array_IncludeSource$"},"Warning":{"value":"$IcingaCheckEventlog_Object_Warning$"},"MaxEntries":{"value":"$IcingaCheckEventlog_Int32_MaxEntries$"},"Critical":{"value":"$IcingaCheckEventlog_Object_Critical$"},"ExcludeUsername":{"value":"$IcingaCheckEventlog_Array_ExcludeUsername$"},"After":{"value":"$IcingaCheckEventlog_Object_After$"},"IncludeUsername":{"value":"$IcingaCheckEventlog_Array_IncludeUsername$"},"ExcludeSource":{"value":"$IcingaCheckEventlog_Array_ExcludeSource$"},"IncludeMessage":{"value":"$IcingaCheckEventlog_Array_IncludeMessage$"},"ExcludeMessage":{"value":"$IcingaCheckEventlog_Array_ExcludeMessage$"},"Verbosity":{"value":"$IcingaCheckEventlog_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckEventlog","IcingaCheckEventlog_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckDiskHealth":{"fields":[{"datafield_id":60,"is_required":"n","var_filter":null},{"datafield_id":61,"is_required":"n","var_filter":null},{"datafield_id":62,"is_required":"n","var_filter":null},{"datafield_id":63,"is_required":"n","var_filter":null},{"datafield_id":64,"is_required":"n","var_filter":null},{"datafield_id":65,"is_required":"n","var_filter":null},{"datafield_id":66,"is_required":"n","var_filter":null},{"datafield_id":67,"is_required":"n","var_filter":null},{"datafield_id":68,"is_required":"n","var_filter":null},{"datafield_id":69,"is_required":"n","var_filter":null},{"datafield_id":70,"is_required":"n","var_filter":null},{"datafield_id":71,"is_required":"n","var_filter":null},{"datafield_id":72,"is_required":"n","var_filter":null},{"datafield_id":73,"is_required":"n","var_filter":null},{"datafield_id":74,"is_required":"n","var_filter":null},{"datafield_id":75,"is_required":"n","var_filter":null},{"datafield_id":76,"is_required":"n","var_filter":null},{"datafield_id":77,"is_required":"n","var_filter":null},{"datafield_id":78,"is_required":"n","var_filter":null},{"datafield_id":79,"is_required":"n","var_filter":null},{"datafield_id":80,"is_required":"n","var_filter":null},{"datafield_id":81,"is_required":"n","var_filter":null},{"datafield_id":82,"is_required":"n","var_filter":null},{"datafield_id":83,"is_required":"n","var_filter":null},{"datafield_id":84,"is_required":"n","var_filter":null},{"datafield_id":85,"is_required":"n","var_filter":null},{"datafield_id":86,"is_required":"n","var_filter":null},{"datafield_id":87,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDiskHealth","arguments":{"-DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$","order":"14"},"-DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$","order":"16"},"-NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ExcludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDiskHealth_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IncludeDisk":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludeDisk$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$","order":"13"},"-DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$","order":"10"},"-IncludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_IncludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$","order":"21"},"-DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$","order":"9"},"-DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$","order":"12"},"-DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$","order":"20"},"-DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$","order":"17"},"-DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$","order":"18"},"-DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$","order":"22"},"-Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$","order":"24"},"-DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$","order":"6"},"-ExcludePartition":{"value":{"body":"var arr = macro(\"$IcingaCheckDiskHealth_Array_ExcludePartition$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$","order":"7"},"-CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$","set_if_format":"string","order":"99"},"-DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$","order":"15"},"-DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$","order":"23"},"-IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$","set_if_format":"string","order":"99"},"-DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$","order":"8"},"-DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$","order":"11"},"-DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$","order":"19"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDiskHealth_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"NoPerfData":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_NoPerfData$"},"DiskAvgWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical$"},"CheckLogicalOnly":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly$"},"Verbosity":{"value":"$IcingaCheckDiskHealth_Int32_Verbosity$"},"DiskReadByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$"},"IgnoreReadOnlyDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$"},"DiskWriteByteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning$"},"DiskQueueLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenCritical$"},"ExcludeDisk":{"value":"$IcingaCheckDiskHealth_Array_ExcludeDisk$"},"IncludeDisk":{"value":"$IcingaCheckDiskHealth_Array_IncludeDisk$"},"DiskAvgTransSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning$"},"DiskReadByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadByteSecCritical$"},"DiskAvgReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical$"},"DiskWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecWarning$"},"DiskWriteByteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical$"},"ExcludePartition":{"value":"$IcingaCheckDiskHealth_Array_ExcludePartition$"},"IgnoreOfflineDisks":{"set_if":"$IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks$"},"DiskWriteSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$"},"DiskReadSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecCritical$"},"DiskQueueLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueLenWarning$"},"DiskAvgReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning$"},"DiskAvgTransSecCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical$"},"DiskQueueAvgLenCritical":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical$"},"ThresholdInterval":{"value":"$IcingaCheckDiskHealth_String_ThresholdInterval$"},"DiskAvgWriteSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning$"},"DiskReadSecWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskReadSecWarning$"},"IncludePartition":{"value":"$IcingaCheckDiskHealth_Array_IncludePartition$"},"DiskQueueAvgLenWarning":{"value":"$IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning$"}},"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly":false,"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks":false,"ifw_api_command":"Invoke-IcingaCheckDiskHealth","IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks":false}},"Invoke-IcingaCheckProcess":{"fields":[{"datafield_id":235,"is_required":"n","var_filter":null},{"datafield_id":236,"is_required":"n","var_filter":null},{"datafield_id":237,"is_required":"n","var_filter":null},{"datafield_id":238,"is_required":"n","var_filter":null},{"datafield_id":239,"is_required":"n","var_filter":null},{"datafield_id":240,"is_required":"n","var_filter":null},{"datafield_id":241,"is_required":"n","var_filter":null},{"datafield_id":242,"is_required":"n","var_filter":null},{"datafield_id":243,"is_required":"n","var_filter":null},{"datafield_id":244,"is_required":"n","var_filter":null},{"datafield_id":245,"is_required":"n","var_filter":null},{"datafield_id":246,"is_required":"n","var_filter":null},{"datafield_id":247,"is_required":"n","var_filter":null},{"datafield_id":248,"is_required":"n","var_filter":null},{"datafield_id":249,"is_required":"n","var_filter":null},{"datafield_id":250,"is_required":"n","var_filter":null},{"datafield_id":251,"is_required":"n","var_filter":null},{"datafield_id":252,"is_required":"n","var_filter":null},{"datafield_id":253,"is_required":"n","var_filter":null},{"datafield_id":254,"is_required":"n","var_filter":null},{"datafield_id":255,"is_required":"n","var_filter":null},{"datafield_id":256,"is_required":"n","var_filter":null},{"datafield_id":257,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcess","arguments":{"-TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$","order":"17"},"-NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$","order":"22"},"-TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$","order":"16"},"-MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$","order":"4"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"20"},"-TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$","order":"14"},"-TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$","order":"12"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcess_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$","order":"3"},"-CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$","order":"6"},"-TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$","order":"10"},"-ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$","order":"8"},"-TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$","order":"18"},"-CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$","order":"7"},"-ExcludeProcess":{"value":{"body":"var arr = macro(\"$IcingaCheckProcess_Array_ExcludeProcess$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"21"},"-TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$","order":"15"},"-MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$","order":"5"},"-PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$","order":"2"},"-TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$","order":"19"},"-TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$","order":"11"},"-TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$","order":"13"},"-ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckProcess_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"TotalThreadCountWarning":{"value":"$IcingaCheckProcess_Object_TotalThreadCountWarning$"},"ThreadCountWarning":{"value":"$IcingaCheckProcess_Object_ThreadCountWarning$"},"NoPerfData":{"set_if":"$IcingaCheckProcess_Switchparameter_NoPerfData$"},"CPUCritical":{"value":"$IcingaCheckProcess_Object_CPUCritical$"},"TotalPageFileCritical":{"value":"$IcingaCheckProcess_Object_TotalPageFileCritical$"},"ThresholdInterval":{"value":"$IcingaCheckProcess_String_ThresholdInterval$"},"ExcludeProcess":{"value":"$IcingaCheckProcess_Array_ExcludeProcess$"},"TotalPageFileWarning":{"value":"$IcingaCheckProcess_Object_TotalPageFileWarning$"},"PageFileWarning":{"value":"$IcingaCheckProcess_Object_PageFileWarning$"},"ThreadCountCritical":{"value":"$IcingaCheckProcess_Object_ThreadCountCritical$"},"TotalCPUWarning":{"value":"$IcingaCheckProcess_Object_TotalCPUWarning$"},"PageFileCritical":{"value":"$IcingaCheckProcess_Object_PageFileCritical$"},"Process":{"value":"$IcingaCheckProcess_Array_Process$"},"TotalProcessCountWarning":{"value":"$IcingaCheckProcess_Object_TotalProcessCountWarning$"},"CPUWarning":{"value":"$IcingaCheckProcess_Object_CPUWarning$"},"TotalMemoryCritical":{"value":"$IcingaCheckProcess_Object_TotalMemoryCritical$"},"TotalMemoryWarning":{"value":"$IcingaCheckProcess_Object_TotalMemoryWarning$"},"TotalThreadCountCritical":{"value":"$IcingaCheckProcess_Object_TotalThreadCountCritical$"},"MemoryWarning":{"value":"$IcingaCheckProcess_Object_MemoryWarning$"},"Verbosity":{"value":"$IcingaCheckProcess_Int32_Verbosity$"},"TotalProcessCountCritical":{"value":"$IcingaCheckProcess_Object_TotalProcessCountCritical$"},"MemoryCritical":{"value":"$IcingaCheckProcess_Object_MemoryCritical$"},"TotalCPUCritical":{"value":"$IcingaCheckProcess_Object_TotalCPUCritical$"}},"ifw_api_command":"Invoke-IcingaCheckProcess"}},"Invoke-IcingaCheckCheckSum":{"fields":[{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null},{"datafield_id":22,"is_required":"n","var_filter":null},{"datafield_id":23,"is_required":"n","var_filter":null},{"datafield_id":24,"is_required":"n","var_filter":null},{"datafield_id":25,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCheckSum","arguments":{"-Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$","order":"5"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Algorithm":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Algorithm$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Hash":{"set_if":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCheckSum_String_Hash$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCheckSum_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Path":{"value":"$IcingaCheckCheckSum_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckCheckSum_String_ThresholdInterval$"},"Algorithm":{"value":"$IcingaCheckCheckSum_String_Algorithm$"},"Verbosity":{"value":"$IcingaCheckCheckSum_Int32_Verbosity$"},"NoPerfData":{"set_if":"$IcingaCheckCheckSum_Switchparameter_NoPerfData$"},"Hash":{"value":"$IcingaCheckCheckSum_String_Hash$"}},"ifw_api_command":"Invoke-IcingaCheckCheckSum"}},"Invoke-IcingaCheckScheduledTask":{"fields":[{"datafield_id":264,"is_required":"n","var_filter":null},{"datafield_id":265,"is_required":"n","var_filter":null},{"datafield_id":266,"is_required":"n","var_filter":null},{"datafield_id":267,"is_required":"n","var_filter":null},{"datafield_id":268,"is_required":"n","var_filter":null},{"datafield_id":269,"is_required":"n","var_filter":null},{"datafield_id":270,"is_required":"n","var_filter":null},{"datafield_id":271,"is_required":"n","var_filter":null},{"datafield_id":272,"is_required":"n","var_filter":null},{"datafield_id":273,"is_required":"n","var_filter":null},{"datafield_id":274,"is_required":"n","var_filter":null},{"datafield_id":275,"is_required":"n","var_filter":null},{"datafield_id":276,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckScheduledTask","arguments":{"-WarningNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"9"},"-CriticalNextRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalNextRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"10"},"-NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$","order":"5"},"-IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$","set_if_format":"string","order":"99"},"-TaskName":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_TaskName$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-CriticalLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_CriticalLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"8"},"-IgnoreExitCodes":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$","order":"6"},"-State":{"value":{"body":"var arr = macro(\"$IcingaCheckScheduledTask_Array_State$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$","order":"11"},"-WarningLastRunTime":{"set_if":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckScheduledTask_String_WarningLastRunTime$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"7"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime":false,"ifw_api_arguments":{"CriticalNextRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalNextRunTime$"},"ThresholdInterval":{"value":"$IcingaCheckScheduledTask_String_ThresholdInterval$"},"TaskName":{"value":"$IcingaCheckScheduledTask_Array_TaskName$"},"WarningMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_WarningMissedRuns$"},"WarningNextRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningNextRunTime$"},"CriticalLastRunTime":{"value":"$IcingaCheckScheduledTask_String_CriticalLastRunTime$"},"CriticalMissedRuns":{"value":"$IcingaCheckScheduledTask_Object_CriticalMissedRuns$"},"IgnoreLastRunTime":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime$"},"IgnoreExitCodes":{"value":"$IcingaCheckScheduledTask_Array_IgnoreExitCodes$"},"WarningLastRunTime":{"value":"$IcingaCheckScheduledTask_String_WarningLastRunTime$"},"State":{"value":"$IcingaCheckScheduledTask_Array_State$"},"NoPerfData":{"set_if":"$IcingaCheckScheduledTask_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckScheduledTask_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckScheduledTask","IcingaCheckScheduledTask_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckFirewall":{"fields":[{"datafield_id":108,"is_required":"n","var_filter":null},{"datafield_id":109,"is_required":"n","var_filter":null},{"datafield_id":110,"is_required":"n","var_filter":null},{"datafield_id":111,"is_required":"n","var_filter":null},{"datafield_id":112,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckFirewall","arguments":{"-Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$","order":"3"},"-Profile":{"value":{"body":"var arr = macro(\"$IcingaCheckFirewall_Array_Profile$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckFirewall_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Profile":{"value":"$IcingaCheckFirewall_Array_Profile$"},"Verbosity":{"value":"$IcingaCheckFirewall_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckFirewall_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckFirewall_Switchparameter_NoPerfData$"},"Enabled":{"set_if":"$IcingaCheckFirewall_Switchparameter_Enabled$"}},"ifw_api_command":"Invoke-IcingaCheckFirewall","IcingaCheckFirewall_Switchparameter_Enabled":false,"IcingaCheckFirewall_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckNetworkInterface":{"fields":[{"datafield_id":175,"is_required":"n","var_filter":null},{"datafield_id":176,"is_required":"n","var_filter":null},{"datafield_id":177,"is_required":"n","var_filter":null},{"datafield_id":178,"is_required":"n","var_filter":null},{"datafield_id":179,"is_required":"n","var_filter":null},{"datafield_id":180,"is_required":"n","var_filter":null},{"datafield_id":181,"is_required":"n","var_filter":null},{"datafield_id":182,"is_required":"n","var_filter":null},{"datafield_id":183,"is_required":"n","var_filter":null},{"datafield_id":184,"is_required":"n","var_filter":null},{"datafield_id":185,"is_required":"n","var_filter":null},{"datafield_id":186,"is_required":"n","var_filter":null},{"datafield_id":187,"is_required":"n","var_filter":null},{"datafield_id":188,"is_required":"n","var_filter":null},{"datafield_id":189,"is_required":"n","var_filter":null},{"datafield_id":190,"is_required":"n","var_filter":null},{"datafield_id":191,"is_required":"n","var_filter":null},{"datafield_id":192,"is_required":"n","var_filter":null},{"datafield_id":193,"is_required":"n","var_filter":null},{"datafield_id":194,"is_required":"n","var_filter":null},{"datafield_id":195,"is_required":"n","var_filter":null},{"datafield_id":196,"is_required":"n","var_filter":null},{"datafield_id":197,"is_required":"n","var_filter":null},{"datafield_id":198,"is_required":"n","var_filter":null},{"datafield_id":199,"is_required":"n","var_filter":null},{"datafield_id":200,"is_required":"n","var_filter":null},{"datafield_id":201,"is_required":"n","var_filter":null},{"datafield_id":202,"is_required":"n","var_filter":null},{"datafield_id":203,"is_required":"n","var_filter":null},{"datafield_id":204,"is_required":"n","var_filter":null},{"datafield_id":205,"is_required":"n","var_filter":null},{"datafield_id":206,"is_required":"n","var_filter":null},{"datafield_id":207,"is_required":"n","var_filter":null},{"datafield_id":208,"is_required":"n","var_filter":null},{"datafield_id":209,"is_required":"n","var_filter":null},{"datafield_id":210,"is_required":"n","var_filter":null},{"datafield_id":211,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckNetworkInterface","arguments":{"-PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$","order":"8"},"-NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$","order":"25"},"-DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$","order":"22"},"-PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$","order":"13"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckNetworkInterface_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$","order":"23"},"-PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$","order":"11"},"-DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$","order":"21"},"-IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$","order":"29"},"-PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$","order":"16"},"-PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$","order":"17"},"-IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$","order":"26"},"-IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$","set_if_format":"string","order":"99"},"-DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$","order":"19"},"-PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$","order":"12"},"-DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$","order":"18"},"-IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$","order":"27"},"-LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$","order":"24"},"-IncludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$","order":"20"},"-PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$","order":"10"},"-PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$","order":"14"},"-IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$","order":"34"},"-IncludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$","order":"6"},"-PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$","order":"15"},"-Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$","order":"35"},"-IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$","order":"32"},"-IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$","order":"28"},"-IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$","order":"33"},"-IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$","order":"31"},"-ExcludeNetworkDevice":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$","order":"7"},"-ExcludeInterfaceTeam":{"value":{"body":"var arr = macro(\"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$","order":"9"},"-IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$","order":"30"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden":false,"IcingaCheckNetworkInterface_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PackteReceivedErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit$"},"IfOperationalStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn$"},"IncludeHidden":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_IncludeHidden$"},"Verbosity":{"value":"$IcingaCheckNetworkInterface_Object_Verbosity$"},"DeviceSentBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn$"},"NoPerfData":{"set_if":"$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$"},"PackteOutboundErrorCrit":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit$"},"IfTeamStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusCrit$"},"IfAdminStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfAdminStatusWarn$"},"IfConnectionStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit$"},"ExcludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice$"},"DeviceTotalBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn$"},"IfTeamStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfTeamStatusWarn$"},"PackteOutboundErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn$"},"PacketReceivedDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn$"},"IfOperationalStatusCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit$"},"DeviceReceivedBytesSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn$"},"PacketReceivedDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit$"},"ExcludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam$"},"PacketOutboundDiscardedWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn$"},"PackteReceivedErrorWarn":{"value":"$IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn$"},"DeviceTotalBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit$"},"PacketSentSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecCrit$"},"LinkSpeedWarn":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedWarn$"},"DeviceSentBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit$"},"PacketOutboundDiscardedCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit$"},"LinkSpeedCrit":{"value":"$IcingaCheckNetworkInterface_Object_LinkSpeedCrit$"},"IncludeInterfaceTeam":{"value":"$IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam$"},"DeviceReceivedBytesSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit$"},"PacketSentSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$"},"IfSlaveEnabledStateWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn$"},"IncludeNetworkDevice":{"value":"$IcingaCheckNetworkInterface_Array_IncludeNetworkDevice$"},"PacketReceivedSecWarn":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn$"},"IfConnectionStatusWarn":{"value":"$IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn$"},"IfSlaveEnabledStateCrit":{"value":"$IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit$"},"ThresholdInterval":{"value":"$IcingaCheckNetworkInterface_String_ThresholdInterval$"},"PacketReceivedSecCrit":{"value":"$IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit$"}},"ifw_api_command":"Invoke-IcingaCheckNetworkInterface"}},"Invoke-IcingaCheckHttpJsonResponse":{"fields":[{"datafield_id":113,"is_required":"n","var_filter":null},{"datafield_id":114,"is_required":"n","var_filter":null},{"datafield_id":115,"is_required":"n","var_filter":null},{"datafield_id":116,"is_required":"n","var_filter":null},{"datafield_id":117,"is_required":"n","var_filter":null},{"datafield_id":118,"is_required":"n","var_filter":null},{"datafield_id":119,"is_required":"n","var_filter":null},{"datafield_id":120,"is_required":"n","var_filter":null},{"datafield_id":121,"is_required":"n","var_filter":null},{"datafield_id":122,"is_required":"n","var_filter":null},{"datafield_id":123,"is_required":"n","var_filter":null},{"datafield_id":124,"is_required":"n","var_filter":null},{"datafield_id":125,"is_required":"n","var_filter":null},{"datafield_id":126,"is_required":"n","var_filter":null},{"datafield_id":127,"is_required":"n","var_filter":null},{"datafield_id":128,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckHttpJsonResponse","arguments":{"-ServerPath":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerPath$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$","order":"13"},"-StatusOnRequestError":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"12"},"-NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckHttpJsonResponse_Securestring_Password$\u0027)","order":"6"},"-Username":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_Username$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"},"-ValuePaths":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValuePaths$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"8"},"-ValueTypes":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_ValueTypes$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-ServerUri":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_ServerUri$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Critical":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Critical$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"11"},"-IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$","set_if_format":"string","order":"99"},"-Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$","order":"7"},"-Warning":{"value":{"body":"var arr = macro(\"$IcingaCheckHttpJsonResponse_Array_Warning$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"10"},"-QueryParameter":{"set_if":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckHttpJsonResponse_String_QueryParameter$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults":false,"ifw_api_arguments":{"QueryParameter":{"value":"$IcingaCheckHttpJsonResponse_String_QueryParameter$"},"Timeout":{"value":"$IcingaCheckHttpJsonResponse_Int32_Timeout$"},"Username":{"value":"$IcingaCheckHttpJsonResponse_String_Username$"},"Password":{"value":"$IcingaCheckHttpJsonResponse_Securestring_Password$"},"ValueTypes":{"value":"$IcingaCheckHttpJsonResponse_Array_ValueTypes$"},"ThresholdInterval":{"value":"$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"},"IgnoreSSL":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL$"},"ServerPath":{"value":"$IcingaCheckHttpJsonResponse_String_ServerPath$"},"NoPerfData":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData$"},"Warning":{"value":"$IcingaCheckHttpJsonResponse_Array_Warning$"},"Critical":{"value":"$IcingaCheckHttpJsonResponse_Array_Critical$"},"ValuePaths":{"value":"$IcingaCheckHttpJsonResponse_Array_ValuePaths$"},"StatusOnRequestError":{"value":"$IcingaCheckHttpJsonResponse_String_StatusOnRequestError$"},"NegateStringResults":{"set_if":"$IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults$"},"Verbosity":{"value":"$IcingaCheckHttpJsonResponse_Int32_Verbosity$"},"ServerUri":{"value":"$IcingaCheckHttpJsonResponse_String_ServerUri$"}},"ifw_api_command":"Invoke-IcingaCheckHttpJsonResponse","IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL":false,"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckDirectory":{"fields":[{"datafield_id":34,"is_required":"n","var_filter":null},{"datafield_id":35,"is_required":"n","var_filter":null},{"datafield_id":36,"is_required":"n","var_filter":null},{"datafield_id":37,"is_required":"n","var_filter":null},{"datafield_id":38,"is_required":"n","var_filter":null},{"datafield_id":39,"is_required":"n","var_filter":null},{"datafield_id":40,"is_required":"n","var_filter":null},{"datafield_id":41,"is_required":"n","var_filter":null},{"datafield_id":42,"is_required":"n","var_filter":null},{"datafield_id":43,"is_required":"n","var_filter":null},{"datafield_id":44,"is_required":"n","var_filter":null},{"datafield_id":45,"is_required":"n","var_filter":null},{"datafield_id":46,"is_required":"n","var_filter":null},{"datafield_id":47,"is_required":"n","var_filter":null},{"datafield_id":48,"is_required":"n","var_filter":null},{"datafield_id":49,"is_required":"n","var_filter":null},{"datafield_id":50,"is_required":"n","var_filter":null},{"datafield_id":51,"is_required":"n","var_filter":null},{"datafield_id":52,"is_required":"n","var_filter":null},{"datafield_id":53,"is_required":"n","var_filter":null},{"datafield_id":54,"is_required":"n","var_filter":null},{"datafield_id":55,"is_required":"n","var_filter":null},{"datafield_id":56,"is_required":"n","var_filter":null},{"datafield_id":57,"is_required":"n","var_filter":null},{"datafield_id":58,"is_required":"n","var_filter":null},{"datafield_id":59,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckDirectory","arguments":{"-Path":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$","order":"7"},"-CreationOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"18"},"-FileSizeGreaterThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeGreaterThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"20"},"-Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$","order":"22"},"-ChangeOlderThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeOlderThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"16"},"-ChangeYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"15"},"-FileSizeSmallerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_FileSizeSmallerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"21"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-CreationTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"17"},"-CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$","set_if_format":"string","order":"99"},"-CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$","order":"11"},"-WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$","order":"8"},"-FileNames":{"value":{"body":"var arr = macro(\"$IcingaCheckDirectory_Array_FileNames$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Critical":{"value":"$IcingaCheckDirectory_Object_Critical$","order":"4"},"-CreationYoungerThan":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_CreationYoungerThan$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"19"},"-Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$","set_if_format":"string","order":"99"},"-WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$","order":"6"},"-WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$","order":"12"},"-WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$","order":"10"},"-Warning":{"value":"$IcingaCheckDirectory_Object_Warning$","order":"5"},"-CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$","order":"9"},"-CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$","order":"13"},"-ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$","set_if_format":"string","order":"99"},"-ChangeTimeEqual":{"set_if":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckDirectory_String_ChangeTimeEqual$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"14"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckDirectory_Switchparameter_CountFolderAsFile":false,"ifw_api_arguments":{"CreationOlderThan":{"value":"$IcingaCheckDirectory_String_CreationOlderThan$"},"WarningAverageFile":{"value":"$IcingaCheckDirectory_Object_WarningAverageFile$"},"CriticalAverageFile":{"value":"$IcingaCheckDirectory_Object_CriticalAverageFile$"},"WarningLargestFile":{"value":"$IcingaCheckDirectory_Object_WarningLargestFile$"},"CriticalLargestFile":{"value":"$IcingaCheckDirectory_Object_CriticalLargestFile$"},"WarningSmallestFile":{"value":"$IcingaCheckDirectory_Object_WarningSmallestFile$"},"NoPerfData":{"set_if":"$IcingaCheckDirectory_Switchparameter_NoPerfData$"},"ChangeYoungerThan":{"value":"$IcingaCheckDirectory_String_ChangeYoungerThan$"},"CountFolderAsFile":{"set_if":"$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$"},"ThresholdInterval":{"value":"$IcingaCheckDirectory_String_ThresholdInterval$"},"CriticalSmallestFile":{"value":"$IcingaCheckDirectory_Object_CriticalSmallestFile$"},"CriticalTotalSize":{"value":"$IcingaCheckDirectory_Object_CriticalTotalSize$"},"FileSizeGreaterThan":{"value":"$IcingaCheckDirectory_String_FileSizeGreaterThan$"},"WarningTotalSize":{"value":"$IcingaCheckDirectory_Object_WarningTotalSize$"},"ChangeTimeEqual":{"value":"$IcingaCheckDirectory_String_ChangeTimeEqual$"},"FileSizeSmallerThan":{"value":"$IcingaCheckDirectory_String_FileSizeSmallerThan$"},"Warning":{"value":"$IcingaCheckDirectory_Object_Warning$"},"Critical":{"value":"$IcingaCheckDirectory_Object_Critical$"},"ChangeOlderThan":{"value":"$IcingaCheckDirectory_String_ChangeOlderThan$"},"ShowFileList":{"set_if":"$IcingaCheckDirectory_Switchparameter_ShowFileList$"},"FileNames":{"value":"$IcingaCheckDirectory_Array_FileNames$"},"CreationTimeEqual":{"value":"$IcingaCheckDirectory_String_CreationTimeEqual$"},"Verbosity":{"value":"$IcingaCheckDirectory_Int32_Verbosity$"},"Path":{"value":"$IcingaCheckDirectory_String_Path$"},"CreationYoungerThan":{"value":"$IcingaCheckDirectory_String_CreationYoungerThan$"},"Recurse":{"set_if":"$IcingaCheckDirectory_Switchparameter_Recurse$"}},"IcingaCheckDirectory_Switchparameter_ShowFileList":false,"ifw_api_command":"Invoke-IcingaCheckDirectory","IcingaCheckDirectory_Switchparameter_NoPerfData":false,"IcingaCheckDirectory_Switchparameter_Recurse":false}},"Invoke-IcingaCheckUNCPath":{"fields":[{"datafield_id":324,"is_required":"n","var_filter":null},{"datafield_id":325,"is_required":"n","var_filter":null},{"datafield_id":326,"is_required":"n","var_filter":null},{"datafield_id":327,"is_required":"n","var_filter":null},{"datafield_id":328,"is_required":"n","var_filter":null},{"datafield_id":329,"is_required":"n","var_filter":null},{"datafield_id":330,"is_required":"n","var_filter":null},{"datafield_id":331,"is_required":"n","var_filter":null},{"datafield_id":332,"is_required":"n","var_filter":null},{"datafield_id":333,"is_required":"n","var_filter":null},{"datafield_id":334,"is_required":"n","var_filter":null},{"datafield_id":335,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUNCPath","arguments":{"-WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$","order":"8"},"-Path":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_Path$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$","order":"10"},"-CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$","order":"9"},"-Password":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckUNCPath_Securestring_Password$\u0027)","order":"4"},"-Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$","order":"6"},"-Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$","order":"7"},"-NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-User":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_User$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_User$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-DisplayAlias":{"set_if":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUNCPath_String_DisplayAlias$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace":false,"ifw_api_arguments":{"WarningTotal":{"value":"$IcingaCheckUNCPath_Object_WarningTotal$"},"DisplayAlias":{"value":"$IcingaCheckUNCPath_String_DisplayAlias$"},"Path":{"value":"$IcingaCheckUNCPath_String_Path$"},"ThresholdInterval":{"value":"$IcingaCheckUNCPath_String_ThresholdInterval$"},"CriticalTotal":{"value":"$IcingaCheckUNCPath_Object_CriticalTotal$"},"Password":{"value":"$IcingaCheckUNCPath_Securestring_Password$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$"},"Critical":{"value":"$IcingaCheckUNCPath_Object_Critical$"},"Warning":{"value":"$IcingaCheckUNCPath_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckUNCPath_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUNCPath_Object_Verbosity$"},"User":{"value":"$IcingaCheckUNCPath_String_User$"}},"ifw_api_command":"Invoke-IcingaCheckUNCPath","IcingaCheckUNCPath_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckPerfCounter":{"fields":[{"datafield_id":226,"is_required":"n","var_filter":null},{"datafield_id":227,"is_required":"n","var_filter":null},{"datafield_id":228,"is_required":"n","var_filter":null},{"datafield_id":229,"is_required":"n","var_filter":null},{"datafield_id":230,"is_required":"n","var_filter":null},{"datafield_id":231,"is_required":"n","var_filter":null},{"datafield_id":232,"is_required":"n","var_filter":null},{"datafield_id":233,"is_required":"n","var_filter":null},{"datafield_id":234,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckPerfCounter","arguments":{"-PerfCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_PerfCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$","order":"7"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckPerfCounter_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$","order":"3"},"-Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_IncludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ExcludeCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfCounter_Array_ExcludeCounter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckPerfCounter_Switchparameter_NoPerfData":false,"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_arguments":{"PerfCounter":{"value":"$IcingaCheckPerfCounter_Array_PerfCounter$"},"ThresholdInterval":{"value":"$IcingaCheckPerfCounter_String_ThresholdInterval$"},"ExcludeCounter":{"value":"$IcingaCheckPerfCounter_Array_ExcludeCounter$"},"Critical":{"value":"$IcingaCheckPerfCounter_Object_Critical$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$"},"Warning":{"value":"$IcingaCheckPerfCounter_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckPerfCounter_Switchparameter_NoPerfData$"},"IncludeCounter":{"value":"$IcingaCheckPerfCounter_Array_IncludeCounter$"},"Verbosity":{"value":"$IcingaCheckPerfCounter_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckPerfCounter"}},"Invoke-IcingaCheckICMP":{"fields":[{"datafield_id":149,"is_required":"n","var_filter":null},{"datafield_id":150,"is_required":"n","var_filter":null},{"datafield_id":151,"is_required":"n","var_filter":null},{"datafield_id":152,"is_required":"n","var_filter":null},{"datafield_id":153,"is_required":"n","var_filter":null},{"datafield_id":154,"is_required":"n","var_filter":null},{"datafield_id":155,"is_required":"n","var_filter":null},{"datafield_id":156,"is_required":"n","var_filter":null},{"datafield_id":157,"is_required":"n","var_filter":null},{"datafield_id":158,"is_required":"n","var_filter":null},{"datafield_id":159,"is_required":"n","var_filter":null},{"datafield_id":160,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckICMP","arguments":{"-WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$","order":"4"},"-Hostname":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_Hostname$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckICMP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$","order":"9"},"-PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$","order":"7"},"-IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$","order":"8"},"-Warning":{"value":"$IcingaCheckICMP_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckICMP_Object_Critical$","order":"3"},"-IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$","set_if_format":"string","order":"99"},"-CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$","order":"5"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckICMP_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"PacketCount":{"value":"$IcingaCheckICMP_Int32_PacketCount$"},"Verbosity":{"value":"$IcingaCheckICMP_Int32_Verbosity$"},"Hostname":{"value":"$IcingaCheckICMP_String_Hostname$"},"CriticalPl":{"value":"$IcingaCheckICMP_Object_CriticalPl$"},"WarningPl":{"value":"$IcingaCheckICMP_Object_WarningPl$"},"NoPerfData":{"set_if":"$IcingaCheckICMP_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckICMP_Object_Critical$"},"IPv6":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv6$"},"Warning":{"value":"$IcingaCheckICMP_Object_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckICMP_String_ThresholdInterval$"},"PacketSize":{"value":"$IcingaCheckICMP_Int32_PacketSize$"},"IPv4":{"set_if":"$IcingaCheckICMP_Switchparameter_IPv4$"}},"ifw_api_command":"Invoke-IcingaCheckICMP","IcingaCheckICMP_Switchparameter_IPv6":false,"IcingaCheckICMP_Switchparameter_IPv4":false}},"Invoke-IcingaCheckUsedPartitionSpace":{"fields":[{"datafield_id":357,"is_required":"n","var_filter":null},{"datafield_id":358,"is_required":"n","var_filter":null},{"datafield_id":359,"is_required":"n","var_filter":null},{"datafield_id":360,"is_required":"n","var_filter":null},{"datafield_id":361,"is_required":"n","var_filter":null},{"datafield_id":362,"is_required":"n","var_filter":null},{"datafield_id":363,"is_required":"n","var_filter":null},{"datafield_id":364,"is_required":"n","var_filter":null},{"datafield_id":365,"is_required":"n","var_filter":null},{"datafield_id":366,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUsedPartitionSpace","arguments":{"-Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Include$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckUsedPartitionSpace_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Verbosity":{"value":"$IcingaCheckUsedPartitionSpace_Int32_Verbosity$"},"ThresholdInterval":{"value":"$IcingaCheckUsedPartitionSpace_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData$"},"Critical":{"value":"$IcingaCheckUsedPartitionSpace_Object_Critical$"},"Exclude":{"value":"$IcingaCheckUsedPartitionSpace_Array_Exclude$"},"Warning":{"value":"$IcingaCheckUsedPartitionSpace_Object_Warning$"},"IgnoreEmptyChecks":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks$"},"SkipUnknown":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown$"},"CheckUsedSpace":{"set_if":"$IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace$"},"Include":{"value":"$IcingaCheckUsedPartitionSpace_Array_Include$"}},"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace":false,"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks":false,"ifw_api_command":"Invoke-IcingaCheckUsedPartitionSpace","IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData":false,"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{"IcingaPowerShellBase_String_ExecutionPolicy":"ByPass"},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[{"datafield_id":2,"is_required":"n","var_filter":null}],"arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027$ifw_api_command$\u0027 ","order":"0"},"-ExecutionPolicy":{"value":"$IcingaPowerShellBase_String_ExecutionPolicy$","order":"-1"},"-NoProfile":{"value":"-NoProfile","skip_key":true,"order":"-3"},"-NoLogo":{"value":"-NoLogo","skip_key":true,"order":"-2"}},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckService":{"fields":[{"datafield_id":277,"is_required":"n","var_filter":null},{"datafield_id":278,"is_required":"n","var_filter":null},{"datafield_id":279,"is_required":"n","var_filter":null},{"datafield_id":280,"is_required":"n","var_filter":null},{"datafield_id":281,"is_required":"n","var_filter":null},{"datafield_id":282,"is_required":"n","var_filter":null},{"datafield_id":283,"is_required":"n","var_filter":null},{"datafield_id":284,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckService","arguments":{"-FilterStartupType":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_FilterStartupType$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$","set_if_format":"string","order":"99"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$","order":"6"},"-Status":{"set_if":"var str = macro(\"$IcingaCheckService_String_Status$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckService_String_Status$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Service":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Service$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckService_Array_Exclude$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckService_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckService_String_ThresholdInterval$"},"MitigateUnknown":{"set_if":"$IcingaCheckService_Switchparameter_MitigateUnknown$"},"FilterStartupType":{"value":"$IcingaCheckService_Array_FilterStartupType$"},"Verbosity":{"value":"$IcingaCheckService_Int32_Verbosity$"},"Service":{"value":"$IcingaCheckService_Array_Service$"},"NoPerfData":{"set_if":"$IcingaCheckService_Switchparameter_NoPerfData$"},"Status":{"value":"$IcingaCheckService_String_Status$"},"Exclude":{"value":"$IcingaCheckService_Array_Exclude$"}},"ifw_api_command":"Invoke-IcingaCheckService","IcingaCheckService_Switchparameter_MitigateUnknown":false}},"Invoke-IcingaCheckCPU":{"fields":[{"datafield_id":26,"is_required":"n","var_filter":null},{"datafield_id":27,"is_required":"n","var_filter":null},{"datafield_id":28,"is_required":"n","var_filter":null},{"datafield_id":29,"is_required":"n","var_filter":null},{"datafield_id":30,"is_required":"n","var_filter":null},{"datafield_id":31,"is_required":"n","var_filter":null},{"datafield_id":32,"is_required":"n","var_filter":null},{"datafield_id":33,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckCPU","arguments":{"-Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$","order":"6"},"-SocketFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckCPU_Array_SocketFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Core":{"set_if":"var str = macro(\"$IcingaCheckCPU_String_Core$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckCPU_String_Core$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckCPU_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckCPU_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckCPU_Switchparameter_OverallOnly":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckCPU_String_ThresholdInterval$"},"SocketFilter":{"value":"$IcingaCheckCPU_Array_SocketFilter$"},"Critical":{"value":"$IcingaCheckCPU_Object_Critical$"},"Core":{"value":"$IcingaCheckCPU_String_Core$"},"OverallOnly":{"set_if":"$IcingaCheckCPU_Switchparameter_OverallOnly$"},"Warning":{"value":"$IcingaCheckCPU_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckCPU_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckCPU_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckCPU","IcingaCheckCPU_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckTCP":{"fields":[{"datafield_id":305,"is_required":"n","var_filter":null},{"datafield_id":306,"is_required":"n","var_filter":null},{"datafield_id":307,"is_required":"n","var_filter":null},{"datafield_id":308,"is_required":"n","var_filter":null},{"datafield_id":309,"is_required":"n","var_filter":null},{"datafield_id":310,"is_required":"n","var_filter":null},{"datafield_id":311,"is_required":"n","var_filter":null},{"datafield_id":312,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTCP","arguments":{"-Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Address":{"set_if":"var str = macro(\"$IcingaCheckTCP_String_Address$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTCP_String_Address$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$","set_if_format":"string","order":"99"},"-Critical":{"value":"$IcingaCheckTCP_Object_Critical$","order":"5"},"-NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Ports":{"value":{"body":"var arr = macro(\"$IcingaCheckTCP_Array_Ports$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-Warning":{"value":"$IcingaCheckTCP_Object_Warning$","order":"4"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTCP_Switchparameter_Negate":false,"ifw_api_arguments":{"ThresholdInterval":{"value":"$IcingaCheckTCP_String_ThresholdInterval$"},"Ports":{"value":"$IcingaCheckTCP_Array_Ports$"},"Critical":{"value":"$IcingaCheckTCP_Object_Critical$"},"Negate":{"set_if":"$IcingaCheckTCP_Switchparameter_Negate$"},"Address":{"value":"$IcingaCheckTCP_String_Address$"},"Warning":{"value":"$IcingaCheckTCP_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTCP_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTCP","IcingaCheckTCP_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckUptime":{"fields":[{"datafield_id":352,"is_required":"n","var_filter":null},{"datafield_id":353,"is_required":"n","var_filter":null},{"datafield_id":354,"is_required":"n","var_filter":null},{"datafield_id":355,"is_required":"n","var_filter":null},{"datafield_id":356,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUptime","arguments":{"-Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$","order":"4"},"-Warning":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Warning$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Warning$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Critical":{"set_if":"var str = macro(\"$IcingaCheckUptime_String_Critical$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUptime_String_Critical$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUptime_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"Critical":{"value":"$IcingaCheckUptime_String_Critical$"},"Warning":{"value":"$IcingaCheckUptime_String_Warning$"},"ThresholdInterval":{"value":"$IcingaCheckUptime_String_ThresholdInterval$"},"NoPerfData":{"set_if":"$IcingaCheckUptime_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckUptime_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckUptime"}},"Invoke-IcingaCheckStoragePool":{"fields":[{"datafield_id":285,"is_required":"n","var_filter":null},{"datafield_id":286,"is_required":"n","var_filter":null},{"datafield_id":287,"is_required":"n","var_filter":null},{"datafield_id":288,"is_required":"n","var_filter":null},{"datafield_id":289,"is_required":"n","var_filter":null},{"datafield_id":290,"is_required":"n","var_filter":null},{"datafield_id":291,"is_required":"n","var_filter":null},{"datafield_id":292,"is_required":"n","var_filter":null},{"datafield_id":293,"is_required":"n","var_filter":null},{"datafield_id":294,"is_required":"n","var_filter":null},{"datafield_id":295,"is_required":"n","var_filter":null},{"datafield_id":296,"is_required":"n","var_filter":null},{"datafield_id":297,"is_required":"n","var_filter":null},{"datafield_id":298,"is_required":"n","var_filter":null},{"datafield_id":299,"is_required":"n","var_filter":null},{"datafield_id":300,"is_required":"n","var_filter":null},{"datafield_id":301,"is_required":"n","var_filter":null},{"datafield_id":302,"is_required":"n","var_filter":null},{"datafield_id":303,"is_required":"n","var_filter":null},{"datafield_id":304,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckStoragePool","arguments":{"-RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$","order":"17"},"-IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$","order":"8"},"-Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$","order":"18"},"-IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$","order":"13"},"-HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$","order":"14"},"-NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$","order":"4"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckStoragePool_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$","order":"5"},"-IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$","set_if_format":"string","order":"99"},"-IncludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_IncludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-ExcludeStoragePool":{"value":{"body":"var arr = macro(\"$IcingaCheckStoragePool_Array_ExcludeStoragePool$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"3"},"-CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$","order":"9"},"-TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$","order":"7"},"-CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$","order":"10"},"-SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$","order":"12"},"-HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$","order":"15"},"-ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$","order":"11"},"-RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$","order":"16"},"-TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckStoragePool_Switchparameter_IncludePrimordial":false,"ifw_api_arguments":{"ClearOnDeallocateCritical":{"value":"$IcingaCheckStoragePool_Object_ClearOnDeallocateCritical$"},"NoPerfData":{"set_if":"$IcingaCheckStoragePool_Switchparameter_NoPerfData$"},"HealthStatusCritical":{"value":"$IcingaCheckStoragePool_Object_HealthStatusCritical$"},"ThresholdInterval":{"value":"$IcingaCheckStoragePool_String_ThresholdInterval$"},"TotalUsedWarning":{"value":"$IcingaCheckStoragePool_Object_TotalUsedWarning$"},"RetireMissingPhysicalDisksWarning":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning$"},"HealthStatusWarning":{"value":"$IcingaCheckStoragePool_Object_HealthStatusWarning$"},"IncludePrimordial":{"set_if":"$IcingaCheckStoragePool_Switchparameter_IncludePrimordial$"},"IsPowerProtectedCritical":{"value":"$IcingaCheckStoragePool_Object_IsPowerProtectedCritical$"},"ExcludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_ExcludeStoragePool$"},"SupportsDeduplicationCritical":{"value":"$IcingaCheckStoragePool_Object_SupportsDeduplicationCritical$"},"RetireMissingPhysicalDisksCritical":{"value":"$IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical$"},"TotalUsedCritical":{"value":"$IcingaCheckStoragePool_Object_TotalUsedCritical$"},"IsReadOnlyCritical":{"value":"$IcingaCheckStoragePool_Object_IsReadOnlyCritical$"},"CapacityCritical":{"value":"$IcingaCheckStoragePool_Object_CapacityCritical$"},"FreeSpaceWarning":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceWarning$"},"Verbosity":{"value":"$IcingaCheckStoragePool_Object_Verbosity$"},"FreeSpaceCritical":{"value":"$IcingaCheckStoragePool_Object_FreeSpaceCritical$"},"IncludeStoragePool":{"value":"$IcingaCheckStoragePool_Array_IncludeStoragePool$"},"CapacityWarning":{"value":"$IcingaCheckStoragePool_Object_CapacityWarning$"}},"ifw_api_command":"Invoke-IcingaCheckStoragePool","IcingaCheckStoragePool_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckUpdates":{"fields":[{"datafield_id":336,"is_required":"n","var_filter":null},{"datafield_id":337,"is_required":"n","var_filter":null},{"datafield_id":338,"is_required":"n","var_filter":null},{"datafield_id":339,"is_required":"n","var_filter":null},{"datafield_id":340,"is_required":"n","var_filter":null},{"datafield_id":341,"is_required":"n","var_filter":null},{"datafield_id":342,"is_required":"n","var_filter":null},{"datafield_id":343,"is_required":"n","var_filter":null},{"datafield_id":344,"is_required":"n","var_filter":null},{"datafield_id":345,"is_required":"n","var_filter":null},{"datafield_id":346,"is_required":"n","var_filter":null},{"datafield_id":347,"is_required":"n","var_filter":null},{"datafield_id":348,"is_required":"n","var_filter":null},{"datafield_id":349,"is_required":"n","var_filter":null},{"datafield_id":350,"is_required":"n","var_filter":null},{"datafield_id":351,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckUpdates","arguments":{"-WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$","order":"7"},"-Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$","order":"13"},"-WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$","set_if_format":"string","order":"99"},"-NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$","order":"12"},"-WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$","order":"9"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckUpdates_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$","order":"11"},"-Warning":{"value":"$IcingaCheckUpdates_Object_Warning$","order":"3"},"-CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$","order":"10"},"-CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$","order":"8"},"-Critical":{"value":"$IcingaCheckUpdates_Object_Critical$","order":"4"},"-CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$","set_if_format":"string","order":"99"},"-UpdateFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckUpdates_Array_UpdateFilter$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"2"},"-WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$","order":"5"},"-CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$","order":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUpdates_Switchparameter_NoPerfData":false,"IcingaCheckUpdates_Switchparameter_WarnOnReboot":false,"IcingaCheckUpdates_Switchparameter_CritOnReboot":false,"ifw_api_arguments":{"WarningRollups":{"value":"$IcingaCheckUpdates_Object_WarningRollups$"},"CriticalSecurity":{"value":"$IcingaCheckUpdates_Object_CriticalSecurity$"},"CriticalRollups":{"value":"$IcingaCheckUpdates_Object_CriticalRollups$"},"NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$"},"WarningDefender":{"value":"$IcingaCheckUpdates_Object_WarningDefender$"},"ThresholdInterval":{"value":"$IcingaCheckUpdates_String_ThresholdInterval$"},"WarningSecurity":{"value":"$IcingaCheckUpdates_Object_WarningSecurity$"},"CriticalOther":{"value":"$IcingaCheckUpdates_Object_CriticalOther$"},"CriticalDefender":{"value":"$IcingaCheckUpdates_Object_CriticalDefender$"},"WarnOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_WarnOnReboot$"},"Warning":{"value":"$IcingaCheckUpdates_Object_Warning$"},"Critical":{"value":"$IcingaCheckUpdates_Object_Critical$"},"CritOnReboot":{"set_if":"$IcingaCheckUpdates_Switchparameter_CritOnReboot$"},"Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$"},"UpdateFilter":{"value":"$IcingaCheckUpdates_Array_UpdateFilter$"},"WarningOther":{"value":"$IcingaCheckUpdates_Object_WarningOther$"}},"ifw_api_command":"Invoke-IcingaCheckUpdates"}},"Invoke-IcingaCheckProcessCount":{"fields":[{"datafield_id":258,"is_required":"n","var_filter":null},{"datafield_id":259,"is_required":"n","var_filter":null},{"datafield_id":260,"is_required":"n","var_filter":null},{"datafield_id":261,"is_required":"n","var_filter":null},{"datafield_id":262,"is_required":"n","var_filter":null},{"datafield_id":263,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckProcessCount","arguments":{"-Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$","order":"5"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckProcessCount_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Process":{"value":{"body":"var arr = macro(\"$IcingaCheckProcessCount_Array_Process$\");\r\n\r\nif (len(arr) == 0) {\r\n return \"@()\";\r\n}\r\n\r\nvar psarr = arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n).join(\",\");\r\n\r\nreturn \"@(\" + psarr + \")\";","type":"Function"},"order":"4"},"-Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"ifw_api_arguments":{"Process":{"value":"$IcingaCheckProcessCount_Array_Process$"},"ThresholdInterval":{"value":"$IcingaCheckProcessCount_String_ThresholdInterval$"},"Critical":{"value":"$IcingaCheckProcessCount_Object_Critical$"},"Warning":{"value":"$IcingaCheckProcessCount_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckProcessCount_Switchparameter_NoPerfData$"},"Verbosity":{"value":"$IcingaCheckProcessCount_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckProcessCount","IcingaCheckProcessCount_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckTimeSync":{"fields":[{"datafield_id":313,"is_required":"n","var_filter":null},{"datafield_id":314,"is_required":"n","var_filter":null},{"datafield_id":315,"is_required":"n","var_filter":null},{"datafield_id":316,"is_required":"n","var_filter":null},{"datafield_id":317,"is_required":"n","var_filter":null},{"datafield_id":318,"is_required":"n","var_filter":null},{"datafield_id":319,"is_required":"n","var_filter":null},{"datafield_id":320,"is_required":"n","var_filter":null},{"datafield_id":321,"is_required":"n","var_filter":null},{"datafield_id":322,"is_required":"n","var_filter":null},{"datafield_id":323,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckTimeSync","arguments":{"-Port":{"value":"$IcingaCheckTimeSync_Int32_Port$","order":"7"},"-Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_ThresholdInterval$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"100"},"-Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$","order":"6"},"-NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$","set_if_format":"string","order":"99"},"-Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$","order":"4"},"-Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$","order":"5"},"-Server":{"set_if":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\"); if (len(str) == 0) { return false; }; return true;","set_if_format":"expression","value":{"body":"var str = macro(\"$IcingaCheckTimeSync_String_Server$\");\r\nvar argLen = len(str);\r\n\r\nif (argLen == 0) {\r\n return;\r\n}\r\n\r\nif (argLen != 0 \u0026\u0026 str.substr(0,1) == \"\u0027\" \u0026\u0026 str.substr(argLen - 1, argLen) == \"\u0027\") {\r\n return str;\r\n}\r\n\r\nreturn (\"\u0027\" + str + \"\u0027\");","type":"Function"},"order":"2"},"-TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$","order":"3"},"-IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTimeSync_Switchparameter_IPV4":false,"IcingaCheckTimeSync_Switchparameter_NoPerfData":false,"ifw_api_arguments":{"IPV4":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IPV4$"},"TimeOffset":{"value":"$IcingaCheckTimeSync_Object_TimeOffset$"},"ThresholdInterval":{"value":"$IcingaCheckTimeSync_String_ThresholdInterval$"},"Server":{"value":"$IcingaCheckTimeSync_String_Server$"},"Critical":{"value":"$IcingaCheckTimeSync_Object_Critical$"},"Port":{"value":"$IcingaCheckTimeSync_Int32_Port$"},"Timeout":{"value":"$IcingaCheckTimeSync_Int32_Timeout$"},"Warning":{"value":"$IcingaCheckTimeSync_Object_Warning$"},"NoPerfData":{"set_if":"$IcingaCheckTimeSync_Switchparameter_NoPerfData$"},"IgnoreService":{"set_if":"$IcingaCheckTimeSync_Switchparameter_IgnoreService$"},"Verbosity":{"value":"$IcingaCheckTimeSync_Int32_Verbosity$"}},"ifw_api_command":"Invoke-IcingaCheckTimeSync","IcingaCheckTimeSync_Switchparameter_IgnoreService":false}}},"Datafield":{"51":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date younger then 20 days are considered within the check.","caption":"ChangeYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"51","varname":"IcingaCheckDirectory_String_ChangeYoungerThan","format":null},"364":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"364","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_SkipUnknown","format":null},"319":{"settings":{"visibility":"visible"},"description":"Use IPV4 connection. Default $FALSE","caption":"IPV4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"319","varname":"IcingaCheckTimeSync_Switchparameter_IPV4","format":null},"346":{"settings":{"visibility":"visible"},"description":"The warning threshold for all other updates on the Windows machine","caption":"WarningOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"346","varname":"IcingaCheckUpdates_Object_WarningOther","format":null},"294":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool Capacity.","caption":"CapacityCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"294","varname":"IcingaCheckStoragePool_Object_CapacityCritical","format":null},"90":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"90","varname":"IcingaCheckEventlog_Object_Critical","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify an array of exclusions, tested against Subject, Subject Alternative Name, Issuer and Thumbprint.","caption":"ExcludePattern","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"13","varname":"IcingaCheckCertificate_Array_ExcludePattern","format":null},"31":{"settings":{"visibility":"visible"},"description":"If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all\nreturned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument","caption":"OverallOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"31","varname":"IcingaCheckCPU_Switchparameter_OverallOnly","format":null},"81":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"81","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecWarning","format":null},"192":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"192","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecWarn","format":null},"111":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"111","varname":"IcingaCheckFirewall_Switchparameter_NoPerfData","format":null},"284":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"284","varname":"IcingaCheckService_Switchparameter_NoPerfData","format":null},"122":{"settings":{"visibility":"visible"},"description":"Warning thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"122","varname":"IcingaCheckHttpJsonResponse_Array_Warning","format":null},"60":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"60","varname":"IcingaCheckDiskHealth_String_ThresholdInterval","format":null},"150":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for the response time in ms","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"150","varname":"IcingaCheckICMP_Object_Warning","format":null},"363":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"363","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_NoPerfData","format":null},"372":{"settings":{"datalist":"IcingaCheckUsers Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"372","varname":"IcingaCheckUsers_Int32_Verbosity","format":null},"341":{"settings":{"visibility":"visible"},"description":"The critical threshold for the security update count on the Windows machine","caption":"CriticalSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"341","varname":"IcingaCheckUpdates_Object_CriticalSecurity","format":null},"180":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"180","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecWarn","format":null},"293":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool Capacity.","caption":"CapacityWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"293","varname":"IcingaCheckStoragePool_Object_CapacityWarning","format":null},"236":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"236","varname":"IcingaCheckProcess_Object_PageFileWarning","format":null},"282":{"settings":{"visibility":"visible"},"description":"This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this\ncheck","caption":"MitigateUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"282","varname":"IcingaCheckService_Switchparameter_MitigateUnknown","format":null},"233":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"233","varname":"IcingaCheckPerfCounter_Switchparameter_NoPerfData","format":null},"310":{"settings":{"visibility":"visible"},"description":"A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"310","varname":"IcingaCheckTCP_Object_Critical","format":null},"222":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"222","varname":"IcingaCheckPartitionSpace_Switchparameter_NoPerfData","format":null},"211":{"settings":{"datalist":"IcingaCheckNetworkInterface Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"211","varname":"IcingaCheckNetworkInterface_Object_Verbosity","format":null},"53":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been created 20 days ago are considered within the check.","caption":"CreationTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"53","varname":"IcingaCheckDirectory_String_CreationTimeEqual","format":null},"128":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"128","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NoPerfData","format":null},"71":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"71","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenWarning","format":null},"250":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"250","varname":"IcingaCheckProcess_Object_TotalThreadCountWarning","format":null},"125":{"settings":{"datalist":"IcingaCheckHttpJsonResponse StatusOnRequestError","behavior":"strict","data_type":"string"},"description":"Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown\nSee https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values","caption":"StatusOnRequestError","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"125","varname":"IcingaCheckHttpJsonResponse_String_StatusOnRequestError","format":null},"149":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"149","varname":"IcingaCheckICMP_String_ThresholdInterval","format":null},"134":{"settings":{"visibility":"visible"},"description":"Used to specify headers as Array. Like: -Headers \u0027Accept:application/json\u0027","caption":"Headers","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"134","varname":"IcingaCheckHTTPStatus_Array_Headers","format":null},"158":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv6 addresses for ICMP calls by using a hostname","caption":"IPv6","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"158","varname":"IcingaCheckICMP_Switchparameter_IPv6","format":null},"94":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be included.","caption":"IncludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"94","varname":"IcingaCheckEventlog_Array_IncludeUsername","format":null},"238":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"238","varname":"IcingaCheckProcess_Object_MemoryWarning","format":null},"109":{"settings":{"visibility":"visible"},"description":"Used to specify an array of profiles to check. Available profiles are \u0027Domain\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"109","varname":"IcingaCheckFirewall_Array_Profile","format":null},"323":{"settings":{"datalist":"IcingaCheckTimeSync Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"323","varname":"IcingaCheckTimeSync_Int32_Verbosity","format":null},"99":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be excluded.","caption":"ExcludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"99","varname":"IcingaCheckEventlog_Array_ExcludeMessage","format":null},"292":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool IsReadOnly Attr.","caption":"IsReadOnlyCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"292","varname":"IcingaCheckStoragePool_Object_IsReadOnlyCritical","format":null},"88":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"88","varname":"IcingaCheckEventlog_String_ThresholdInterval","format":null},"283":{"settings":{"datalist":"IcingaCheckService Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"283","varname":"IcingaCheckService_Int32_Verbosity","format":null},"224":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"224","varname":"IcingaCheckPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"217":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"217","varname":"IcingaCheckPartitionSpace_Object_Warning","format":null},"55":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date younger then 20 days are considered within the check.","caption":"CreationYoungerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"55","varname":"IcingaCheckDirectory_String_CreationYoungerThan","format":null},"340":{"settings":{"visibility":"visible"},"description":"The warning threshold for the security update count on the Windows machine","caption":"WarningSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"340","varname":"IcingaCheckUpdates_Object_WarningSecurity","format":null},"43":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"43","varname":"IcingaCheckDirectory_Object_CriticalSmallestFile","format":null},"143":{"settings":{"visibility":"visible"},"description":null,"caption":"Minimum","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"143","varname":"IcingaCheckHTTPStatus_Int32_Minimum","format":null},"61":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to include for checks. Example 0, 1","caption":"IncludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"61","varname":"IcingaCheckDiskHealth_Array_IncludeDisk","format":null},"152":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027WARNING\u0027 for possible packet loss in %","caption":"WarningPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"152","varname":"IcingaCheckICMP_Object_WarningPl","format":null},"8":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"WarningEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckCertificate_Object_WarningEnd","format":null},"240":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"240","varname":"IcingaCheckProcess_Object_CPUWarning","format":null},"159":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"159","varname":"IcingaCheckICMP_Switchparameter_NoPerfData","format":null},"20":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"20","varname":"IcingaCheckCheckSum_String_ThresholdInterval","format":null},"184":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PackteReceivedErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"184","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorWarn","format":null},"195":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"195","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecCrit","format":null},"209":{"settings":{"visibility":"visible"},"description":"Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not\nbroadcasting its ID.","caption":"IncludeHidden","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"209","varname":"IcingaCheckNetworkInterface_Switchparameter_IncludeHidden","format":null},"103":{"settings":{"visibility":"visible"},"description":"Defines the end point on which timeframe the plugin will stop to read event log information.\nUsing 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be\nused in combination with the \"-After\" argument. As example, you could provide \"-After 6h\" to start reading all eventlogs from the past\n6 hours, and use \"-Before 2h\" to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours\nhave been ignored.\nFor thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:\n\n\"2024/01/01 12:00:00\": Will stop reading eventlogs after the 1st January 2024 12:00 CET\n\"2024/01/15\": Will stop reading eventlogs after the 15th January 2024 00:00 CET\n\"4h\": Will ignore eventlogs of the past 4 hours\n\"1d\": Will ignore eventlogs of the past day (24 hours)\n\nAllowed units for time metrics: ms, s, m, h, d, w, M, y\n\nExample\n``` Start of EventLog Plugin Execution\nv After 6h Before 2h v\n|-------------|------------------|------|\n8:00 10:00 14:00 16:00\n| Not fetched | Fetched | Not fetchhed```","caption":"Before","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"103","varname":"IcingaCheckEventlog_Object_Before","format":null},"325":{"settings":{"visibility":"visible"},"description":"The path to a volume or network share you want to monitor, like \"\\\\example.com\\Home\" or \"C:\\ClusterSharedVolume\\Volume1\"","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"325","varname":"IcingaCheckUNCPath_String_Path","format":null},"334":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"334","varname":"IcingaCheckUNCPath_Switchparameter_NoPerfData","format":null},"311":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"311","varname":"IcingaCheckTCP_Switchparameter_NoPerfData","format":null},"276":{"settings":{"datalist":"IcingaCheckScheduledTask Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"276","varname":"IcingaCheckScheduledTask_Int32_Verbosity","format":null},"54":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a creation date older then 20 days are considered within the check.","caption":"CreationOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"54","varname":"IcingaCheckDirectory_String_CreationOlderThan","format":null},"267":{"settings":{"visibility":"visible"},"description":"A list of exit codes which will be considered as [OK]. By default every task which did not exit with 0 will be handled as critical.","caption":"IgnoreExitCodes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"267","varname":"IcingaCheckScheduledTask_Array_IgnoreExitCodes","format":null},"45":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"45","varname":"IcingaCheckDirectory_Object_CriticalLargestFile","format":null},"254":{"settings":{"visibility":"visible"},"description":"Allows to filter for a list of processes with a given name. Use the process name without file ending, like \u0027.exe\u0027.","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"254","varname":"IcingaCheckProcess_Array_Process","format":null},"76":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"76","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecCritical","format":null},"245":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"245","varname":"IcingaCheckProcess_Object_TotalPageFileCritical","format":null},"67":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"67","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecWarning","format":null},"350":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"350","varname":"IcingaCheckUpdates_Switchparameter_NoPerfData","format":null},"259":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"259","varname":"IcingaCheckProcessCount_Object_Warning","format":null},"248":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"248","varname":"IcingaCheckProcess_Object_TotalCPUWarning","format":null},"171":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the number of path defined.\nUse for example 8: for alerting for less than 8 MPIO paths available","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"171","varname":"IcingaCheckMPIO_Object_Warning","format":null},"123":{"settings":{"visibility":"visible"},"description":"Critical thresholds using icinga-powershell syntax. Example: \"myNumericAlias01:~:2\",\"myDateTimeAlias:-10d\", \"myBooleanAlias:True\"","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"123","varname":"IcingaCheckHttpJsonResponse_Array_Critical","format":null},"28":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"28","varname":"IcingaCheckCPU_Object_Critical","format":null},"207":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"207","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusWarn","format":null},"335":{"settings":{"datalist":"IcingaCheckUNCPath Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"335","varname":"IcingaCheckUNCPath_Object_Verbosity","format":null},"366":{"settings":{"datalist":"IcingaCheckUsedPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"366","varname":"IcingaCheckUsedPartitionSpace_Int32_Verbosity","format":null},"317":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Critical threshold e.g 20ms or 0.02s.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"317","varname":"IcingaCheckTimeSync_Object_Critical","format":null},"52":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have a change date older then 20 days are considered within the check.","caption":"ChangeOlderThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"52","varname":"IcingaCheckDirectory_String_ChangeOlderThan","format":null},"261":{"settings":{"visibility":"visible"},"description":"Used to specify an array of processes to count and match against. e.g. conhost,wininit","caption":"Process","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"261","varname":"IcingaCheckProcessCount_Array_Process","format":null},"349":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\ncritical if one is pending","caption":"CritOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"349","varname":"IcingaCheckUpdates_Switchparameter_CritOnReboot","format":null},"257":{"settings":{"datalist":"IcingaCheckProcess Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"257","varname":"IcingaCheckProcess_Int32_Verbosity","format":null},"358":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"358","varname":"IcingaCheckUsedPartitionSpace_Object_Warning","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify an array of paths on your system, where certificate files are. Use with CertName.","caption":"CertPaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"15","varname":"IcingaCheckCertificate_Array_CertPaths","format":null},"68":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Writes/sec is the rate of write operations on the disk.","caption":"DiskWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"68","varname":"IcingaCheckDiskHealth_Object_DiskWriteSecCritical","format":null},"235":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"235","varname":"IcingaCheckProcess_String_ThresholdInterval","format":null},"37":{"settings":{"visibility":"visible"},"description":"A switch, which can be set to search through directories recursively.","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"37","varname":"IcingaCheckDirectory_Switchparameter_Recurse","format":null},"92":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be included.","caption":"IncludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"92","varname":"IcingaCheckEventlog_Array_IncludeEventId","format":null},"26":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"26","varname":"IcingaCheckCPU_String_ThresholdInterval","format":null},"244":{"settings":{"visibility":"visible"},"description":"Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalPageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"244","varname":"IcingaCheckProcess_Object_TotalPageFileWarning","format":null},"38":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"38","varname":"IcingaCheckDirectory_Object_Critical","format":null},"29":{"settings":{"visibility":"visible"},"description":"Used to specify a single core to check for. For the average load across all cores use `_Total`","caption":"Core","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"29","varname":"IcingaCheckCPU_String_Core","format":null},"285":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"285","varname":"IcingaCheckStoragePool_String_ThresholdInterval","format":null},"309":{"settings":{"visibility":"visible"},"description":"A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.\n\nAllowed units: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"309","varname":"IcingaCheckTCP_Object_Warning","format":null},"113":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"113","varname":"IcingaCheckHttpJsonResponse_String_ThresholdInterval","format":null},"7":{"settings":{"visibility":"visible"},"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.\nUse format like: \u0027yyyy-MM-dd\u0027","caption":"CriticalStart","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckCertificate_Object_CriticalStart","format":null},"365":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"365","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_CheckUsedSpace","format":null},"5":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckCertificate_String_ThresholdInterval","format":null},"347":{"settings":{"visibility":"visible"},"description":"The critical threshold for all other updates on the Windows machine","caption":"CriticalOther","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"347","varname":"IcingaCheckUpdates_Object_CriticalOther","format":null},"356":{"settings":{"datalist":"IcingaCheckUptime Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"356","varname":"IcingaCheckUptime_Int32_Verbosity","format":null},"42":{"settings":{"visibility":"visible"},"description":"Checks the smallest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningSmallestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"42","varname":"IcingaCheckDirectory_Object_WarningSmallestFile","format":null},"359":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"359","varname":"IcingaCheckUsedPartitionSpace_Object_Critical","format":null},"133":{"settings":{"visibility":"visible"},"description":"Used to specify a VHost as string.","caption":"VHost","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"133","varname":"IcingaCheckHTTPStatus_String_VHost","format":null},"36":{"settings":{"visibility":"visible"},"description":"Used to specify an array of filenames or expressions to match against results to filter for specific files.\n\ne.g \u0027*.txt\u0027, \u0027*.sql\u0027, finds all files ending with .txt and .sql","caption":"FileNames","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"36","varname":"IcingaCheckDirectory_Array_FileNames","format":null},"91":{"settings":{"visibility":"visible"},"description":"Used to specify a certain log.","caption":"LogName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"91","varname":"IcingaCheckEventlog_String_LogName","format":null},"27":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"27","varname":"IcingaCheckCPU_Object_Warning","format":null},"307":{"settings":{"visibility":"visible"},"description":"A single or a list of ports to check on the target address","caption":"Ports","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"307","varname":"IcingaCheckTCP_Array_Ports","format":null},"115":{"settings":{"visibility":"visible"},"description":"Path for the request, example \"/v1/my_endpoint\"","caption":"ServerPath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"115","varname":"IcingaCheckHttpJsonResponse_String_ServerPath","format":null},"9":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical range for the end date of an certificate. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"CriticalEnd","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckCertificate_Object_CriticalEnd","format":null},"70":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"70","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenCritical","format":null},"4":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckBiosSerial_String_ThresholdInterval","format":null},"361":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"361","varname":"IcingaCheckUsedPartitionSpace_Array_Exclude","format":null},"140":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy server as string to authenticate with.","caption":"ProxyServer","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"140","varname":"IcingaCheckHTTPStatus_String_ProxyServer","format":null},"357":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"357","varname":"IcingaCheckUsedPartitionSpace_String_ThresholdInterval","format":null},"237":{"settings":{"visibility":"visible"},"description":"Compares each single process page file usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process page file usage for the entire page file space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"237","varname":"IcingaCheckProcess_Object_PageFileCritical","format":null},"281":{"settings":{"datalist":"IcingaCheckService FilterStartupType","behavior":"strict","data_type":"array"},"description":"Allows to include only services with a specific startup type inside the monitoring,\nin case you check for a list of specific services by using `-Service`","caption":"FilterStartupType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"281","varname":"IcingaCheckService_Array_FilterStartupType","format":null},"226":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"226","varname":"IcingaCheckPerfCounter_String_ThresholdInterval","format":null},"215":{"settings":{"visibility":"visible"},"description":"Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked","caption":"NICs","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"215","varname":"IcingaCheckNLA_Array_NICs","format":null},"129":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"129","varname":"IcingaCheckHTTPStatus_String_ThresholdInterval","format":null},"145":{"settings":{"visibility":"visible"},"description":"Adds the returned content of a website to the plugin output for debugging purpose","caption":"AddOutputContent","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"145","varname":"IcingaCheckHTTPStatus_Switchparameter_AddOutputContent","format":null},"138":{"settings":{"visibility":"visible"},"description":"Used to specify a proxy username as string to authenticate with. Use with: -ProxyPassword \u0026 -ProxyServer","caption":"ProxyUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"138","varname":"IcingaCheckHTTPStatus_String_ProxyUsername","format":null},"193":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Total/sec is the rate at which bytes are sent and received over each network adapter,\nincluding framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceTotalBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"193","varname":"IcingaCheckNetworkInterface_Object_DeviceTotalBytesSecCrit","format":null},"168":{"settings":{"datalist":"IcingaCheckMemory Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"168","varname":"IcingaCheckMemory_Int32_Verbosity","format":null},"179":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to include for checks. Example OutboundGroup, ClusterInterface","caption":"IncludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"179","varname":"IcingaCheckNetworkInterface_Array_IncludeInterfaceTeam","format":null},"242":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"242","varname":"IcingaCheckProcess_Object_ThreadCountWarning","format":null},"186":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"186","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorWarn","format":null},"105":{"settings":{"visibility":"visible"},"description":"Switch to disable the time cache on a check. If this parameter is set the time cache is disabled.\nAfter the check has been run once, the next check instance will filter through the eventlog from the point the last check ended.\nThis is due to the time cache, when disabled the whole eventlog is checked instead.","caption":"DisableTimeCache","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"105","varname":"IcingaCheckEventlog_Switchparameter_DisableTimeCache","format":null},"95":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames within the eventlog to be excluded.","caption":"ExcludeUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"95","varname":"IcingaCheckEventlog_Array_ExcludeUsername","format":null},"327":{"settings":{"visibility":"hidden"},"description":"The password to authenticate the given user for. Has to be a secure string","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"327","varname":"IcingaCheckUNCPath_Securestring_Password","format":null},"84":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Read Only` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreReadOnlyDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"84","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks","format":null},"108":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"108","varname":"IcingaCheckFirewall_String_ThresholdInterval","format":null},"228":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"228","varname":"IcingaCheckPerfCounter_Object_Warning","format":null},"25":{"settings":{"datalist":"IcingaCheckCheckSum Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"25","varname":"IcingaCheckCheckSum_Int32_Verbosity","format":null},"227":{"settings":{"visibility":"visible"},"description":"Used to specify an array of performance counter to check against.","caption":"PerfCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"227","varname":"IcingaCheckPerfCounter_Array_PerfCounter","format":null},"214":{"settings":{"datalist":"IcingaCheckNLA Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"214","varname":"IcingaCheckNLA_Int32_Verbosity","format":null},"278":{"settings":{"visibility":"visible"},"description":"Used to specify an array of services which should be checked against the status. Supports \u0027*\u0027 for\nwildcards.","caption":"Service","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"278","varname":"IcingaCheckService_Array_Service","format":null},"56":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20MB\", which translates to the filze size 20 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 20 MB or larger are considered within the check.","caption":"FileSizeGreaterThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"56","varname":"IcingaCheckDirectory_String_FileSizeGreaterThan","format":null},"269":{"settings":{"visibility":"visible"},"description":"Defines a critical threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"CriticalMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"269","varname":"IcingaCheckScheduledTask_Object_CriticalMissedRuns","format":null},"47":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"47","varname":"IcingaCheckDirectory_Object_CriticalAverageFile","format":null},"74":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"74","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecCritical","format":null},"144":{"settings":{"visibility":"visible"},"description":"A switch used to invert check results.","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"144","varname":"IcingaCheckHTTPStatus_Switchparameter_Negate","format":null},"155":{"settings":{"visibility":"visible"},"description":"The amount of packets send to the target host","caption":"PacketCount","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"155","varname":"IcingaCheckICMP_Int32_PacketCount","format":null},"166":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being included for the check","caption":"IncludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"166","varname":"IcingaCheckMemory_Array_IncludePageFile","format":null},"177":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to exclude for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"ExcludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"177","varname":"IcingaCheckNetworkInterface_Array_ExcludeNetworkDevice","format":null},"188":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"188","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedWarn","format":null},"30":{"settings":{"visibility":"visible"},"description":"Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id\u0027s will not be evaluated\nby the plugin.","caption":"SocketFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"30","varname":"IcingaCheckCPU_Array_SocketFilter","format":null},"205":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the current network interface operational status.","caption":"IfOperationalStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"205","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusWarn","format":null},"185":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Errors is the number of inbound packets that contained errors preventing\nthem from being deliverable to a higher-layer protocol. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteReceivedErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"185","varname":"IcingaCheckNetworkInterface_Object_PackteReceivedErrorCrit","format":null},"194":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing\ncharacters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceSentBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"194","varname":"IcingaCheckNetworkInterface_Object_DeviceSentBytesSecWarn","format":null},"102":{"settings":{"visibility":"visible"},"description":"Defines the starting point on which timeframe the plugin will start to read event log information.\nUsing 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours.\nFor thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:\n\n\"2024/01/01 12:00:00\": Will start reading eventlogs after the 1st January 2024 12:00 CET\n\"2024/01/15\": Will start reading eventlogs after the 15th January 2024 00:00 CET\n\"4h\": Will read the past 4 hours\n\"1d\": Will read the past day (24 hours)\n\nAllowed units for time metrics: ms, s, m, h, d, w, M, y\n\nExample\n``` Start of EventLog Plugin Execution\nv After 4h v\n|--------------------|-----------------|\n10:00 12:00 16:00\n| Not fetched | Fetched |```","caption":"After","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"102","varname":"IcingaCheckEventlog_Object_After","format":null},"10":{"settings":{"datalist":"IcingaCheckCertificate CertStore","behavior":"strict","data_type":"string"},"description":"Used to specify which CertStore to check. Valid choices are \u0027None\u0027, \u0027*\u0027, \u0027LocalMachine\u0027, \u0027CurrentUser\u0027.\nUse \u0027None\u0027 if you do not want to check the certificate store (Default)","caption":"CertStore","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"10","varname":"IcingaCheckCertificate_String_CertStore","format":null},"142":{"settings":{"visibility":"visible"},"description":null,"caption":"StatusCode","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"142","varname":"IcingaCheckHTTPStatus_Array_StatusCode","format":null},"326":{"settings":{"visibility":"visible"},"description":"Provide a username and/or domain to run this check for. The format can either be \u0027domain\\user\u0027 or \u0027domain@user\u0027","caption":"User","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"326","varname":"IcingaCheckUNCPath_String_User","format":null},"85":{"settings":{"visibility":"visible"},"description":"Set this to include only disks that have drive letters like C:, D:, ..., assigned to them. Can be combined with include/exclude filters","caption":"CheckLogicalOnly","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"85","varname":"IcingaCheckDiskHealth_Switchparameter_CheckLogicalOnly","format":null},"337":{"settings":{"visibility":"visible"},"description":"Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates\nbeyond the provided categories","caption":"UpdateFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"337","varname":"IcingaCheckUpdates_Array_UpdateFilter","format":null},"229":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"229","varname":"IcingaCheckPerfCounter_Object_Critical","format":null},"239":{"settings":{"visibility":"visible"},"description":"Compares each single process memory usage against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"MemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"239","varname":"IcingaCheckProcess_Object_MemoryCritical","format":null},"315":{"settings":{"visibility":"visible"},"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.\nInvoke-IcingaCheckTimeSync will return OK, if there is no difference between them,\nWARNING, if the time difference exceeds the Warning threshold,\nCRITICAL, if the time difference exceeds the Critical threshold.","caption":"TimeOffset","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"315","varname":"IcingaCheckTimeSync_Object_TimeOffset","format":null},"58":{"settings":{"datalist":"IcingaCheckDirectory Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"58","varname":"IcingaCheckDirectory_Int32_Verbosity","format":null},"272":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"WarningNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"272","varname":"IcingaCheckScheduledTask_String_WarningNextRunTime","format":null},"49":{"settings":{"visibility":"visible"},"description":"Allows to add the file list to the plugin output. Beware that this will cause your database to grow and\nperformance might be slower on huge directories!","caption":"ShowFileList","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"49","varname":"IcingaCheckDirectory_Switchparameter_ShowFileList","format":null},"277":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"277","varname":"IcingaCheckService_String_ThresholdInterval","format":null},"266":{"settings":{"datalist":"IcingaCheckScheduledTask State","behavior":"strict","data_type":"array"},"description":"The state a task should currently have for the plugin to return [OK]","caption":"State","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"266","varname":"IcingaCheckScheduledTask_Array_State","format":null},"44":{"settings":{"visibility":"visible"},"description":"Checks the largest file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningLargestFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"44","varname":"IcingaCheckDirectory_Object_WarningLargestFile","format":null},"255":{"settings":{"visibility":"visible"},"description":"Define a list of process names which are excluded from the final result. Only the process name is required without \u0027.exe\u0027 at the end.","caption":"ExcludeProcess","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"255","varname":"IcingaCheckProcess_Array_ExcludeProcess","format":null},"77":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"77","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecWarning","format":null},"17":{"settings":{"visibility":"visible"},"description":"Includes sub-directories and entries while looking for certificates on a given path","caption":"Recurse","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckCertificate_Switchparameter_Recurse","format":null},"66":{"settings":{"visibility":"visible"},"description":"Critical threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"66","varname":"IcingaCheckDiskHealth_Object_DiskReadSecCritical","format":null},"304":{"settings":{"datalist":"IcingaCheckStoragePool Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"304","varname":"IcingaCheckStoragePool_Object_Verbosity","format":null},"161":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"161","varname":"IcingaCheckMemory_String_ThresholdInterval","format":null},"204":{"settings":{"datalist":"IcingaCheckNetworkInterface IfAdminStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the network Interface administrative status.","caption":"IfAdminStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"204","varname":"IcingaCheckNetworkInterface_Object_IfAdminStatusWarn","format":null},"21":{"settings":{"visibility":"visible"},"description":null,"caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"21","varname":"IcingaCheckCheckSum_String_Path","format":null},"328":{"settings":{"visibility":"visible"},"description":"Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value\ninstead of shorten the output and make it more visual appealing.","caption":"DisplayAlias","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"328","varname":"IcingaCheckUNCPath_String_DisplayAlias","format":null},"339":{"settings":{"visibility":"visible"},"description":"The critical threshold for the total pending update count on the Windows machine","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"339","varname":"IcingaCheckUpdates_Object_Critical","format":null},"130":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time warning threshold in seconds, everything past that threshold is considered a WARNING.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"130","varname":"IcingaCheckHTTPStatus_Object_Warning","format":null},"367":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"367","varname":"IcingaCheckUsers_String_ThresholdInterval","format":null},"316":{"settings":{"visibility":"visible"},"description":"Used to specify a offset Warning threshold e.g 10ms or 0.01s","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"316","varname":"IcingaCheckTimeSync_Object_Warning","format":null},"271":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"CriticalLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"271","varname":"IcingaCheckScheduledTask_String_CriticalLastRunTime","format":null},"345":{"settings":{"visibility":"visible"},"description":"The critical threshold for the Microsoft Defender update count on the Windows machine","caption":"CriticalDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"345","varname":"IcingaCheckUpdates_Object_CriticalDefender","format":null},"253":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"253","varname":"IcingaCheckProcess_Object_TotalProcessCountCritical","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore.","caption":"CertThumbprint","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckCertificate_Array_CertThumbprint","format":null},"16":{"settings":{"visibility":"visible"},"description":"Used to specify an array of certificate names of certificate files to check. Use with CertPaths.","caption":"CertName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckCertificate_Array_CertName","format":null},"121":{"settings":{"visibility":"visible"},"description":"Value types of each parameter. Supported Types: Numeric, Boolean, DateTime, String Example: \"myAlias01:Numeric\",\"myAlias02:DateTime\"","caption":"ValueTypes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"121","varname":"IcingaCheckHttpJsonResponse_Array_ValueTypes","format":null},"34":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"34","varname":"IcingaCheckDirectory_String_ThresholdInterval","format":null},"220":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be excluded.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"220","varname":"IcingaCheckPartitionSpace_Array_Exclude","format":null},"298":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"298","varname":"IcingaCheckStoragePool_Object_HealthStatusWarning","format":null},"82":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgWriteSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"82","varname":"IcingaCheckDiskHealth_Object_DiskAvgWriteSecCritical","format":null},"289":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"289","varname":"IcingaCheckStoragePool_Object_FreeSpaceCritical","format":null},"305":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"305","varname":"IcingaCheckTCP_String_ThresholdInterval","format":null},"202":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"202","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateWarn","format":null},"308":{"settings":{"visibility":"visible"},"description":"By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument,\nthe plugin will return [CRITICAL] for successful connections instead","caption":"Negate","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"308","varname":"IcingaCheckTCP_Switchparameter_Negate","format":null},"112":{"settings":{"datalist":"IcingaCheckFirewall Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"112","varname":"IcingaCheckFirewall_Int32_Verbosity","format":null},"39":{"settings":{"visibility":"visible"},"description":"Checks the resulting file count of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"39","varname":"IcingaCheckDirectory_Object_Warning","format":null},"93":{"settings":{"visibility":"visible"},"description":"Used to specify an array of events identified by their id to be excluded.","caption":"ExcludeEventId","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"93","varname":"IcingaCheckEventlog_Array_ExcludeEventId","format":null},"6":{"settings":{"visibility":"visible"},"description":"Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root.\nWill return Critical in case of untrusted.\n\nNote: it is currently required that the root and intermediate CA is known and trusted by the local system.","caption":"Trusted","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"6","varname":"IcingaCheckCertificate_Switchparameter_Trusted","format":null},"172":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the number of path defined.\nUse for example 6: for alerting for less than 6 MPIO paths available","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"172","varname":"IcingaCheckMPIO_Object_Critical","format":null},"160":{"settings":{"datalist":"IcingaCheckICMP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"160","varname":"IcingaCheckICMP_Int32_Verbosity","format":null},"344":{"settings":{"visibility":"visible"},"description":"The warning threshold for the Microsoft Defender update count on the Windows machine","caption":"WarningDefender","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"344","varname":"IcingaCheckUpdates_Object_WarningDefender","format":null},"355":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"355","varname":"IcingaCheckUptime_Switchparameter_NoPerfData","format":null},"252":{"settings":{"visibility":"visible"},"description":"Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalProcessCountWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"252","varname":"IcingaCheckProcess_Object_TotalProcessCountWarning","format":null},"243":{"settings":{"visibility":"visible"},"description":"Compares each single process thread usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"ThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"243","varname":"IcingaCheckProcess_Object_ThreadCountCritical","format":null},"32":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"32","varname":"IcingaCheckCPU_Switchparameter_NoPerfData","format":null},"231":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, excluding the provided counters. Allows\nwildcard \"*\" usage","caption":"ExcludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"231","varname":"IcingaCheckPerfCounter_Array_ExcludeCounter","format":null},"23":{"settings":{"visibility":"visible"},"description":null,"caption":"Hash","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"23","varname":"IcingaCheckCheckSum_String_Hash","format":null},"303":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"303","varname":"IcingaCheckStoragePool_Switchparameter_NoPerfData","format":null},"83":{"settings":{"visibility":"visible"},"description":"Ignores any disk which is having the state `Offline` and returns `Ok` instead of `Warning` for this specific state","caption":"IgnoreOfflineDisks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"83","varname":"IcingaCheckDiskHealth_Switchparameter_IgnoreOfflineDisks","format":null},"191":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"191","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedCrit","format":null},"306":{"settings":{"visibility":"visible"},"description":"The IP address or FQDN of the target host","caption":"Address","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"306","varname":"IcingaCheckTCP_String_Address","format":null},"270":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return warning based on the last run time\nof a task and the current time. The value will be subtracted from the current time\n\nValues have to be specified as time units like, -10m, -1d, -1w, -2M, -1y","caption":"WarningLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"270","varname":"IcingaCheckScheduledTask_String_WarningLastRunTime","format":null},"114":{"settings":{"visibility":"visible"},"description":"Base URI of the server, example \"https://example.comm\"","caption":"ServerUri","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"114","varname":"IcingaCheckHttpJsonResponse_String_ServerUri","format":null},"127":{"settings":{"datalist":"IcingaCheckHttpJsonResponse Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"127","varname":"IcingaCheckHttpJsonResponse_Int32_Verbosity","format":null},"136":{"settings":{"visibility":"visible"},"description":"Used to specify a username as string to authenticate with. Authentication is only possible with \u0027https://\u0027. Use with: -Password","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"136","varname":"IcingaCheckHTTPStatus_String_Username","format":null},"131":{"settings":{"visibility":"visible"},"description":"Used to specify the webrequest response time critical threshold in seconds, everything past that threshold is considered a CRITICAL.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"131","varname":"IcingaCheckHTTPStatus_Object_Critical","format":null},"241":{"settings":{"visibility":"visible"},"description":"Compares each single process cpu usage against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"CPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"241","varname":"IcingaCheckProcess_Object_CPUCritical","format":null},"371":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"371","varname":"IcingaCheckUsers_Switchparameter_NoPerfData","format":null},"342":{"settings":{"visibility":"visible"},"description":"The warning threshold for the rollup update count on the Windows machine","caption":"WarningRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"342","varname":"IcingaCheckUpdates_Object_WarningRollups","format":null},"170":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"170","varname":"IcingaCheckMPIO_String_ThresholdInterval","format":null},"353":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"353","varname":"IcingaCheckUptime_String_Warning","format":null},"97":{"settings":{"datalist":"IcingaCheckEventlog ExcludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be excluded. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"ExcludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"97","varname":"IcingaCheckEventlog_Array_ExcludeEntryType","format":null},"24":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"24","varname":"IcingaCheckCheckSum_Switchparameter_NoPerfData","format":null},"291":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Critical threshold in GB.","caption":"TotalUsedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"291","varname":"IcingaCheckStoragePool_Object_TotalUsedCritical","format":null},"221":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"221","varname":"IcingaCheckPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"212":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"212","varname":"IcingaCheckNLA_String_ThresholdInterval","format":null},"41":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"CriticalTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"41","varname":"IcingaCheckDirectory_Object_CriticalTotalSize","format":null},"260":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"260","varname":"IcingaCheckProcessCount_Object_Critical","format":null},"126":{"settings":{"visibility":"visible"},"description":"Negate the conditions set for string parameters. When this is set to true, WarnIfLike/CritIfLike is used instead of WarnIfNotLike/CritIfNotLike for Strings","caption":"NegateStringResults","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"126","varname":"IcingaCheckHttpJsonResponse_Switchparameter_NegateStringResults","format":null},"146":{"settings":{"visibility":"visible"},"description":"By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this\nflag, the result will be modified from UNKNOWN to CRITICAL","caption":"ConnectionErrAsCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"146","varname":"IcingaCheckHTTPStatus_Switchparameter_ConnectionErrAsCrit","format":null},"137":{"settings":{"visibility":"hidden"},"description":"Used to specify a password as securestring to authenticate with. Authentication is only possible with \u0027https://\u0027.Use with: -Username","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"137","varname":"IcingaCheckHTTPStatus_Securestring_Password","format":null},"157":{"settings":{"visibility":"visible"},"description":"Force the usage of IPv4 addresses for ICMP calls by using a hostname","caption":"IPv4","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"157","varname":"IcingaCheckICMP_Switchparameter_IPv4","format":null},"19":{"settings":{"datalist":"IcingaCheckCertificate Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"19","varname":"IcingaCheckCertificate_Int32_Verbosity","format":null},"164":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\n It is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"164","varname":"IcingaCheckMemory_Object_PageFileWarning","format":null},"169":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"169","varname":"IcingaCheckMemory_Switchparameter_NoPerfData","format":null},"178":{"settings":{"visibility":"visible"},"description":"Specify the name of network interface teams you want to exclude for checks. Example OutboundGroup, ClusterInterface","caption":"ExcludeInterfaceTeam","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"178","varname":"IcingaCheckNetworkInterface_Array_ExcludeInterfaceTeam","format":null},"187":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted\nbecause of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c)","caption":"PackteOutboundErrorCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"187","varname":"IcingaCheckNetworkInterface_Object_PackteOutboundErrorCrit","format":null},"196":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"196","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecWarn","format":null},"104":{"settings":{"visibility":"visible"},"description":"Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact\nShould match the average amount of log files written for the intended time range filtered","caption":"MaxEntries","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"104","varname":"IcingaCheckEventlog_Int32_MaxEntries","format":null},"332":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"CriticalTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"332","varname":"IcingaCheckUNCPath_Object_CriticalTotal","format":null},"96":{"settings":{"datalist":"IcingaCheckEventlog IncludeEntryType","behavior":"strict","data_type":"array"},"description":"Used to specify an array of entry types within the eventlog to be included. Please note that\n`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog.","caption":"IncludeEntryType","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"96","varname":"IcingaCheckEventlog_Array_IncludeEntryType","format":null},"331":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares total free space in byte units, like \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"WarningTotal","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"331","varname":"IcingaCheckUNCPath_Object_WarningTotal","format":null},"87":{"settings":{"datalist":"IcingaCheckDiskHealth Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"87","varname":"IcingaCheckDiskHealth_Int32_Verbosity","format":null},"313":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"313","varname":"IcingaCheckTimeSync_String_ThresholdInterval","format":null},"218":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. This can either be a byte-value type like \u002710GB\u0027\nor a %-value, like \u002710%\u0027","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"218","varname":"IcingaCheckPartitionSpace_Object_Critical","format":null},"370":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"370","varname":"IcingaCheckUsers_Object_Critical","format":null},"89":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"89","varname":"IcingaCheckEventlog_Object_Warning","format":null},"279":{"settings":{"visibility":"visible"},"description":"Allows to exclude services which might come in handy for checking services which are configured to start automatically\non Windows but are not running and weren\u0027t exited properly.","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"279","varname":"IcingaCheckService_Array_Exclude","format":null},"57":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"5MB\", which translates to the filze size 5 MB. Allowed units: B, KB, MB, GB, TB.\n\nThereby all files with a size of 5 MB or less are considered within the check.","caption":"FileSizeSmallerThan","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"57","varname":"IcingaCheckDirectory_String_FileSizeSmallerThan","format":null},"268":{"settings":{"visibility":"visible"},"description":"Defines a warning threshold for missed runs for filtered tasks.\n\nSupports Icinga default threshold syntax.","caption":"WarningMissedRuns","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"268","varname":"IcingaCheckScheduledTask_Object_WarningMissedRuns","format":null},"46":{"settings":{"visibility":"visible"},"description":"Checks the average file size found for the given filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningAverageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"46","varname":"IcingaCheckDirectory_Object_WarningAverageFile","format":null},"75":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Write Bytes/sec is rate at which bytes are transferred to the disk during write operations.","caption":"DiskWriteByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"75","varname":"IcingaCheckDiskHealth_Object_DiskWriteByteSecWarning","format":null},"64":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to exclude from checks. Example C:, D:","caption":"ExcludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"64","varname":"IcingaCheckDiskHealth_Array_ExcludePartition","format":null},"154":{"settings":{"visibility":"visible"},"description":"The target hosts IP or FQDN to send ICMP requests too","caption":"Hostname","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"154","varname":"IcingaCheckICMP_String_Hostname","format":null},"167":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being excluded for the check","caption":"ExcludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"167","varname":"IcingaCheckMemory_Array_ExcludePageFile","format":null},"176":{"settings":{"visibility":"visible"},"description":"Specify the index id, interface name or connection name of network adapters you want to include for checks. Example 4, 3, *LAN*, *Ethernet*","caption":"IncludeNetworkDevice","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"176","varname":"IcingaCheckNetworkInterface_Array_IncludeNetworkDevice","format":null},"189":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received Discarded is the number of inbound packets that were chosen to be discarded\neven though no errors had been detected to prevent their delivery to a higher-layer protocol. It is possible to enter e.g. 10% as\nthreshold value if you want a percentage comparison. Default (c)","caption":"PacketReceivedDiscardedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"189","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedDiscardedCrit","format":null},"198":{"settings":{"visibility":"visible"},"description":"Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"198","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedWarn","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify which path within the CertStore should be checked.","caption":"CertStorePath","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckCertificate_Object_CertStorePath","format":null},"197":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including\nframing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"DeviceReceivedBytesSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"197","varname":"IcingaCheckNetworkInterface_Object_DeviceReceivedBytesSecCrit","format":null},"336":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"336","varname":"IcingaCheckUpdates_String_ThresholdInterval","format":null},"369":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"369","varname":"IcingaCheckUsers_Object_Warning","format":null},"314":{"settings":{"visibility":"visible"},"description":"The NTP Server you want to connect to.","caption":"Server","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"314","varname":"IcingaCheckTimeSync_String_Server","format":null},"59":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"59","varname":"IcingaCheckDirectory_Switchparameter_NoPerfData","format":null},"273":{"settings":{"visibility":"visible"},"description":"Allows to specify a time interval, on which the check will return critical based on the next run time\nof a task and the current time. The value will be added to the current time\n\nValues have to be specified as time units like, 10m, 1d, 1w, 2M, 1y","caption":"CriticalNextRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"273","varname":"IcingaCheckScheduledTask_String_CriticalNextRunTime","format":null},"48":{"settings":{"visibility":"visible"},"description":"Will add the count of folders on top of the file count, allowing to include it within the threshold check.","caption":"CountFolderAsFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"48","varname":"IcingaCheckDirectory_Switchparameter_CountFolderAsFile","format":null},"262":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"262","varname":"IcingaCheckProcessCount_Switchparameter_NoPerfData","format":null},"251":{"settings":{"visibility":"visible"},"description":"Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalThreadCountCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"251","varname":"IcingaCheckProcess_Object_TotalThreadCountCritical","format":null},"18":{"settings":{"visibility":"visible"},"description":"Will return `OK` instead of `UNKNOWN`, in case no certificates for the given filter and path were found","caption":"IgnoreEmpty","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckCertificate_Switchparameter_IgnoreEmpty","format":null},"65":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Reads/sec is the rate of read operations on the disk.","caption":"DiskReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"65","varname":"IcingaCheckDiskHealth_Object_DiskReadSecWarning","format":null},"296":{"settings":{"visibility":"visible"},"description":"Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not.","caption":"SupportsDeduplicationCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"296","varname":"IcingaCheckStoragePool_Object_SupportsDeduplicationCritical","format":null},"287":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system.","caption":"ExcludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"287","varname":"IcingaCheckStoragePool_Array_ExcludeStoragePool","format":null},"295":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when\nunmapped or removed from the storage pool.","caption":"ClearOnDeallocateCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"295","varname":"IcingaCheckStoragePool_Object_ClearOnDeallocateCritical","format":null},"199":{"settings":{"visibility":"visible"},"description":"Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface.","caption":"LinkSpeedCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"199","varname":"IcingaCheckNetworkInterface_Object_LinkSpeedCrit","format":null},"100":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be included.","caption":"IncludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"100","varname":"IcingaCheckEventlog_Array_IncludeSource","format":null},"329":{"settings":{"visibility":"visible"},"description":"A warning threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"329","varname":"IcingaCheckUNCPath_Object_Warning","format":null},"338":{"settings":{"visibility":"visible"},"description":"The warning threshold for the total pending update count on the Windows machine","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"338","varname":"IcingaCheckUpdates_Object_Warning","format":null},"120":{"settings":{"visibility":"visible"},"description":"paths to look for values in the JSON object that is checked, including an alias for each parameter. Example: \"myAlias01:value01\",\"myAlias02:nested.object.value02\", \"myAlias03:\u0027object\u0027.\u0027my.Par.With.Dots\u0027\"","caption":"ValuePaths","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"120","varname":"IcingaCheckHttpJsonResponse_Array_ValuePaths","format":null},"368":{"settings":{"visibility":"visible"},"description":"Used to specify an array of usernames to match against. e.g \u0027Administrator\u0027, \u0027Icinga\u0027","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"368","varname":"IcingaCheckUsers_Array_Username","format":null},"263":{"settings":{"datalist":"IcingaCheckProcessCount Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"263","varname":"IcingaCheckProcessCount_Int32_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore.","caption":"CertSubject","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckCertificate_Array_CertSubject","format":null},"80":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"80","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecCritical","format":null},"183":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"183","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecCrit","format":null},"230":{"settings":{"visibility":"visible"},"description":"An [array] of strings to filter for, only including the provided counters. Allows\nwildcard \"*\" usage","caption":"IncludeCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"230","varname":"IcingaCheckPerfCounter_Array_IncludeCounter","format":null},"35":{"settings":{"visibility":"visible"},"description":"Used to specify a path.\ne.g. \u0027C:\\Users\\Icinga\\Downloads\u0027","caption":"Path","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"35","varname":"IcingaCheckDirectory_String_Path","format":null},"182":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface.","caption":"PacketSentSecWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"182","varname":"IcingaCheckNetworkInterface_Object_PacketSentSecWarn","format":null},"200":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusWarn","behavior":"strict","data_type":"string"},"description":"Warning threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"200","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusWarn","format":null},"288":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the StoragePool FreeSpaces in GB. This value is a decreasing metric which will require\nyou to add a \u0027:\u0027 behind the threshold, like \u002720GB:\u0027 to check if free space is lower compared to your threshold","caption":"FreeSpaceWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"288","varname":"IcingaCheckStoragePool_Object_FreeSpaceWarning","format":null},"50":{"settings":{"visibility":"visible"},"description":"String that expects input format like \"20d\", which translates to 20 days. Allowed units: ms, s, m, h, d, w, M, y.\n\nThereby all files which have been changed 20 days ago are considered within the check.","caption":"ChangeTimeEqual","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"50","varname":"IcingaCheckDirectory_String_ChangeTimeEqual","format":null},"203":{"settings":{"datalist":"IcingaCheckNetworkInterface IfSlaveEnabledStateCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the State of a network Interface Team-Members/Slaves.","caption":"IfSlaveEnabledStateCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"203","varname":"IcingaCheckNetworkInterface_Object_IfSlaveEnabledStateCrit","format":null},"116":{"settings":{"visibility":"visible"},"description":"Query parameter for the request without ?, example \"command=example\"","caption":"QueryParameter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"116","varname":"IcingaCheckHttpJsonResponse_String_QueryParameter","format":null},"362":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).\nInstead of returning `Unknown` the plugin will return `Ok` instead if this argument is set.","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"362","varname":"IcingaCheckUsedPartitionSpace_Switchparameter_IgnoreEmptyChecks","format":null},"246":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"246","varname":"IcingaCheckProcess_Object_TotalMemoryWarning","format":null},"351":{"settings":{"datalist":"IcingaCheckUpdates Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"351","varname":"IcingaCheckUpdates_Int32_Verbosity","format":null},"190":{"settings":{"visibility":"visible"},"description":"Warning threshold for network Interface Packets Outbound Discarded is the number of outbound packets that were chosen to be discarded\neven though no errors had been detected to prevent transmission. It is possible to enter e.g. 10% as threshold value if you want\na percentage comparison. Default (c)","caption":"PacketOutboundDiscardedWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"190","varname":"IcingaCheckNetworkInterface_Object_PacketOutboundDiscardedWarn","format":null},"354":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case a string.\nAllowed units include: ms, s, m, h, d, w, M, y","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"354","varname":"IcingaCheckUptime_String_Critical","format":null},"320":{"settings":{"visibility":"visible"},"description":"Port number (default: 123)","caption":"Port","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"320","varname":"IcingaCheckTimeSync_Int32_Port","format":null},"33":{"settings":{"datalist":"IcingaCheckCPU Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"33","varname":"IcingaCheckCPU_Int32_Verbosity","format":null},"232":{"settings":{"visibility":"visible"},"description":"Overrides the default behaviour of the plugin in case no check element was found and\nprevent the plugin from exiting UNKNOWN and returns OK instead","caption":"IgnoreEmptyChecks","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"232","varname":"IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks","format":null},"22":{"settings":{"datalist":"IcingaCheckCheckSum Algorithm","behavior":"strict","data_type":"string"},"description":"Used to specify a string, which contains the algorithm to be used.\n\nAllowed algorithms: \u0027SHA1\u0027, \u0027SHA256\u0027, \u0027SHA384\u0027, \u0027SHA512\u0027, \u0027MD5\u0027","caption":"Algorithm","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"22","varname":"IcingaCheckCheckSum_String_Algorithm","format":null},"223":{"settings":{"visibility":"visible"},"description":"Allows to set Unknown partitions to Ok in case no metrics could be loaded.","caption":"SkipUnknown","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"223","varname":"IcingaCheckPartitionSpace_Switchparameter_SkipUnknown","format":null},"302":{"settings":{"visibility":"visible"},"description":"A primordial pool, also known as the \u0027available storage\u0027 pool is where storage capacity is drawn and returned in the\ncreation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to\ntrue if you also want to check Primordial StoragePools. Default to false.","caption":"IncludePrimordial","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"302","varname":"IcingaCheckStoragePool_Switchparameter_IncludePrimordial","format":null},"118":{"settings":{"visibility":"hidden"},"description":"Credentials to use for basic auth","caption":"Password","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"118","varname":"IcingaCheckHttpJsonResponse_Securestring_Password","format":null},"330":{"settings":{"visibility":"visible"},"description":"A critical threshold for the shares free space in either % or byte units, like \"20%:\" or \"50GB:\"\nPlease note that this value is decreasing over time, therefor you will have to use the plugin handler and add \":\" at the end\nof your input to check for \"current value \u003c threshold\" like in the previous example\n\nAllowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"330","varname":"IcingaCheckUNCPath_Object_Critical","format":null},"40":{"settings":{"visibility":"visible"},"description":"Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold.\n\nFollows the Icinga plugin threshold guidelines.","caption":"WarningTotalSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"40","varname":"IcingaCheckDirectory_Object_WarningTotalSize","format":null},"117":{"settings":{"visibility":"visible"},"description":"Credentials to use for basic auth","caption":"Username","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"117","varname":"IcingaCheckHttpJsonResponse_String_Username","format":null},"124":{"settings":{"visibility":"visible"},"description":"Disables SSL verification and allows the connection to endpoints with self-signed certificates as example","caption":"IgnoreSSL","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"124","varname":"IcingaCheckHttpJsonResponse_Switchparameter_IgnoreSSL","format":null},"148":{"settings":{"datalist":"IcingaCheckHTTPStatus Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"148","varname":"IcingaCheckHTTPStatus_Int32_Verbosity","format":null},"135":{"settings":{"visibility":"visible"},"description":"Used to specify the timeout in seconds of the webrequest as integer. The default is 10 for 10 seconds.","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"135","varname":"IcingaCheckHTTPStatus_Int32_Timeout","format":null},"290":{"settings":{"visibility":"visible"},"description":"Used to specify TotalUsed Warning threshold in GB.","caption":"TotalUsedWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"290","varname":"IcingaCheckStoragePool_Object_TotalUsedWarning","format":null},"181":{"settings":{"visibility":"visible"},"description":"Critical threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface.","caption":"PacketReceivedSecCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"181","varname":"IcingaCheckNetworkInterface_Object_PacketReceivedSecCrit","format":null},"343":{"settings":{"visibility":"visible"},"description":"The critical threshold for the rollup update count on the Windows machine","caption":"CriticalRollups","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"343","varname":"IcingaCheckUpdates_Object_CriticalRollups","format":null},"352":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"352","varname":"IcingaCheckUptime_String_ThresholdInterval","format":null},"106":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"106","varname":"IcingaCheckEventlog_Switchparameter_NoPerfData","format":null},"322":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"322","varname":"IcingaCheckTimeSync_Switchparameter_NoPerfData","format":null},"98":{"settings":{"visibility":"visible"},"description":"Used to specify an array of messages within the eventlog to be included.","caption":"IncludeMessage","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"98","varname":"IcingaCheckEventlog_Array_IncludeMessage","format":null},"333":{"settings":{"visibility":"visible"},"description":"Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead","caption":"CheckUsedSpace","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"333","varname":"IcingaCheckUNCPath_Switchparameter_CheckUsedSpace","format":null},"234":{"settings":{"datalist":"IcingaCheckPerfCounter Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"234","varname":"IcingaCheckPerfCounter_Int32_Verbosity","format":null},"225":{"settings":{"datalist":"IcingaCheckPartitionSpace Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"225","varname":"IcingaCheckPartitionSpace_Int32_Verbosity","format":null},"216":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"216","varname":"IcingaCheckPartitionSpace_String_ThresholdInterval","format":null},"300":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksWarning","behavior":"strict","data_type":"string"},"description":"Warning threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"300","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksWarning","format":null},"213":{"settings":{"datalist":"IcingaCheckNLA Profile","behavior":"strict","data_type":"string"},"description":"Used to specify the profile to check. Available profiles are \u0027DomainAuthenticated\u0027, \u0027Public\u0027, \u0027Private\u0027","caption":"Profile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"213","varname":"IcingaCheckNLA_String_Profile","format":null},"119":{"settings":{"visibility":"visible"},"description":"Timeout in seconds before the http request is aborted. Defaults to 30","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"119","varname":"IcingaCheckHttpJsonResponse_Int32_Timeout","format":null},"73":{"settings":{"visibility":"visible"},"description":"Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations.","caption":"DiskReadByteSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"73","varname":"IcingaCheckDiskHealth_Object_DiskReadByteSecWarning","format":null},"62":{"settings":{"visibility":"visible"},"description":"Specify the index id of disks you want to exclude from checks. Example 0, 1","caption":"ExcludeDisk","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"62","varname":"IcingaCheckDiskHealth_Array_ExcludeDisk","format":null},"147":{"settings":{"visibility":"visible"},"description":"Used to disable PerfData.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"147","varname":"IcingaCheckHTTPStatus_Switchparameter_NoPerfData","format":null},"360":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"360","varname":"IcingaCheckUsedPartitionSpace_Array_Include","format":null},"156":{"settings":{"visibility":"visible"},"description":"The size of each packet send to the target host","caption":"PacketSize","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"156","varname":"IcingaCheckICMP_Int32_PacketSize","format":null},"132":{"settings":{"visibility":"visible"},"description":"Used to specify the URL of the host to check http as string. Use \u0027http://\u0027 or \u0027https://\u0027 to actively chose a protocol. Likewise \u0027:80\u0027 or any other port number to specify a port, etc.","caption":"Url","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"132","varname":"IcingaCheckHTTPStatus_Array_Url","format":null},"165":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"165","varname":"IcingaCheckMemory_Object_PageFileCritical","format":null},"174":{"settings":{"datalist":"IcingaCheckMPIO Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"174","varname":"IcingaCheckMPIO_Object_Verbosity","format":null},"208":{"settings":{"datalist":"IcingaCheckNetworkInterface IfConnectionStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the state of the network adapter connection to the network.","caption":"IfConnectionStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"208","varname":"IcingaCheckNetworkInterface_Object_IfConnectionStatusCrit","format":null},"280":{"settings":{"datalist":"IcingaCheckService Status","behavior":"strict","data_type":"string"},"description":"Status for the specified service or services to check against.","caption":"Status","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"280","varname":"IcingaCheckService_String_Status","format":null},"324":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"324","varname":"IcingaCheckUNCPath_String_ThresholdInterval","format":null},"107":{"settings":{"datalist":"IcingaCheckEventlog Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"107","varname":"IcingaCheckEventlog_Int32_Verbosity","format":null},"321":{"settings":{"visibility":"visible"},"description":"Ignores the W32Time service during check execution and will not throw warning or critical in case the service is not running","caption":"IgnoreService","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"321","varname":"IcingaCheckTimeSync_Switchparameter_IgnoreService","format":null},"86":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"86","varname":"IcingaCheckDiskHealth_Switchparameter_NoPerfData","format":null},"312":{"settings":{"datalist":"IcingaCheckTCP Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"312","varname":"IcingaCheckTCP_Object_Verbosity","format":null},"219":{"settings":{"visibility":"visible"},"description":"Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.\ne.g. \u0027C:\u0027,\u0027D:\u0027","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"219","varname":"IcingaCheckPartitionSpace_Array_Include","format":null},"275":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"275","varname":"IcingaCheckScheduledTask_Switchparameter_NoPerfData","format":null},"264":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"264","varname":"IcingaCheckScheduledTask_String_ThresholdInterval","format":null},"79":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgReadSecWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"79","varname":"IcingaCheckDiskHealth_Object_DiskAvgReadSecWarning","format":null},"72":{"settings":{"visibility":"visible"},"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.","caption":"DiskQueueAvgLenCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"72","varname":"IcingaCheckDiskHealth_Object_DiskQueueAvgLenCritical","format":null},"141":{"settings":{"visibility":"visible"},"description":"Used to specify an array of regex-match-strings to match against the content of the webrequest response.","caption":"Content","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"141","varname":"IcingaCheckHTTPStatus_Array_Content","format":null},"63":{"settings":{"visibility":"visible"},"description":"Specify the partition drive letters for disks to include for checks. Example C:, D:","caption":"IncludePartition","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"63","varname":"IcingaCheckDiskHealth_Array_IncludePartition","format":null},"249":{"settings":{"visibility":"visible"},"description":"Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalCPUCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"249","varname":"IcingaCheckProcess_Object_TotalCPUCritical","format":null},"163":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"163","varname":"IcingaCheckMemory_Object_Critical","format":null},"258":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"258","varname":"IcingaCheckProcessCount_String_ThresholdInterval","format":null},"206":{"settings":{"datalist":"IcingaCheckNetworkInterface IfOperationalStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the current network interface operational status.","caption":"IfOperationalStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"206","varname":"IcingaCheckNetworkInterface_Object_IfOperationalStatusCrit","format":null},"175":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"175","varname":"IcingaCheckNetworkInterface_String_ThresholdInterval","format":null},"139":{"settings":{"visibility":"hidden"},"description":"Used to specify a proxy password as securestring to authenticate with. Use with: -ProxyUsername \u0026 -ProxyServer","caption":"ProxyPassword","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"139","varname":"IcingaCheckHTTPStatus_Securestring_ProxyPassword","format":null},"110":{"settings":{"visibility":"visible"},"description":"Used to specify whether the firewall profiles should be enabled or disabled.\n\n-Enabled $TRUE translates to enabled, while not being specified translates to disabled.","caption":"Enabled","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"110","varname":"IcingaCheckFirewall_Switchparameter_Enabled","format":null},"101":{"settings":{"visibility":"visible"},"description":"Used to specify an array of message sources within the eventlog to be excluded.","caption":"ExcludeSource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"101","varname":"IcingaCheckEventlog_Array_ExcludeSource","format":null},"2":{"settings":{"datalist":"PowerShell ExecutionPolicies","behavior":"strict","data_type":"string"},"description":"Defines with which Execution Policy the PowerShell is started","caption":"PowerShell Execution Policy","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"2","varname":"IcingaPowerShellBase_String_ExecutionPolicy","format":null},"318":{"settings":{"visibility":"visible"},"description":"Seconds before connection times out (default: 10)","caption":"Timeout","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"318","varname":"IcingaCheckTimeSync_Int32_Timeout","format":null},"274":{"settings":{"visibility":"visible"},"description":"By default every task which did not exit with 0 will be handled as critical. If you set this flag,\nthe exit code of the task is ignored during check execution","caption":"IgnoreLastRunTime","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"274","varname":"IcingaCheckScheduledTask_Switchparameter_IgnoreLastRunTime","format":null},"265":{"settings":{"visibility":"visible"},"description":"A list of tasks to check for. If your tasks contain spaces, wrap them around a \u0027 to ensure they are\nproperly handled as string","caption":"TaskName","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"265","varname":"IcingaCheckScheduledTask_Array_TaskName","format":null},"348":{"settings":{"visibility":"visible"},"description":"Checks if there is a pending reboot on the system to finalize Windows Updates and returns\nwarning if one is pending","caption":"WarnOnReboot","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"348","varname":"IcingaCheckUpdates_Switchparameter_WarnOnReboot","format":null},"256":{"settings":{"visibility":"visible"},"description":"Set this argument to not write any performance data","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"256","varname":"IcingaCheckProcess_Switchparameter_NoPerfData","format":null},"78":{"settings":{"visibility":"visible"},"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, ...)","caption":"DiskAvgTransSecCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"78","varname":"IcingaCheckDiskHealth_Object_DiskAvgTransSecCritical","format":null},"247":{"settings":{"visibility":"visible"},"description":"Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded.\nSupports % unit to compare the total process memory usage for the entire memory space available.\n\nFollows the Icinga Plugin threshold guidelines.","caption":"TotalMemoryCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"247","varname":"IcingaCheckProcess_Object_TotalMemoryCritical","format":null},"69":{"settings":{"visibility":"visible"},"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.\nIt also includes requests in service at the time of the collection. This is a instantaneous snapshot, not an average over the\ntime interval. Multi-spindle disk devices can have multiple requests that are active at one time, but other concurrent requests\nare awaiting service. This counter might reflect a transitory high or low queue length, but if there is a sustained load on the\ndisk drive, it is likely that this will be consistently high. Requests experience delays proportional to the length of this queue\nminus the number of spindles on the disks. For good performance, this difference should average less than two.","caption":"DiskQueueLenWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"69","varname":"IcingaCheckDiskHealth_Object_DiskQueueLenWarning","format":null},"299":{"settings":{"datalist":"IcingaCheckStoragePool HealthStatusCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels.","caption":"HealthStatusCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"299","varname":"IcingaCheckStoragePool_Object_HealthStatusCritical","format":null},"151":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for the response time in ms","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"151","varname":"IcingaCheckICMP_Object_Critical","format":null},"301":{"settings":{"datalist":"IcingaCheckStoragePool RetireMissingPhysicalDisksCritical","behavior":"strict","data_type":"string"},"description":"Critical threshold RetireMissingPhysicalDisks specifies whether the storage subsystem will automatically retire physical disks that are missing from this\nstorage pool and replace them with hot spares or other physical disks that are available in the storage pool.","caption":"RetireMissingPhysicalDisksCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"301","varname":"IcingaCheckStoragePool_Object_RetireMissingPhysicalDisksCritical","format":null},"162":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"162","varname":"IcingaCheckMemory_Object_Warning","format":null},"173":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"173","varname":"IcingaCheckMPIO_Switchparameter_NoPerfData","format":null},"297":{"settings":{"visibility":"visible"},"description":"Critical threshold for StoragePool IsPowerProtected is, whether the disks in this pool are able to tolerate power loss without data loss.\nFor example, they automatically flush volatile buffers to non-volatile media after external power is disconnected.","caption":"IsPowerProtectedCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"297","varname":"IcingaCheckStoragePool_Object_IsPowerProtectedCritical","format":null},"210":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"210","varname":"IcingaCheckNetworkInterface_Switchparameter_NoPerfData","format":null},"286":{"settings":{"visibility":"visible"},"description":"With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system.","caption":"IncludeStoragePool","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"286","varname":"IcingaCheckStoragePool_Array_IncludeStoragePool","format":null},"201":{"settings":{"datalist":"IcingaCheckNetworkInterface IfTeamStatusCrit","behavior":"strict","data_type":"string"},"description":"Critical threshold for the Status of a network Interface Teams.","caption":"IfTeamStatusCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"201","varname":"IcingaCheckNetworkInterface_Object_IfTeamStatusCrit","format":null},"153":{"settings":{"visibility":"visible"},"description":"Threshold on which the plugin will return \u0027CRITICAL\u0027 for possible packet loss in %","caption":"CriticalPl","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"153","varname":"IcingaCheckICMP_Object_CriticalPl","format":null}}} diff --git a/config/icinga/Invoke-IcingaCheckBiosSerial.conf b/config/icinga/Invoke-IcingaCheckBiosSerial.conf index 19c921d0..fc82c4fa 100644 --- a/config/icinga/Invoke-IcingaCheckBiosSerial.conf +++ b/config/icinga/Invoke-IcingaCheckBiosSerial.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckBiosSerial" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckBiosSerial' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckBiosSerial_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckCPU.conf b/config/icinga/Invoke-IcingaCheckCPU.conf index 708e026e..03c48211 100644 --- a/config/icinga/Invoke-IcingaCheckCPU.conf +++ b/config/icinga/Invoke-IcingaCheckCPU.conf @@ -2,9 +2,10 @@ object CheckCommand "Invoke-IcingaCheckCPU" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCPU' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckCPU_Int32_Verbosity$" + order = 6 } "-SocketFilter" = { description = "Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id's will not be evaluated by the plugin." @@ -47,11 +48,6 @@ object CheckCommand "Invoke-IcingaCheckCPU" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckCPU_Int32_Verbosity$" - order = 6 - } "-Core" = { set_if = {{ var str = macro("$IcingaCheckCPU_String_Core$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckCertificate.conf b/config/icinga/Invoke-IcingaCheckCertificate.conf index 731eeb50..b9d2fd29 100644 --- a/config/icinga/Invoke-IcingaCheckCertificate.conf +++ b/config/icinga/Invoke-IcingaCheckCertificate.conf @@ -49,10 +49,6 @@ object CheckCommand "Invoke-IcingaCheckCertificate" { value = "$IcingaCheckCertificate_Object_WarningEnd$" order = 3 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCertificate' " - order = 0 - } "-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$" diff --git a/config/icinga/Invoke-IcingaCheckCheckSum.conf b/config/icinga/Invoke-IcingaCheckCheckSum.conf index dc0de46c..855dedb7 100644 --- a/config/icinga/Invoke-IcingaCheckCheckSum.conf +++ b/config/icinga/Invoke-IcingaCheckCheckSum.conf @@ -2,17 +2,17 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCheckSum' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckCheckSum_Int32_Verbosity$" + order = 5 } - "-Algorithm" = { + "-Path" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Path$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a string, which contains the algorithm to be used. Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5'" value = {{ - var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); + var str = macro("$IcingaCheckCheckSum_String_Path$"); var argLen = len(str); if (argLen == 0) { return; @@ -22,7 +22,7 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 3 + order = 2 } "-ThresholdInterval" = { set_if = {{ @@ -42,17 +42,13 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckCheckSum_Int32_Verbosity$" - order = 5 - } - "-Hash" = { + "-Algorithm" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Hash$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); if (len(str) == 0) { return false; }; return true; }} + description = "Used to specify a string, which contains the algorithm to be used. Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5'" value = {{ - var str = macro("$IcingaCheckCheckSum_String_Hash$"); + var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); var argLen = len(str); if (argLen == 0) { return; @@ -62,18 +58,14 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 4 - } - "-NoPerfData" = { - set_if = "$IcingaCheckCheckSum_Switchparameter_NoPerfData$" - order = 99 + order = 3 } - "-Path" = { + "-Hash" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Path$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Hash$"); if (len(str) == 0) { return false; }; return true; }} value = {{ - var str = macro("$IcingaCheckCheckSum_String_Path$"); + var str = macro("$IcingaCheckCheckSum_String_Hash$"); var argLen = len(str); if (argLen == 0) { return; @@ -83,7 +75,11 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 2 + order = 4 + } + "-NoPerfData" = { + set_if = "$IcingaCheckCheckSum_Switchparameter_NoPerfData$" + order = 99 } } vars.IcingaCheckCheckSum_Switchparameter_NoPerfData = false diff --git a/config/icinga/Invoke-IcingaCheckDirectory.conf b/config/icinga/Invoke-IcingaCheckDirectory.conf index 436eacce..a4be115f 100644 --- a/config/icinga/Invoke-IcingaCheckDirectory.conf +++ b/config/icinga/Invoke-IcingaCheckDirectory.conf @@ -2,18 +2,13 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { import "PowerShell Base" arguments += { - "-CriticalLargestFile" = { - description = "Checks the largest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalLargestFile$" - order = 11 - } - "-FileSizeGreaterThan" = { + "-Path" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_Path$"); if (len(str) == 0) { return false; }; return true; }} - 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." + description = "Used to specify a path. e.g. 'C:\\Users\\Icinga\\Downloads'" value = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); + var str = macro("$IcingaCheckDirectory_String_Path$"); var argLen = len(str); if (argLen == 0) { return; @@ -23,29 +18,24 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 20 - } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckDirectory' " - order = 0 + order = 2 } - "-WarningAverageFile" = { - description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningAverageFile$" - order = 12 + "-NoPerfData" = { + set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$" + order = 99 } - "-WarningLargestFile" = { - description = "Checks the largest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningLargestFile$" - order = 10 + "-CriticalTotalSize" = { + description = "Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalTotalSize$" + order = 7 } - "-CreationYoungerThan" = { + "-CreationOlderThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); + var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -55,20 +45,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 19 - } - "-Warning" = { - description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_Warning$" - order = 5 + order = 18 } - "-ThresholdInterval" = { + "-FileSizeGreaterThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); + var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -78,20 +63,20 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 100 + order = 20 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckDirectory_Int32_Verbosity$" order = 22 } - "-ChangeTimeEqual" = { + "-ChangeOlderThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); + var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -101,29 +86,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 14 - } - "-CountFolderAsFile" = { - set_if = "$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$" - order = 99 - } - "-WarningTotalSize" = { - description = "Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningTotalSize$" - order = 6 - } - "-CriticalSmallestFile" = { - description = "Checks the smallest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalSmallestFile$" - order = 9 + order = 16 } - "-Path" = { + "-ChangeYoungerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_Path$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a path. e.g. 'C:\\Users\\Icinga\\Downloads'" + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_Path$"); + var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -133,19 +104,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 2 - } - "-NoPerfData" = { - set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$" - order = 99 + order = 15 } - "-ChangeOlderThan" = { + "-FileSizeSmallerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); + var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -155,30 +122,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 16 - } - "-CriticalTotalSize" = { - description = "Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalTotalSize$" - order = 7 - } - "-Critical" = { - description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_Critical$" - order = 4 - } - "-CriticalAverageFile" = { - description = "Checks the average file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalAverageFile$" - order = 13 + order = 21 } - "-FileSizeSmallerThan" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - 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." + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); + var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -188,7 +140,7 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 21 + order = 100 } "-CreationTimeEqual" = { set_if = {{ @@ -208,6 +160,20 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { }} order = 17 } + "-CountFolderAsFile" = { + set_if = "$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$" + order = 99 + } + "-CriticalLargestFile" = { + description = "Checks the largest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalLargestFile$" + order = 11 + } + "-WarningSmallestFile" = { + description = "Checks the smallest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningSmallestFile$" + order = 8 + } "-FileNames" = { description = "Used to specify an array of filenames or expressions to match against results to filter for specific files. e.g '*.txt', '*.sql', finds all files ending with .txt and .sql" value = {{ @@ -231,18 +197,18 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { }} order = 3 } - "-WarningSmallestFile" = { - description = "Checks the smallest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningSmallestFile$" - order = 8 + "-Critical" = { + description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_Critical$" + order = 4 } - "-CreationOlderThan" = { + "-CreationYoungerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); + var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -252,15 +218,53 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 18 + order = 19 } - "-ChangeYoungerThan" = { + "-Recurse" = { + set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$" + order = 99 + } + "-WarningTotalSize" = { + description = "Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningTotalSize$" + order = 6 + } + "-WarningAverageFile" = { + description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningAverageFile$" + order = 12 + } + "-WarningLargestFile" = { + description = "Checks the largest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningLargestFile$" + order = 10 + } + "-Warning" = { + description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_Warning$" + order = 5 + } + "-CriticalSmallestFile" = { + description = "Checks the smallest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalSmallestFile$" + order = 9 + } + "-CriticalAverageFile" = { + description = "Checks the average file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalAverageFile$" + order = 13 + } + "-ShowFileList" = { + set_if = "$IcingaCheckDirectory_Switchparameter_ShowFileList$" + order = 99 + } + "-ChangeTimeEqual" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); + var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); var argLen = len(str); if (argLen == 0) { return; @@ -270,15 +274,7 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 15 - } - "-ShowFileList" = { - set_if = "$IcingaCheckDirectory_Switchparameter_ShowFileList$" - order = 99 - } - "-Recurse" = { - set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$" - order = 99 + order = 14 } } vars.IcingaCheckDirectory_Switchparameter_CountFolderAsFile = false diff --git a/config/icinga/Invoke-IcingaCheckDiskHealth.conf b/config/icinga/Invoke-IcingaCheckDiskHealth.conf index 2aa58854..8badc56b 100644 --- a/config/icinga/Invoke-IcingaCheckDiskHealth.conf +++ b/config/icinga/Invoke-IcingaCheckDiskHealth.conf @@ -7,10 +7,6 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$" order = 14 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command '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$" @@ -43,6 +39,10 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { }} order = 3 } + "-IgnoreReadOnlyDisks" = { + set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$" + order = 99 + } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckDiskHealth_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -61,11 +61,6 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { }} order = 100 } - "-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 - } "-IncludeDisk" = { description = "Specify the index id of disks you want to include for checks. Example 0, 1" value = {{ @@ -132,9 +127,10 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { value = "$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$" order = 9 } - "-IgnoreReadOnlyDisks" = { - set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$" - order = 99 + "-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, ...)" diff --git a/config/icinga/Invoke-IcingaCheckEventlog.conf b/config/icinga/Invoke-IcingaCheckEventlog.conf index 36cf7ba8..f37702ca 100644 --- a/config/icinga/Invoke-IcingaCheckEventlog.conf +++ b/config/icinga/Invoke-IcingaCheckEventlog.conf @@ -3,7 +3,7 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { arguments += { "-Before" = { - description = "Used to specify time data of which point the plugin should stop considering event logs. You can either use a fixed date and time like '2021/01/30 12:00:00', a fixed day '2021/01/30' or use more dynamic approaches like '1d', '10h' and so on. By using '2h' for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back further in time with the `-After` argument than the `-Before` argument. Allowed units: ms, s, m, h, d, w, M, y" + description = "Defines the end point on which timeframe the plugin will stop to read event log information. Using 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be used in combination with the '-After' argument. As example, you could provide '-After 6h' to start reading all eventlogs from the past 6 hours, and use '-Before 2h' to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours have been ignored. For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: '2024/01/01 12:00:00': Will stop reading eventlogs after the 1st January 2024 12:00 CET '2024/01/15': Will stop reading eventlogs after the 15th January 2024 00:00 CET '4h': Will ignore eventlogs of the past 4 hours '1d': Will ignore eventlogs of the past day (24 hours) Allowed units for time metrics: ms, s, m, h, d, w, M, y Example ``` Start of EventLog Plugin Execution v After 6h Before 2h v |-------------|------------------|------| 8:00 10:00 14:00 16:00 | Not fetched | Fetched | Not fetchhed```" value = "$IcingaCheckEventlog_Object_Before$" order = 16 } @@ -58,7 +58,7 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { order = 13 } "-After" = { - description = "Used to specify time data of which point the plugin should start to read event logs from. You can either use a fixed date and time like '2021/01/30 12:00:00', a fixed day '2021/01/30' or use more dynamic approaches like '1d', '10h' and so on. Allowed units: ms, s, m, h, d, w, M, y" + description = "Defines the starting point on which timeframe the plugin will start to read event log information. Using 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours. For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: '2024/01/01 12:00:00': Will start reading eventlogs after the 1st January 2024 12:00 CET '2024/01/15': Will start reading eventlogs after the 15th January 2024 00:00 CET '4h': Will read the past 4 hours '1d': Will read the past day (24 hours) Allowed units for time metrics: ms, s, m, h, d, w, M, y Example ``` Start of EventLog Plugin Execution v After 4h v |--------------------|-----------------| 10:00 12:00 16:00 | Not fetched | Fetched |```" value = "$IcingaCheckEventlog_Object_After$" order = 15 } @@ -103,10 +103,6 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { }} order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckEventlog' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckEventlog_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckFirewall.conf b/config/icinga/Invoke-IcingaCheckFirewall.conf index f7717316..4b3dce61 100644 --- a/config/icinga/Invoke-IcingaCheckFirewall.conf +++ b/config/icinga/Invoke-IcingaCheckFirewall.conf @@ -2,33 +2,11 @@ object CheckCommand "Invoke-IcingaCheckFirewall" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckFirewall' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckFirewall_Int32_Verbosity$" order = 3 } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } "-Profile" = { description = "Used to specify an array of profiles to check. Available profiles are 'Domain', 'Public', 'Private'" value = {{ @@ -52,6 +30,24 @@ object CheckCommand "Invoke-IcingaCheckFirewall" { }} order = 2 } + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 + } "-NoPerfData" = { set_if = "$IcingaCheckFirewall_Switchparameter_NoPerfData$" order = 99 diff --git a/config/icinga/Invoke-IcingaCheckHTTPStatus.conf b/config/icinga/Invoke-IcingaCheckHTTPStatus.conf index d2c8184a..b298d41b 100644 --- a/config/icinga/Invoke-IcingaCheckHTTPStatus.conf +++ b/config/icinga/Invoke-IcingaCheckHTTPStatus.conf @@ -96,10 +96,6 @@ object CheckCommand "Invoke-IcingaCheckHTTPStatus" { set_if = "$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$" order = 99 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckHTTPStatus' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckHTTPStatus_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckHttpJsonResponse.conf b/config/icinga/Invoke-IcingaCheckHttpJsonResponse.conf index db05c23f..810006f2 100644 --- a/config/icinga/Invoke-IcingaCheckHttpJsonResponse.conf +++ b/config/icinga/Invoke-IcingaCheckHttpJsonResponse.conf @@ -116,10 +116,6 @@ object CheckCommand "Invoke-IcingaCheckHttpJsonResponse" { }} order = 9 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckHttpJsonResponse' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckICMP.conf b/config/icinga/Invoke-IcingaCheckICMP.conf index d642d0b0..cbcdb931 100644 --- a/config/icinga/Invoke-IcingaCheckICMP.conf +++ b/config/icinga/Invoke-IcingaCheckICMP.conf @@ -2,19 +2,6 @@ object CheckCommand "Invoke-IcingaCheckICMP" { import "PowerShell Base" arguments += { - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckICMP_Int32_Verbosity$" - order = 9 - } - "-IPv4" = { - set_if = "$IcingaCheckICMP_Switchparameter_IPv4$" - order = 99 - } - "-NoPerfData" = { - set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$" - order = 99 - } "-WarningPl" = { description = "Threshold on which the plugin will return 'WARNING' for possible packet loss in %" value = "$IcingaCheckICMP_Object_WarningPl$" @@ -38,10 +25,6 @@ object CheckCommand "Invoke-IcingaCheckICMP" { }} order = 6 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckICMP' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckICMP_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -60,28 +43,41 @@ object CheckCommand "Invoke-IcingaCheckICMP" { }} order = 100 } - "-Critical" = { - description = "Threshold on which the plugin will return 'CRITICAL' for the response time in ms" - value = "$IcingaCheckICMP_Object_Critical$" - order = 3 - } - "-PacketSize" = { - description = "The size of each packet send to the target host" - value = "$IcingaCheckICMP_Int32_PacketSize$" - 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + 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 + } + "-NoPerfData" = { + set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$" + order = 99 + } + "-PacketSize" = { + description = "The size of each packet send to the target host" + value = "$IcingaCheckICMP_Int32_PacketSize$" + order = 8 + } "-Warning" = { description = "Threshold on which the plugin will return 'WARNING' for the response time in ms" value = "$IcingaCheckICMP_Object_Warning$" order = 2 } - "-IPv6" = { - set_if = "$IcingaCheckICMP_Switchparameter_IPv6$" + "-Critical" = { + description = "Threshold 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" = { diff --git a/config/icinga/Invoke-IcingaCheckMPIO.conf b/config/icinga/Invoke-IcingaCheckMPIO.conf index 153abf33..fffd6d79 100644 --- a/config/icinga/Invoke-IcingaCheckMPIO.conf +++ b/config/icinga/Invoke-IcingaCheckMPIO.conf @@ -2,15 +2,16 @@ object CheckCommand "Invoke-IcingaCheckMPIO" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckMPIO' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckMPIO_Object_Verbosity$" order = 4 } + "-Warning" = { + description = "Used to specify a Warning threshold for the number of path defined. Use for example 8: for alerting for less than 8 MPIO paths available" + value = "$IcingaCheckMPIO_Object_Warning$" + order = 2 + } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckMPIO_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -29,11 +30,6 @@ object CheckCommand "Invoke-IcingaCheckMPIO" { }} order = 100 } - "-Warning" = { - description = "Used to specify a Warning threshold for the number of path defined. Use for example 8: for alerting for less than 8 MPIO paths available" - value = "$IcingaCheckMPIO_Object_Warning$" - order = 2 - } "-Critical" = { description = "Used to specify a Critical threshold for the number of path defined. Use for example 6: for alerting for less than 6 MPIO paths available" value = "$IcingaCheckMPIO_Object_Critical$" diff --git a/config/icinga/Invoke-IcingaCheckMemory.conf b/config/icinga/Invoke-IcingaCheckMemory.conf index a420f09a..01a0ac29 100644 --- a/config/icinga/Invoke-IcingaCheckMemory.conf +++ b/config/icinga/Invoke-IcingaCheckMemory.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckMemory" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckMemory' " - order = 0 - } "-Verbosity" = { value = "$IcingaCheckMemory_Int32_Verbosity$" order = 8 diff --git a/config/icinga/Invoke-IcingaCheckNLA.conf b/config/icinga/Invoke-IcingaCheckNLA.conf index b02df45a..60da032e 100644 --- a/config/icinga/Invoke-IcingaCheckNLA.conf +++ b/config/icinga/Invoke-IcingaCheckNLA.conf @@ -2,9 +2,10 @@ object CheckCommand "Invoke-IcingaCheckNLA" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckNLA' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckNLA_Int32_Verbosity$" + order = 3 } "-Profile" = { set_if = {{ @@ -65,11 +66,6 @@ object CheckCommand "Invoke-IcingaCheckNLA" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckNLA_Int32_Verbosity$" - order = 3 - } } vars.ifw_api_arguments = { "Profile" = { diff --git a/config/icinga/Invoke-IcingaCheckNetworkInterface.conf b/config/icinga/Invoke-IcingaCheckNetworkInterface.conf index bb88d080..0335a787 100644 --- a/config/icinga/Invoke-IcingaCheckNetworkInterface.conf +++ b/config/icinga/Invoke-IcingaCheckNetworkInterface.conf @@ -7,10 +7,6 @@ object CheckCommand "Invoke-IcingaCheckNetworkInterface" { value = "$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$" order = 8 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckNetworkInterface' " - order = 0 - } "-NoPerfData" = { set_if = "$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$" order = 99 diff --git a/config/icinga/Invoke-IcingaCheckPartitionSpace.conf b/config/icinga/Invoke-IcingaCheckPartitionSpace.conf index 76bf31bf..8ab8630b 100644 --- a/config/icinga/Invoke-IcingaCheckPartitionSpace.conf +++ b/config/icinga/Invoke-IcingaCheckPartitionSpace.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckPartitionSpace" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckPartitionSpace' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckPartitionSpace_Int32_Verbosity$" diff --git a/config/icinga/Invoke-IcingaCheckPerfcounter.conf b/config/icinga/Invoke-IcingaCheckPerfcounter.conf index 586dd225..8c87da39 100644 --- a/config/icinga/Invoke-IcingaCheckPerfcounter.conf +++ b/config/icinga/Invoke-IcingaCheckPerfcounter.conf @@ -30,19 +30,46 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { value = "$IcingaCheckPerfCounter_Int32_Verbosity$" order = 7 } + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 + } + "-IgnoreEmptyChecks" = { + set_if = "$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$" + order = 99 + } "-Warning" = { description = "Used to specify a Warning threshold." value = "$IcingaCheckPerfCounter_Object_Warning$" order = 3 } - "-IgnoreEmptyChecks" = { - set_if = "$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$" + "-Critical" = { + description = "Used to specify a Critical threshold." + value = "$IcingaCheckPerfCounter_Object_Critical$" + order = 4 + } + "-NoPerfData" = { + set_if = "$IcingaCheckPerfCounter_Switchparameter_NoPerfData$" order = 99 } - "-ExcludeCounter" = { - description = "An [array] of strings to filter for, excluding the provided counters. Allows wildcard '*' usage" + "-IncludeCounter" = { + description = "An [array] of strings to filter for, only including the provided counters. Allows wildcard '*' usage" value = {{ - var arr = macro("$IcingaCheckPerfCounter_Array_ExcludeCounter$"); + var arr = macro("$IcingaCheckPerfCounter_Array_IncludeCounter$"); if (len(arr) == 0) { return "@()"; } @@ -60,21 +87,12 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { ).join(","); return "@(" + psarr + ")"; }} - order = 6 - } - "-Critical" = { - description = "Used to specify a Critical threshold." - value = "$IcingaCheckPerfCounter_Object_Critical$" - order = 4 - } - "-NoPerfData" = { - set_if = "$IcingaCheckPerfCounter_Switchparameter_NoPerfData$" - order = 99 + order = 5 } - "-IncludeCounter" = { - description = "An [array] of strings to filter for, only including the provided counters. Allows wildcard '*' usage" + "-ExcludeCounter" = { + description = "An [array] of strings to filter for, excluding the provided counters. Allows wildcard '*' usage" value = {{ - var arr = macro("$IcingaCheckPerfCounter_Array_IncludeCounter$"); + var arr = macro("$IcingaCheckPerfCounter_Array_ExcludeCounter$"); if (len(arr) == 0) { return "@()"; } @@ -92,29 +110,7 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { ).join(","); return "@(" + psarr + ")"; }} - order = 5 - } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckPerfCounter' " - order = 0 + order = 6 } } vars.IcingaCheckPerfCounter_Switchparameter_NoPerfData = false diff --git a/config/icinga/Invoke-IcingaCheckProcess.conf b/config/icinga/Invoke-IcingaCheckProcess.conf index 48d38a6d..0f0cbbca 100644 --- a/config/icinga/Invoke-IcingaCheckProcess.conf +++ b/config/icinga/Invoke-IcingaCheckProcess.conf @@ -59,10 +59,6 @@ object CheckCommand "Invoke-IcingaCheckProcess" { value = "$IcingaCheckProcess_Object_TotalMemoryWarning$" order = 12 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckProcess' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckProcess_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckProcessCount.conf b/config/icinga/Invoke-IcingaCheckProcessCount.conf index 5b4aa738..4a2b15e5 100644 --- a/config/icinga/Invoke-IcingaCheckProcessCount.conf +++ b/config/icinga/Invoke-IcingaCheckProcessCount.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckProcessCount" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckProcessCount' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckProcessCount_Int32_Verbosity$" diff --git a/config/icinga/Invoke-IcingaCheckScheduledTask.conf b/config/icinga/Invoke-IcingaCheckScheduledTask.conf index 74a93156..bcacc6e5 100644 --- a/config/icinga/Invoke-IcingaCheckScheduledTask.conf +++ b/config/icinga/Invoke-IcingaCheckScheduledTask.conf @@ -42,10 +42,6 @@ object CheckCommand "Invoke-IcingaCheckScheduledTask" { set_if = "$IcingaCheckScheduledTask_Switchparameter_NoPerfData$" order = 99 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckScheduledTask' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckScheduledTask_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckService.conf b/config/icinga/Invoke-IcingaCheckService.conf index dfe72965..ed8dc64f 100644 --- a/config/icinga/Invoke-IcingaCheckService.conf +++ b/config/icinga/Invoke-IcingaCheckService.conf @@ -2,9 +2,28 @@ object CheckCommand "Invoke-IcingaCheckService" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckService' " - order = 0 + "-FilterStartupType" = { + description = "Allows to include only services with a specific startup type inside the monitoring, in case you check for a list of specific services by using `-Service`" + value = {{ + var arr = macro("$IcingaCheckService_Array_FilterStartupType$"); + if (len(arr) == 0) { + return "@()"; + } + var psarr = arr.map( + x => if (typeof(x) == String) { + var argLen = len(x); + if (argLen != 0 && x.substr(0,1) == "'" && x.substr(argLen - 1, argLen) == "'") { + x; + } else { + "'" + x + "'"; + } + } else { + x; + } + ).join(","); + return "@(" + psarr + ")"; + }} + order = 5 } "-MitigateUnknown" = { set_if = "$IcingaCheckService_Switchparameter_MitigateUnknown$" @@ -33,29 +52,6 @@ object CheckCommand "Invoke-IcingaCheckService" { value = "$IcingaCheckService_Int32_Verbosity$" order = 6 } - "-FilterStartupType" = { - description = "Allows to include only services with a specific startup type inside the monitoring, in case you check for a list of specific services by using `-Service`" - value = {{ - var arr = macro("$IcingaCheckService_Array_FilterStartupType$"); - if (len(arr) == 0) { - return "@()"; - } - var psarr = arr.map( - x => if (typeof(x) == String) { - var argLen = len(x); - if (argLen != 0 && x.substr(0,1) == "'" && x.substr(argLen - 1, argLen) == "'") { - x; - } else { - "'" + x + "'"; - } - } else { - x; - } - ).join(","); - return "@(" + psarr + ")"; - }} - order = 5 - } "-Status" = { set_if = {{ var str = macro("$IcingaCheckService_String_Status$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckStoragePool.conf b/config/icinga/Invoke-IcingaCheckStoragePool.conf index e8ebf969..f3c66ce0 100644 --- a/config/icinga/Invoke-IcingaCheckStoragePool.conf +++ b/config/icinga/Invoke-IcingaCheckStoragePool.conf @@ -36,10 +36,6 @@ object CheckCommand "Invoke-IcingaCheckStoragePool" { value = "$IcingaCheckStoragePool_Object_FreeSpaceWarning$" order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckStoragePool' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckStoragePool_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; diff --git a/config/icinga/Invoke-IcingaCheckTCP.conf b/config/icinga/Invoke-IcingaCheckTCP.conf index 620b71ab..3afdd95d 100644 --- a/config/icinga/Invoke-IcingaCheckTCP.conf +++ b/config/icinga/Invoke-IcingaCheckTCP.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckTCP" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckTCP' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckTCP_Object_Verbosity$" diff --git a/config/icinga/Invoke-IcingaCheckTimeSync.conf b/config/icinga/Invoke-IcingaCheckTimeSync.conf index 105ef98c..4da02103 100644 --- a/config/icinga/Invoke-IcingaCheckTimeSync.conf +++ b/config/icinga/Invoke-IcingaCheckTimeSync.conf @@ -2,37 +2,51 @@ object CheckCommand "Invoke-IcingaCheckTimeSync" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckTimeSync' " - order = 0 + "-Port" = { + description = "Port number (default: 123)" + value = "$IcingaCheckTimeSync_Int32_Port$" + order = 7 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" 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 + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 } "-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 } "-IgnoreService" = { set_if = "$IcingaCheckTimeSync_Switchparameter_IgnoreService$" order = 99 } - "-NoPerfData" = { - set_if = "$IcingaCheckTimeSync_Switchparameter_NoPerfData$" - order = 99 + "-Warning" = { + description = "Used to specify a offset Warning threshold e.g 10ms or 0.01s" + value = "$IcingaCheckTimeSync_Object_Warning$" + order = 4 } "-Critical" = { description = "Used to specify a offset Critical threshold e.g 20ms or 0.02s." @@ -66,24 +80,6 @@ object CheckCommand "Invoke-IcingaCheckTimeSync" { set_if = "$IcingaCheckTimeSync_Switchparameter_IPV4$" order = 99 } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } } vars.IcingaCheckTimeSync_Switchparameter_IPV4 = false vars.IcingaCheckTimeSync_Switchparameter_NoPerfData = false diff --git a/config/icinga/Invoke-IcingaCheckUNCPath.conf b/config/icinga/Invoke-IcingaCheckUNCPath.conf index 31383dba..e54df138 100644 --- a/config/icinga/Invoke-IcingaCheckUNCPath.conf +++ b/config/icinga/Invoke-IcingaCheckUNCPath.conf @@ -2,6 +2,11 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { import "PowerShell Base" arguments += { + "-WarningTotal" = { + description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_WarningTotal$" + order = 8 + } "-Path" = { set_if = {{ var str = macro("$IcingaCheckUNCPath_String_Path$"); if (len(str) == 0) { return false; }; return true; @@ -20,13 +25,13 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { }} order = 2 } - "-DisplayAlias" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - description = "Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value instead of shorten the output and make it more visual appealing." + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); + var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -36,33 +41,44 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 5 + order = 100 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUNCPath_Object_Verbosity$" order = 10 } - "-NoPerfData" = { - set_if = "$IcingaCheckUNCPath_Switchparameter_NoPerfData$" - order = 99 + "-CriticalTotal" = { + description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_CriticalTotal$" + order = 9 } "-Password" = { description = "The password to authenticate the given user for. Has to be a secure string" value = "(ConvertTo-IcingaSecureString '$IcingaCheckUNCPath_Securestring_Password$')" order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUNCPath' " - order = 0 + "-Warning" = { + description = "A warning threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_Warning$" + order = 6 } - "-ThresholdInterval" = { + "-Critical" = { + description = "A critical threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_Critical$" + order = 7 + } + "-NoPerfData" = { + set_if = "$IcingaCheckUNCPath_Switchparameter_NoPerfData$" + order = 99 + } + "-User" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_User$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + description = "Provide a username and/or domain to run this check for. The format can either be 'domain\\user' or 'domain@user'" value = {{ - var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); + var str = macro("$IcingaCheckUNCPath_String_User$"); var argLen = len(str); if (argLen == 0) { return; @@ -72,15 +88,19 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 100 + order = 3 } - "-User" = { + "-CheckUsedSpace" = { + set_if = "$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$" + order = 99 + } + "-DisplayAlias" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_User$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); if (len(str) == 0) { return false; }; return true; }} - description = "Provide a username and/or domain to run this check for. The format can either be 'domain\\user' or 'domain@user'" + description = "Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value instead of shorten the output and make it more visual appealing." value = {{ - var str = macro("$IcingaCheckUNCPath_String_User$"); + var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); var argLen = len(str); if (argLen == 0) { return; @@ -90,31 +110,7 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 3 - } - "-Critical" = { - description = "A critical threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_Critical$" - order = 7 - } - "-WarningTotal" = { - description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_WarningTotal$" - order = 8 - } - "-Warning" = { - description = "A warning threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_Warning$" - order = 6 - } - "-CheckUsedSpace" = { - set_if = "$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$" - order = 99 - } - "-CriticalTotal" = { - description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_CriticalTotal$" - order = 9 + order = 5 } } vars.IcingaCheckUNCPath_Switchparameter_CheckUsedSpace = false diff --git a/config/icinga/Invoke-IcingaCheckUpdates.conf b/config/icinga/Invoke-IcingaCheckUpdates.conf index d5dfd909..863e3a06 100644 --- a/config/icinga/Invoke-IcingaCheckUpdates.conf +++ b/config/icinga/Invoke-IcingaCheckUpdates.conf @@ -25,10 +25,6 @@ object CheckCommand "Invoke-IcingaCheckUpdates" { value = "$IcingaCheckUpdates_Object_CriticalOther$" order = 12 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUpdates' " - order = 0 - } "-WarningDefender" = { description = "The warning threshold for the Microsoft Defender update count on the Windows machine" value = "$IcingaCheckUpdates_Object_WarningDefender$" diff --git a/config/icinga/Invoke-IcingaCheckUptime.conf b/config/icinga/Invoke-IcingaCheckUptime.conf index 56f218da..62fd140b 100644 --- a/config/icinga/Invoke-IcingaCheckUptime.conf +++ b/config/icinga/Invoke-IcingaCheckUptime.conf @@ -2,22 +2,18 @@ object CheckCommand "Invoke-IcingaCheckUptime" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUptime' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUptime_Int32_Verbosity$" order = 4 } - "-ThresholdInterval" = { + "-Warning" = { set_if = {{ - var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUptime_String_Warning$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + description = "Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y" value = {{ - var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); + var str = macro("$IcingaCheckUptime_String_Warning$"); var argLen = len(str); if (argLen == 0) { return; @@ -27,15 +23,15 @@ object CheckCommand "Invoke-IcingaCheckUptime" { } return ("'" + str + "'"); }} - order = 100 + order = 2 } - "-Warning" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckUptime_String_Warning$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y" + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckUptime_String_Warning$"); + var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -45,7 +41,7 @@ object CheckCommand "Invoke-IcingaCheckUptime" { } return ("'" + str + "'"); }} - order = 2 + order = 100 } "-Critical" = { set_if = {{ diff --git a/config/icinga/Invoke-IcingaCheckUsedPartitionSpace.conf b/config/icinga/Invoke-IcingaCheckUsedPartitionSpace.conf index f2c00a72..a3ffc69a 100644 --- a/config/icinga/Invoke-IcingaCheckUsedPartitionSpace.conf +++ b/config/icinga/Invoke-IcingaCheckUsedPartitionSpace.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckUsedPartitionSpace" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUsedPartitionSpace' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUsedPartitionSpace_Int32_Verbosity$" diff --git a/config/icinga/Invoke-IcingaCheckUsers.conf b/config/icinga/Invoke-IcingaCheckUsers.conf index 0c67e07c..6fb88d1b 100644 --- a/config/icinga/Invoke-IcingaCheckUsers.conf +++ b/config/icinga/Invoke-IcingaCheckUsers.conf @@ -2,10 +2,6 @@ object CheckCommand "Invoke-IcingaCheckUsers" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUsers' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUsers_Int32_Verbosity$" diff --git a/config/icinga/Plugins_Bundle.conf b/config/icinga/Plugins_Bundle.conf index 269fa187..146d2ed1 100644 --- a/config/icinga/Plugins_Bundle.conf +++ b/config/icinga/Plugins_Bundle.conf @@ -2,15 +2,16 @@ object CheckCommand "Invoke-IcingaCheckMPIO" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckMPIO' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckMPIO_Object_Verbosity$" order = 4 } + "-Warning" = { + description = "Used to specify a Warning threshold for the number of path defined. Use for example 8: for alerting for less than 8 MPIO paths available" + value = "$IcingaCheckMPIO_Object_Warning$" + order = 2 + } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckMPIO_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -29,11 +30,6 @@ object CheckCommand "Invoke-IcingaCheckMPIO" { }} order = 100 } - "-Warning" = { - description = "Used to specify a Warning threshold for the number of path defined. Use for example 8: for alerting for less than 8 MPIO paths available" - value = "$IcingaCheckMPIO_Object_Warning$" - order = 2 - } "-Critical" = { description = "Used to specify a Critical threshold for the number of path defined. Use for example 6: for alerting for less than 6 MPIO paths available" value = "$IcingaCheckMPIO_Object_Critical$" @@ -69,10 +65,6 @@ object CheckCommand "Invoke-IcingaCheckUsers" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUsers' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUsers_Int32_Verbosity$" @@ -209,10 +201,6 @@ object CheckCommand "Invoke-IcingaCheckCertificate" { value = "$IcingaCheckCertificate_Object_WarningEnd$" order = 3 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCertificate' " - order = 0 - } "-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$" @@ -412,10 +400,6 @@ object CheckCommand "Invoke-IcingaCheckMemory" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckMemory' " - order = 0 - } "-Verbosity" = { value = "$IcingaCheckMemory_Int32_Verbosity$" order = 8 @@ -546,10 +530,6 @@ object CheckCommand "Invoke-IcingaCheckPartitionSpace" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckPartitionSpace' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckPartitionSpace_Int32_Verbosity$" @@ -783,10 +763,6 @@ object CheckCommand "Invoke-IcingaCheckHTTPStatus" { set_if = "$IcingaCheckHTTPStatus_Switchparameter_AddOutputContent$" order = 99 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckHTTPStatus' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckHTTPStatus_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -998,9 +974,10 @@ object CheckCommand "Invoke-IcingaCheckNLA" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckNLA' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckNLA_Int32_Verbosity$" + order = 3 } "-Profile" = { set_if = {{ @@ -1061,11 +1038,6 @@ object CheckCommand "Invoke-IcingaCheckNLA" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckNLA_Int32_Verbosity$" - order = 3 - } } vars.ifw_api_arguments = { "Profile" = { @@ -1088,10 +1060,6 @@ object CheckCommand "Invoke-IcingaCheckBiosSerial" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckBiosSerial' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckBiosSerial_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -1124,7 +1092,7 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { arguments += { "-Before" = { - description = "Used to specify time data of which point the plugin should stop considering event logs. You can either use a fixed date and time like '2021/01/30 12:00:00', a fixed day '2021/01/30' or use more dynamic approaches like '1d', '10h' and so on. By using '2h' for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back further in time with the `-After` argument than the `-Before` argument. Allowed units: ms, s, m, h, d, w, M, y" + description = "Defines the end point on which timeframe the plugin will stop to read event log information. Using 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be used in combination with the '-After' argument. As example, you could provide '-After 6h' to start reading all eventlogs from the past 6 hours, and use '-Before 2h' to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours have been ignored. For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: '2024/01/01 12:00:00': Will stop reading eventlogs after the 1st January 2024 12:00 CET '2024/01/15': Will stop reading eventlogs after the 15th January 2024 00:00 CET '4h': Will ignore eventlogs of the past 4 hours '1d': Will ignore eventlogs of the past day (24 hours) Allowed units for time metrics: ms, s, m, h, d, w, M, y Example ``` Start of EventLog Plugin Execution v After 6h Before 2h v |-------------|------------------|------| 8:00 10:00 14:00 16:00 | Not fetched | Fetched | Not fetchhed```" value = "$IcingaCheckEventlog_Object_Before$" order = 16 } @@ -1179,7 +1147,7 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { order = 13 } "-After" = { - description = "Used to specify time data of which point the plugin should start to read event logs from. You can either use a fixed date and time like '2021/01/30 12:00:00', a fixed day '2021/01/30' or use more dynamic approaches like '1d', '10h' and so on. Allowed units: ms, s, m, h, d, w, M, y" + description = "Defines the starting point on which timeframe the plugin will start to read event log information. Using 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours. For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: '2024/01/01 12:00:00': Will start reading eventlogs after the 1st January 2024 12:00 CET '2024/01/15': Will start reading eventlogs after the 15th January 2024 00:00 CET '4h': Will read the past 4 hours '1d': Will read the past day (24 hours) Allowed units for time metrics: ms, s, m, h, d, w, M, y Example ``` Start of EventLog Plugin Execution v After 4h v |--------------------|-----------------| 10:00 12:00 16:00 | Not fetched | Fetched |```" value = "$IcingaCheckEventlog_Object_After$" order = 15 } @@ -1224,10 +1192,6 @@ object CheckCommand "Invoke-IcingaCheckEventlog" { }} order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckEventlog' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckEventlog_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -1508,10 +1472,6 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { value = "$IcingaCheckDiskHealth_Object_DiskReadByteSecWarning$" order = 14 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command '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$" @@ -1544,6 +1504,10 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { }} order = 3 } + "-IgnoreReadOnlyDisks" = { + set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$" + order = 99 + } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckDiskHealth_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -1562,11 +1526,6 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { }} order = 100 } - "-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 - } "-IncludeDisk" = { description = "Specify the index id of disks you want to include for checks. Example 0, 1" value = {{ @@ -1633,9 +1592,10 @@ object CheckCommand "Invoke-IcingaCheckDiskHealth" { value = "$IcingaCheckDiskHealth_Object_DiskWriteSecCritical$" order = 9 } - "-IgnoreReadOnlyDisks" = { - set_if = "$IcingaCheckDiskHealth_Switchparameter_IgnoreReadOnlyDisks$" - order = 99 + "-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, ...)" @@ -1883,10 +1843,6 @@ object CheckCommand "Invoke-IcingaCheckProcess" { value = "$IcingaCheckProcess_Object_TotalMemoryWarning$" order = 12 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckProcess' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckProcess_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -2073,17 +2029,17 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCheckSum' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckCheckSum_Int32_Verbosity$" + order = 5 } - "-Algorithm" = { + "-Path" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Path$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a string, which contains the algorithm to be used. Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5'" value = {{ - var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); + var str = macro("$IcingaCheckCheckSum_String_Path$"); var argLen = len(str); if (argLen == 0) { return; @@ -2093,7 +2049,7 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 3 + order = 2 } "-ThresholdInterval" = { set_if = {{ @@ -2113,17 +2069,13 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckCheckSum_Int32_Verbosity$" - order = 5 - } - "-Hash" = { + "-Algorithm" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Hash$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); if (len(str) == 0) { return false; }; return true; }} + description = "Used to specify a string, which contains the algorithm to be used. Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5'" value = {{ - var str = macro("$IcingaCheckCheckSum_String_Hash$"); + var str = macro("$IcingaCheckCheckSum_String_Algorithm$"); var argLen = len(str); if (argLen == 0) { return; @@ -2133,18 +2085,14 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 4 - } - "-NoPerfData" = { - set_if = "$IcingaCheckCheckSum_Switchparameter_NoPerfData$" - order = 99 + order = 3 } - "-Path" = { + "-Hash" = { set_if = {{ - var str = macro("$IcingaCheckCheckSum_String_Path$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckCheckSum_String_Hash$"); if (len(str) == 0) { return false; }; return true; }} value = {{ - var str = macro("$IcingaCheckCheckSum_String_Path$"); + var str = macro("$IcingaCheckCheckSum_String_Hash$"); var argLen = len(str); if (argLen == 0) { return; @@ -2154,7 +2102,11 @@ object CheckCommand "Invoke-IcingaCheckCheckSum" { } return ("'" + str + "'"); }} - order = 2 + order = 4 + } + "-NoPerfData" = { + set_if = "$IcingaCheckCheckSum_Switchparameter_NoPerfData$" + order = 99 } } vars.IcingaCheckCheckSum_Switchparameter_NoPerfData = false @@ -2225,10 +2177,6 @@ object CheckCommand "Invoke-IcingaCheckScheduledTask" { set_if = "$IcingaCheckScheduledTask_Switchparameter_NoPerfData$" order = 99 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckScheduledTask' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckScheduledTask_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -2422,33 +2370,11 @@ object CheckCommand "Invoke-IcingaCheckFirewall" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckFirewall' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckFirewall_Int32_Verbosity$" order = 3 } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } "-Profile" = { description = "Used to specify an array of profiles to check. Available profiles are 'Domain', 'Public', 'Private'" value = {{ @@ -2472,6 +2398,24 @@ object CheckCommand "Invoke-IcingaCheckFirewall" { }} order = 2 } + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckFirewall_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 + } "-NoPerfData" = { set_if = "$IcingaCheckFirewall_Switchparameter_NoPerfData$" order = 99 @@ -2512,10 +2456,6 @@ object CheckCommand "Invoke-IcingaCheckNetworkInterface" { value = "$IcingaCheckNetworkInterface_Object_PacketSentSecWarn$" order = 8 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckNetworkInterface' " - order = 0 - } "-NoPerfData" = { set_if = "$IcingaCheckNetworkInterface_Switchparameter_NoPerfData$" order = 99 @@ -3016,10 +2956,6 @@ object CheckCommand "Invoke-IcingaCheckHttpJsonResponse" { }} order = 9 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckHttpJsonResponse' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckHttpJsonResponse_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -3194,18 +3130,13 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { import "PowerShell Base" arguments += { - "-CriticalLargestFile" = { - description = "Checks the largest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalLargestFile$" - order = 11 - } - "-FileSizeGreaterThan" = { + "-Path" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_Path$"); if (len(str) == 0) { return false; }; return true; }} - 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." + description = "Used to specify a path. e.g. 'C:\\Users\\Icinga\\Downloads'" value = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); + var str = macro("$IcingaCheckDirectory_String_Path$"); var argLen = len(str); if (argLen == 0) { return; @@ -3215,29 +3146,24 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 20 - } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckDirectory' " - order = 0 + order = 2 } - "-WarningAverageFile" = { - description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningAverageFile$" - order = 12 + "-NoPerfData" = { + set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$" + order = 99 } - "-WarningLargestFile" = { - description = "Checks the largest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningLargestFile$" - order = 10 + "-CriticalTotalSize" = { + description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalTotalSize$" + order = 7 } - "-CreationYoungerThan" = { + "-CreationOlderThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); + var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3247,20 +3173,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 19 - } - "-Warning" = { - description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_Warning$" - order = 5 + order = 18 } - "-ThresholdInterval" = { + "-FileSizeGreaterThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); + var str = macro("$IcingaCheckDirectory_String_FileSizeGreaterThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3270,20 +3191,20 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 100 + order = 20 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckDirectory_Int32_Verbosity$" order = 22 } - "-ChangeTimeEqual" = { + "-ChangeOlderThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); + var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3293,29 +3214,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 14 - } - "-CountFolderAsFile" = { - set_if = "$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$" - order = 99 - } - "-WarningTotalSize" = { - description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningTotalSize$" - order = 6 - } - "-CriticalSmallestFile" = { - description = "Checks the smallest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalSmallestFile$" - order = 9 + order = 16 } - "-Path" = { + "-ChangeYoungerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_Path$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a path. e.g. 'C:\\Users\\Icinga\\Downloads'" + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_Path$"); + var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3325,19 +3232,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 2 - } - "-NoPerfData" = { - set_if = "$IcingaCheckDirectory_Switchparameter_NoPerfData$" - order = 99 + order = 15 } - "-ChangeOlderThan" = { + "-FileSizeSmallerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeOlderThan$"); + var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3347,30 +3250,15 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 16 - } - "-CriticalTotalSize" = { - description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalTotalSize$" - order = 7 - } - "-Critical" = { - description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_Critical$" - order = 4 - } - "-CriticalAverageFile" = { - description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_CriticalAverageFile$" - order = 13 + order = 21 } - "-FileSizeSmallerThan" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - 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." + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckDirectory_String_FileSizeSmallerThan$"); + var str = macro("$IcingaCheckDirectory_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -3380,7 +3268,7 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 21 + order = 100 } "-CreationTimeEqual" = { set_if = {{ @@ -3400,6 +3288,20 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { }} order = 17 } + "-CountFolderAsFile" = { + set_if = "$IcingaCheckDirectory_Switchparameter_CountFolderAsFile$" + order = 99 + } + "-CriticalLargestFile" = { + description = "Checks the largest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalLargestFile$" + order = 11 + } + "-WarningSmallestFile" = { + description = "Checks the smallest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningSmallestFile$" + order = 8 + } "-FileNames" = { description = "Used to specify an array of filenames or expressions to match against results to filter for specific files. e.g '*.txt', '*.sql', finds all files ending with .txt and .sql" value = {{ @@ -3423,18 +3325,18 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { }} order = 3 } - "-WarningSmallestFile" = { - description = "Checks the smallest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." - value = "$IcingaCheckDirectory_Object_WarningSmallestFile$" - order = 8 + "-Critical" = { + description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_Critical$" + order = 4 } - "-CreationOlderThan" = { + "-CreationYoungerThan" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_CreationOlderThan$"); + var str = macro("$IcingaCheckDirectory_String_CreationYoungerThan$"); var argLen = len(str); if (argLen == 0) { return; @@ -3444,15 +3346,53 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 18 + order = 19 } - "-ChangeYoungerThan" = { + "-Recurse" = { + set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$" + order = 99 + } + "-WarningTotalSize" = { + description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningTotalSize$" + order = 6 + } + "-WarningAverageFile" = { + description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningAverageFile$" + order = 12 + } + "-WarningLargestFile" = { + description = "Checks the largest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_WarningLargestFile$" + order = 10 + } + "-Warning" = { + description = "Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_Warning$" + order = 5 + } + "-CriticalSmallestFile" = { + description = "Checks the smallest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalSmallestFile$" + order = 9 + } + "-CriticalAverageFile" = { + description = "Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines." + value = "$IcingaCheckDirectory_Object_CriticalAverageFile$" + order = 13 + } + "-ShowFileList" = { + set_if = "$IcingaCheckDirectory_Switchparameter_ShowFileList$" + order = 99 + } + "-ChangeTimeEqual" = { set_if = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); if (len(str) == 0) { return false; }; return true; }} - 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." + 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 = {{ - var str = macro("$IcingaCheckDirectory_String_ChangeYoungerThan$"); + var str = macro("$IcingaCheckDirectory_String_ChangeTimeEqual$"); var argLen = len(str); if (argLen == 0) { return; @@ -3462,15 +3402,7 @@ object CheckCommand "Invoke-IcingaCheckDirectory" { } return ("'" + str + "'"); }} - order = 15 - } - "-ShowFileList" = { - set_if = "$IcingaCheckDirectory_Switchparameter_ShowFileList$" - order = 99 - } - "-Recurse" = { - set_if = "$IcingaCheckDirectory_Switchparameter_Recurse$" - order = 99 + order = 14 } } vars.IcingaCheckDirectory_Switchparameter_CountFolderAsFile = false @@ -3564,6 +3496,11 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { import "PowerShell Base" arguments += { + "-WarningTotal" = { + description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_WarningTotal$" + order = 8 + } "-Path" = { set_if = {{ var str = macro("$IcingaCheckUNCPath_String_Path$"); if (len(str) == 0) { return false; }; return true; @@ -3582,13 +3519,13 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { }} order = 2 } - "-DisplayAlias" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - description = "Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value instead of shorten the output and make it more visual appealing." + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); + var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -3598,33 +3535,44 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 5 + order = 100 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUNCPath_Object_Verbosity$" order = 10 } - "-NoPerfData" = { - set_if = "$IcingaCheckUNCPath_Switchparameter_NoPerfData$" - order = 99 + "-CriticalTotal" = { + description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_CriticalTotal$" + order = 9 } "-Password" = { description = "The password to authenticate the given user for. Has to be a secure string" value = "(ConvertTo-IcingaSecureString '$IcingaCheckUNCPath_Securestring_Password$')" order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUNCPath' " - order = 0 + "-Warning" = { + description = "A warning threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_Warning$" + order = 6 } - "-ThresholdInterval" = { + "-Critical" = { + description = "A critical threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" + value = "$IcingaCheckUNCPath_Object_Critical$" + order = 7 + } + "-NoPerfData" = { + set_if = "$IcingaCheckUNCPath_Switchparameter_NoPerfData$" + order = 99 + } + "-User" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_User$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + description = "Provide a username and/or domain to run this check for. The format can either be 'domain\\user' or 'domain@user'" value = {{ - var str = macro("$IcingaCheckUNCPath_String_ThresholdInterval$"); + var str = macro("$IcingaCheckUNCPath_String_User$"); var argLen = len(str); if (argLen == 0) { return; @@ -3634,15 +3582,19 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 100 + order = 3 } - "-User" = { + "-CheckUsedSpace" = { + set_if = "$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$" + order = 99 + } + "-DisplayAlias" = { set_if = {{ - var str = macro("$IcingaCheckUNCPath_String_User$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); if (len(str) == 0) { return false; }; return true; }} - description = "Provide a username and/or domain to run this check for. The format can either be 'domain\\user' or 'domain@user'" + description = "Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value instead of shorten the output and make it more visual appealing." value = {{ - var str = macro("$IcingaCheckUNCPath_String_User$"); + var str = macro("$IcingaCheckUNCPath_String_DisplayAlias$"); var argLen = len(str); if (argLen == 0) { return; @@ -3652,31 +3604,7 @@ object CheckCommand "Invoke-IcingaCheckUNCPath" { } return ("'" + str + "'"); }} - order = 3 - } - "-Critical" = { - description = "A critical threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_Critical$" - order = 7 - } - "-WarningTotal" = { - description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_WarningTotal$" - order = 8 - } - "-Warning" = { - description = "A warning threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_Warning$" - order = 6 - } - "-CheckUsedSpace" = { - set_if = "$IcingaCheckUNCPath_Switchparameter_CheckUsedSpace$" - order = 99 - } - "-CriticalTotal" = { - description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB" - value = "$IcingaCheckUNCPath_Object_CriticalTotal$" - order = 9 + order = 5 } } vars.IcingaCheckUNCPath_Switchparameter_CheckUsedSpace = false @@ -3754,19 +3682,46 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { value = "$IcingaCheckPerfCounter_Int32_Verbosity$" order = 7 } + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 + } + "-IgnoreEmptyChecks" = { + set_if = "$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$" + order = 99 + } "-Warning" = { description = "Used to specify a Warning threshold." value = "$IcingaCheckPerfCounter_Object_Warning$" order = 3 } - "-IgnoreEmptyChecks" = { - set_if = "$IcingaCheckPerfCounter_Switchparameter_IgnoreEmptyChecks$" + "-Critical" = { + description = "Used to specify a Critical threshold." + value = "$IcingaCheckPerfCounter_Object_Critical$" + order = 4 + } + "-NoPerfData" = { + set_if = "$IcingaCheckPerfCounter_Switchparameter_NoPerfData$" order = 99 } - "-ExcludeCounter" = { - description = "An [array] of strings to filter for, excluding the provided counters. Allows wildcard '*' usage" + "-IncludeCounter" = { + description = "An [array] of strings to filter for, only including the provided counters. Allows wildcard '*' usage" value = {{ - var arr = macro("$IcingaCheckPerfCounter_Array_ExcludeCounter$"); + var arr = macro("$IcingaCheckPerfCounter_Array_IncludeCounter$"); if (len(arr) == 0) { return "@()"; } @@ -3784,21 +3739,12 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { ).join(","); return "@(" + psarr + ")"; }} - order = 6 - } - "-Critical" = { - description = "Used to specify a Critical threshold." - value = "$IcingaCheckPerfCounter_Object_Critical$" - order = 4 - } - "-NoPerfData" = { - set_if = "$IcingaCheckPerfCounter_Switchparameter_NoPerfData$" - order = 99 + order = 5 } - "-IncludeCounter" = { - description = "An [array] of strings to filter for, only including the provided counters. Allows wildcard '*' usage" + "-ExcludeCounter" = { + description = "An [array] of strings to filter for, excluding the provided counters. Allows wildcard '*' usage" value = {{ - var arr = macro("$IcingaCheckPerfCounter_Array_IncludeCounter$"); + var arr = macro("$IcingaCheckPerfCounter_Array_ExcludeCounter$"); if (len(arr) == 0) { return "@()"; } @@ -3816,29 +3762,7 @@ object CheckCommand "Invoke-IcingaCheckPerfCounter" { ).join(","); return "@(" + psarr + ")"; }} - order = 5 - } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckPerfCounter_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckPerfCounter' " - order = 0 + order = 6 } } vars.IcingaCheckPerfCounter_Switchparameter_NoPerfData = false @@ -3879,19 +3803,6 @@ object CheckCommand "Invoke-IcingaCheckICMP" { import "PowerShell Base" arguments += { - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckICMP_Int32_Verbosity$" - order = 9 - } - "-IPv4" = { - set_if = "$IcingaCheckICMP_Switchparameter_IPv4$" - order = 99 - } - "-NoPerfData" = { - set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$" - order = 99 - } "-WarningPl" = { description = "Threshold on which the plugin will return 'WARNING' for the response time in ms" value = "$IcingaCheckICMP_Object_WarningPl$" @@ -3915,10 +3826,6 @@ object CheckCommand "Invoke-IcingaCheckICMP" { }} order = 6 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckICMP' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckICMP_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -3937,28 +3844,41 @@ object CheckCommand "Invoke-IcingaCheckICMP" { }} order = 100 } - "-Critical" = { - description = "Threshold on which the plugin will return 'CRITICAL' for the response time in ms" - value = "$IcingaCheckICMP_Object_Critical$" - order = 3 - } - "-PacketSize" = { - description = "The size of each packet send to the target host" - value = "$IcingaCheckICMP_Int32_PacketSize$" - 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + 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 + } + "-NoPerfData" = { + set_if = "$IcingaCheckICMP_Switchparameter_NoPerfData$" + order = 99 + } + "-PacketSize" = { + description = "The size of each packet send to the target host" + value = "$IcingaCheckICMP_Int32_PacketSize$" + order = 8 + } "-Warning" = { description = "Threshold on which the plugin will return 'WARNING' for the response time in ms" value = "$IcingaCheckICMP_Object_Warning$" order = 2 } - "-IPv6" = { - set_if = "$IcingaCheckICMP_Switchparameter_IPv6$" + "-Critical" = { + description = "Threshold 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" = { @@ -4015,10 +3935,6 @@ object CheckCommand "Invoke-IcingaCheckUsedPartitionSpace" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUsedPartitionSpace' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUsedPartitionSpace_Int32_Verbosity$" @@ -4158,9 +4074,28 @@ object CheckCommand "Invoke-IcingaCheckService" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckService' " - order = 0 + "-FilterStartupType" = { + description = "Allows to include only services with a specific startup type inside the monitoring, in case you check for a list of specific services by using `-Service`" + value = {{ + var arr = macro("$IcingaCheckService_Array_FilterStartupType$"); + if (len(arr) == 0) { + return "@()"; + } + var psarr = arr.map( + x => if (typeof(x) == String) { + var argLen = len(x); + if (argLen != 0 && x.substr(0,1) == "'" && x.substr(argLen - 1, argLen) == "'") { + x; + } else { + "'" + x + "'"; + } + } else { + x; + } + ).join(","); + return "@(" + psarr + ")"; + }} + order = 5 } "-MitigateUnknown" = { set_if = "$IcingaCheckService_Switchparameter_MitigateUnknown$" @@ -4189,29 +4124,6 @@ object CheckCommand "Invoke-IcingaCheckService" { value = "$IcingaCheckService_Int32_Verbosity$" order = 6 } - "-FilterStartupType" = { - description = "Allows to include only services with a specific startup type inside the monitoring, in case you check for a list of specific services by using `-Service`" - value = {{ - var arr = macro("$IcingaCheckService_Array_FilterStartupType$"); - if (len(arr) == 0) { - return "@()"; - } - var psarr = arr.map( - x => if (typeof(x) == String) { - var argLen = len(x); - if (argLen != 0 && x.substr(0,1) == "'" && x.substr(argLen - 1, argLen) == "'") { - x; - } else { - "'" + x + "'"; - } - } else { - x; - } - ).join(","); - return "@(" + psarr + ")"; - }} - order = 5 - } "-Status" = { set_if = {{ var str = macro("$IcingaCheckService_String_Status$"); if (len(str) == 0) { return false; }; return true; @@ -4316,9 +4228,10 @@ object CheckCommand "Invoke-IcingaCheckCPU" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckCPU' " - order = 0 + "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" + value = "$IcingaCheckCPU_Int32_Verbosity$" + order = 6 } "-SocketFilter" = { description = "Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id's will not be evaluated by the plugin." @@ -4361,11 +4274,6 @@ object CheckCommand "Invoke-IcingaCheckCPU" { }} order = 100 } - "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" - value = "$IcingaCheckCPU_Int32_Verbosity$" - order = 6 - } "-Core" = { set_if = {{ var str = macro("$IcingaCheckCPU_String_Core$"); if (len(str) == 0) { return false; }; return true; @@ -4438,10 +4346,6 @@ object CheckCommand "Invoke-IcingaCheckTCP" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckTCP' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckTCP_Object_Verbosity$" @@ -4560,22 +4464,18 @@ object CheckCommand "Invoke-IcingaCheckUptime" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUptime' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckUptime_Int32_Verbosity$" order = 4 } - "-ThresholdInterval" = { + "-Warning" = { set_if = {{ - var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUptime_String_Warning$"); if (len(str) == 0) { return false; }; return true; }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + description = "Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y" value = {{ - var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); + var str = macro("$IcingaCheckUptime_String_Warning$"); var argLen = len(str); if (argLen == 0) { return; @@ -4585,15 +4485,15 @@ object CheckCommand "Invoke-IcingaCheckUptime" { } return ("'" + str + "'"); }} - order = 100 + order = 2 } - "-Warning" = { + "-ThresholdInterval" = { set_if = {{ - var str = macro("$IcingaCheckUptime_String_Warning$"); if (len(str) == 0) { return false; }; return true; + var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; }} - description = "Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y" + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." value = {{ - var str = macro("$IcingaCheckUptime_String_Warning$"); + var str = macro("$IcingaCheckUptime_String_ThresholdInterval$"); var argLen = len(str); if (argLen == 0) { return; @@ -4603,7 +4503,7 @@ object CheckCommand "Invoke-IcingaCheckUptime" { } return ("'" + str + "'"); }} - order = 2 + order = 100 } "-Critical" = { set_if = {{ @@ -4687,10 +4587,6 @@ object CheckCommand "Invoke-IcingaCheckStoragePool" { value = "$IcingaCheckStoragePool_Object_FreeSpaceWarning$" order = 4 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckStoragePool' " - order = 0 - } "-ThresholdInterval" = { set_if = {{ var str = macro("$IcingaCheckStoragePool_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; @@ -4899,10 +4795,6 @@ object CheckCommand "Invoke-IcingaCheckUpdates" { value = "$IcingaCheckUpdates_Object_CriticalOther$" order = 12 } - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckUpdates' " - order = 0 - } "-WarningDefender" = { description = "The warning threshold for the Microsoft Defender update count on the Windows machine" value = "$IcingaCheckUpdates_Object_WarningDefender$" @@ -5049,10 +4941,6 @@ object CheckCommand "Invoke-IcingaCheckProcessCount" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckProcessCount' " - order = 0 - } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" value = "$IcingaCheckProcessCount_Int32_Verbosity$" @@ -5142,37 +5030,51 @@ object CheckCommand "Invoke-IcingaCheckTimeSync" { import "PowerShell Base" arguments += { - "-C" = { - value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckTimeSync' " - order = 0 + "-Port" = { + description = "Port number (default: 123)" + value = "$IcingaCheckTimeSync_Int32_Port$" + order = 7 } "-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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])" 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 + "-ThresholdInterval" = { + set_if = {{ + var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; + }} + description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." + value = {{ + var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); + var argLen = len(str); + if (argLen == 0) { + return; + } + if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { + return str; + } + return ("'" + str + "'"); + }} + order = 100 } "-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 } "-IgnoreService" = { set_if = "$IcingaCheckTimeSync_Switchparameter_IgnoreService$" order = 99 } - "-NoPerfData" = { - set_if = "$IcingaCheckTimeSync_Switchparameter_NoPerfData$" - order = 99 + "-Warning" = { + description = "Used to specify a offset Warning threshold e.g 10ms or 0.01s" + value = "$IcingaCheckTimeSync_Object_Warning$" + order = 4 } "-Critical" = { description = "Used to specify a offset Critical threshold e.g 20ms or 0.02s." @@ -5206,24 +5108,6 @@ object CheckCommand "Invoke-IcingaCheckTimeSync" { set_if = "$IcingaCheckTimeSync_Switchparameter_IPV4$" order = 99 } - "-ThresholdInterval" = { - set_if = {{ - var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); if (len(str) == 0) { return false; }; return true; - }} - description = "Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring." - value = {{ - var str = macro("$IcingaCheckTimeSync_String_ThresholdInterval$"); - var argLen = len(str); - if (argLen == 0) { - return; - } - if (argLen != 0 && str.substr(0,1) == "'" && str.substr(argLen - 1, argLen) == "'") { - return str; - } - return ("'" + str + "'"); - }} - order = 100 - } } vars.IcingaCheckTimeSync_Switchparameter_IPV4 = false vars.IcingaCheckTimeSync_Switchparameter_NoPerfData = false diff --git a/config/icinga/PowerShell_Base.conf b/config/icinga/PowerShell_Base.conf index 74a93116..0672032b 100644 --- a/config/icinga/PowerShell_Base.conf +++ b/config/icinga/PowerShell_Base.conf @@ -5,6 +5,10 @@ object CheckCommand "PowerShell Base" { ] timeout = 3m arguments += { + "-C" = { + order = 0 + value = "try { Use-Icinga -Minimal; } 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'; Write-Output 'Error:' $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command '$ifw_api_command$' " + } "-ExecutionPolicy" = { order = -1 value = "$IcingaPowerShellBase_String_ExecutionPolicy$" diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index 4e1d811a..7628dacc 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -12,6 +12,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic ### Bugfixes * [#384](https://github.com/Icinga/icinga-powershell-plugins/pull/384) Adds new data provider for Invoke-IcingaCheckProcess and extends functionality by adding a new 'ExcludeProcess' argument +* [#386](https://github.com/Icinga/icinga-powershell-plugins/pull/386) Adds new provider for Invoke-IcingaCheckEventLog, to improve performance and fix memory leaks # 1.11.2 (tbd) diff --git a/doc/plugins/02-Invoke-IcingaCheckCertificate.md b/doc/plugins/02-Invoke-IcingaCheckCertificate.md index 241d31f0..52253f3f 100644 --- a/doc/plugins/02-Invoke-IcingaCheckCertificate.md +++ b/doc/plugins/02-Invoke-IcingaCheckCertificate.md @@ -17,11 +17,11 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Trusted | SwitchParameter | false | False | Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root. Will return Critical in case of untrusted. Note: it is currently required that the root and intermediate CA is known and trusted by the local system. | -| CriticalStart | Object | false | | 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' | -| WarningEnd | Object | false | 30d: | 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 | -| CriticalEnd | Object | false | 10d: | 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 | -| CertStore | String | false | None | Used to specify which CertStore to check. Valid choices are 'None', '*', 'LocalMachine', 'CurrentUser'. Use 'None' if you do not want to check the certificate store (Default) | +| Trusted | SwitchParameter | false | False | Used to switch on trusted behavior. Whether to check, If the certificate is trusted by the system root.
Will return Critical in case of untrusted.

Note: it is currently required that the root and intermediate CA is known and trusted by the local system. | +| CriticalStart | Object | false | | 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' | +| WarningEnd | Object | false | 30d: | 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 | +| CriticalEnd | Object | false | 10d: | 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 | +| CertStore | String | false | None | Used to specify which CertStore to check. Valid choices are 'None', '*', 'LocalMachine', 'CurrentUser'.
Use 'None' if you do not want to check the certificate store (Default) | | CertThumbprint | Array | false | | Used to specify an array of Thumbprints, which are used to determine what certificate to check, within the CertStore. | | CertSubject | Array | false | | Used to specify an array of Subjects, which are used to determine what certificate to check, within the CertStore. | | ExcludePattern | Array | false | | Used to specify an array of exclusions, tested against Subject, Subject Alternative Name, Issuer and Thumbprint. | @@ -30,7 +30,7 @@ No special permissions required. | CertName | Array | false | | Used to specify an array of certificate names of certificate files to check. Use with CertPaths. | | Recurse | SwitchParameter | false | False | Includes sub-directories and entries while looking for certificates on a given path | | IgnoreEmpty | SwitchParameter | false | False | Will return `OK` instead of `UNKNOWN`, in case no certificates for the given filter and path were found | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/03-Invoke-IcingaCheckCheckSum.md b/doc/plugins/03-Invoke-IcingaCheckCheckSum.md index 5c0575bd..21a7a750 100644 --- a/doc/plugins/03-Invoke-IcingaCheckCheckSum.md +++ b/doc/plugins/03-Invoke-IcingaCheckCheckSum.md @@ -17,10 +17,10 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | Path | String | false | | | -| Algorithm | String | false | SHA256 | Used to specify a string, which contains the algorithm to be used. Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5' | +| Algorithm | String | false | SHA256 | Used to specify a string, which contains the algorithm to be used.

Allowed algorithms: 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5' | | Hash | String | false | | | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/04-Invoke-IcingaCheckCPU.md b/doc/plugins/04-Invoke-IcingaCheckCPU.md index e1bc0ddd..6b055a9c 100644 --- a/doc/plugins/04-Invoke-IcingaCheckCPU.md +++ b/doc/plugins/04-Invoke-IcingaCheckCPU.md @@ -27,10 +27,10 @@ To execute this plugin you will require to grant the following user permissions. | Warning | Object | false | | Used to specify a Warning threshold. In this case an integer value. | | Critical | Object | false | | Used to specify a Critical threshold. In this case an integer value. | | Core | String | false | * | Used to specify a single core to check for. For the average load across all cores use `_Total` | -| SocketFilter | Array | false | @() | Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id's will not be evaluated by the plugin. | -| OverallOnly | SwitchParameter | false | False | If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all returned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument | +| SocketFilter | Array | false | @() | Allows to specify one or mutlitple sockets by using their socket id. Not matching socket id's will not be evaluated
by the plugin. | +| OverallOnly | SwitchParameter | false | False | If this flag is set, the Warning and Critical thresholds will only apply to the `Overall Load` metric instead of all
returned cores. Requires that the plugin either fetches all cores with `*` or `Total` for the -Core argument | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/05-Invoke-IcingaCheckDirectory.md b/doc/plugins/05-Invoke-IcingaCheckDirectory.md index 0da4aa52..86014790 100644 --- a/doc/plugins/05-Invoke-IcingaCheckDirectory.md +++ b/doc/plugins/05-Invoke-IcingaCheckDirectory.md @@ -19,30 +19,30 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Path | String | false | | Used to specify a path. e.g. 'C:\Users\Icinga\Downloads' | -| FileNames | Array | false | @( '*' ) | Used to specify an array of filenames or expressions to match against results to filter for specific files. e.g '*.txt', '*.sql', finds all files ending with .txt and .sql | +| Path | String | false | | Used to specify a path.
e.g. 'C:\Users\Icinga\Downloads' | +| FileNames | Array | false | @( '*' ) | Used to specify an array of filenames or expressions to match against results to filter for specific files.

e.g '*.txt', '*.sql', finds all files ending with .txt and .sql | | Recurse | SwitchParameter | false | False | A switch, which can be set to search through directories recursively. | -| Critical | Object | false | | Checks the resulting file count of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| Warning | Object | false | | Checks the resulting file count of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| WarningTotalSize | Object | false | | Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| CriticalTotalSize | Object | false | | Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| WarningSmallestFile | Object | false | | Checks the smallest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| CriticalSmallestFile | Object | false | | Checks the smallest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| WarningLargestFile | Object | false | | Checks the largest file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| CriticalLargestFile | Object | false | | Checks the largest file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| WarningAverageFile | Object | false | | Checks the average file size found for the given filters and input and returns warning for the provided threshold. Follows the Icinga plugin threshold guidelines. | -| CriticalAverageFile | Object | false | | Checks the average file size found for the given filters and input and returns critical for the provided threshold. Follows the Icinga plugin threshold guidelines. | +| Critical | Object | false | | Checks the resulting file count of the provided filters and input and returns critical for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| Warning | Object | false | | Checks the resulting file count of the provided filters and input and returns warning for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| WarningTotalSize | Object | false | | Checks the total folder size of all files of the provided filters and input and returns warning for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| CriticalTotalSize | Object | false | | Checks the total folder size of all files of the provided filters and input and returns critical for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| WarningSmallestFile | Object | false | | Checks the smallest file size found for the given filters and input and returns warning for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| CriticalSmallestFile | Object | false | | Checks the smallest file size found for the given filters and input and returns critical for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| WarningLargestFile | Object | false | | Checks the largest file size found for the given filters and input and returns warning for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| CriticalLargestFile | Object | false | | Checks the largest file size found for the given filters and input and returns critical for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| WarningAverageFile | Object | false | | Checks the average file size found for the given filters and input and returns warning for the provided threshold.

Follows the Icinga plugin threshold guidelines. | +| CriticalAverageFile | Object | false | | Checks the average file size found for the given filters and input and returns critical for the provided threshold.

Follows the Icinga plugin threshold guidelines. | | CountFolderAsFile | SwitchParameter | false | False | Will add the count of folders on top of the file count, allowing to include it within the threshold check. | -| ShowFileList | SwitchParameter | false | False | Allows to add the file list to the plugin output. Beware that this will cause your database to grow and performance might be slower on huge directories! | -| ChangeTimeEqual | String | false | | 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. | -| ChangeYoungerThan | String | false | | 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. | -| ChangeOlderThan | String | false | | 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. | -| CreationTimeEqual | String | false | | 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. | -| CreationOlderThan | String | false | | 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. | -| CreationYoungerThan | String | false | | 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. | -| FileSizeGreaterThan | String | false | | 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. | -| FileSizeSmallerThan | String | false | | 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. | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| ShowFileList | SwitchParameter | false | False | Allows to add the file list to the plugin output. Beware that this will cause your database to grow and
performance might be slower on huge directories! | +| ChangeTimeEqual | String | false | | 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. | +| ChangeYoungerThan | String | false | | 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. | +| ChangeOlderThan | String | false | | 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. | +| CreationTimeEqual | String | false | | 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. | +| CreationOlderThan | String | false | | 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. | +| CreationYoungerThan | String | false | | 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. | +| FileSizeGreaterThan | String | false | | 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. | +| FileSizeSmallerThan | String | false | | 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. | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | NoPerfData | SwitchParameter | false | False | | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | diff --git a/doc/plugins/06-Invoke-IcingaCheckEventlog.md b/doc/plugins/06-Invoke-IcingaCheckEventlog.md index 4f4203bd..fec6297c 100644 --- a/doc/plugins/06-Invoke-IcingaCheckEventlog.md +++ b/doc/plugins/06-Invoke-IcingaCheckEventlog.md @@ -32,18 +32,18 @@ To execute this plugin you will require to grant the following user permissions. | ExcludeEventId | Array | false | @() | Used to specify an array of events identified by their id to be excluded. | | IncludeUsername | Array | false | @() | Used to specify an array of usernames within the eventlog to be included. | | ExcludeUsername | Array | false | @() | Used to specify an array of usernames within the eventlog to be excluded. | -| IncludeEntryType | Array | false | @() | Used to specify an array of entry types within the eventlog to be included. Please note that `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. | -| ExcludeEntryType | Array | false | @() | Used to specify an array of entry types within the eventlog to be excluded. Please note that `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. | +| IncludeEntryType | Array | false | @() | Used to specify an array of entry types within the eventlog to be included. Please note that
`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. | +| ExcludeEntryType | Array | false | @() | Used to specify an array of entry types within the eventlog to be excluded. Please note that
`SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. | | IncludeMessage | Array | false | @() | Used to specify an array of messages within the eventlog to be included. | | ExcludeMessage | Array | false | @() | Used to specify an array of messages within the eventlog to be excluded. | | IncludeSource | Array | false | @() | Used to specify an array of message sources within the eventlog to be included. | | ExcludeSource | Array | false | @() | Used to specify an array of message sources within the eventlog to be excluded. | -| After | Object | false | | Used to specify time data of which point the plugin should start to read event logs from. You can either use a fixed date and time like "2021/01/30 12:00:00", a fixed day "2021/01/30" or use more dynamic approaches like "1d", "10h" and so on. Allowed units: ms, s, m, h, d, w, M, y | -| Before | Object | false | | Used to specify time data of which point the plugin should stop considering event logs. You can either use a fixed date and time like "2021/01/30 12:00:00", a fixed day "2021/01/30" or use more dynamic approaches like "1d", "10h" and so on. By using "2h" for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back further in time with the `-After` argument than the `-Before` argument. Allowed units: ms, s, m, h, d, w, M, y | -| MaxEntries | Int32 | false | 40000 | Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact Should match the average amount of log files written for the intended time range filtered | -| DisableTimeCache | SwitchParameter | false | False | Switch to disable the time cache on a check. If this parameter is set the time cache is disabled. After the check has been run once, the next check instance will filter through the eventlog from the point the last check ended. This is due to the time cache, when disabled the whole eventlog is checked instead. | +| After | Object | false | | Defines the starting point on which timeframe the plugin will start to read event log information.
Using 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours.
For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:

"2024/01/01 12:00:00": Will start reading eventlogs after the 1st January 2024 12:00 CET
"2024/01/15": Will start reading eventlogs after the 15th January 2024 00:00 CET
"4h": Will read the past 4 hours
"1d": Will read the past day (24 hours)

Allowed units for time metrics: ms, s, m, h, d, w, M, y

Example
 Start of EventLog       Plugin Execution
v After 4h v
|--------------------|-----------------|
10:00 12:00 16:00
| Not fetched | Fetched |
| +| Before | Object | false | | Defines the end point on which timeframe the plugin will stop to read event log information.
Using 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be
used in combination with the "-After" argument. As example, you could provide "-After 6h" to start reading all eventlogs from the past
6 hours, and use "-Before 2h" to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours
have been ignored.
For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples:

"2024/01/01 12:00:00": Will stop reading eventlogs after the 1st January 2024 12:00 CET
"2024/01/15": Will stop reading eventlogs after the 15th January 2024 00:00 CET
"4h": Will ignore eventlogs of the past 4 hours
"1d": Will ignore eventlogs of the past day (24 hours)

Allowed units for time metrics: ms, s, m, h, d, w, M, y

Example
 Start of EventLog        Plugin Execution
v After 6h Before 2h v
|-------------|------------------|------|
8:00 10:00 14:00 16:00
| Not fetched | Fetched | Not fetchhed
| +| MaxEntries | Int32 | false | 40000 | Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact
Should match the average amount of log files written for the intended time range filtered | +| DisableTimeCache | SwitchParameter | false | False | Switch to disable the time cache on a check. If this parameter is set the time cache is disabled.
After the check has been run once, the next check instance will filter through the eventlog from the point the last check ended.
This is due to the time cache, when disabled the whole eventlog is checked instead. | | NoPerfData | SwitchParameter | false | False | Used to disable PerfData. | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples @@ -57,46 +57,86 @@ Invoke-IcingaCheckEventlog -LogName Application -IncludeEntryType Warning -Warni ### Example Output 1 ```powershell -[CRITICAL] Check package "EventLog" - [CRITICAL] EventId 642 [WARNING] EventId 1008, EventId 2002, EventId 642 -\_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 2002: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 09:31:36] - [27.08.2020 22:57:40] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 14:50:37] - [17.08.2020 19:41:00] there occurred 391 event(s)." - \_ [WARNING] EventId 642: Value "391" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 14:50:37] - [17.08.2020 19:41:00] there occurred 391 event(s)." - \_ [WARNING] EventId 642: Value "391" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 15:51:00] - [17.08.2020 19:41:00] there occurred 298 event(s)." - \_ [WARNING] EventId 642: Value "298" is greater than threshold "100" -\_ [CRITICAL] Check package "Between: [17.08.2020 19:56:38] - [27.08.2020 09:56:35] there occurred 3539 event(s)." - \_ [CRITICAL] EventId 642: Value "3539" is greater than threshold "1000" -\_ [CRITICAL] Check package "Between: [17.08.2020 19:56:38] - [27.08.2020 09:56:35] there occurred 3539 event(s)." - \_ [CRITICAL] EventId 642: Value "3539" is greater than threshold "1000" -\_ [CRITICAL] Check package "Between: [17.08.2020 20:03:07] - [27.08.2020 09:56:35] there occurred 2757 event(s)." - \_ [CRITICAL] EventId 642: Value "2757" is greater than threshold "1000" +[WARNING] Eventlog Application: 1 Warning 2 Ok [WARNING] Event source Icinga 2 +\_ [WARNING] Event source Icinga 2 + \_ [WARNING] Found 123 event(s) for event id 1 in timeframe [03/12/2024 16:37:54] - [03/14/2024 11:07:37] + \_ [WARNING] Number of events found for Id 1: 123 is greater than threshold 100 +| '1::ifw_eventlog::count'=123c;; '1008::ifw_eventlog::count'=11c;; '10010::ifw_eventlog::count'=11c;; ``` ### Example Command 2 ```powershell -Invoke-IcingaCheckEventlog -LogName Application -IncludeEntryType Warning -Warning 100 -Critical 1000 -IncludeEventId 1008 +Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 -After 4h -Before 2h ``` ### Example Output 2 ```powershell -[WARNING] Check package "EventLog" - [WARNING] EventId 1008 -\_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -\_ [WARNING] Check package "Between: [16.08.2020 09:31:36] - [27.08.2020 22:57:40] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" -| 'eventid_1008'=726c;; +[OK] Eventlog Application: 3 Ok +\_ [OK] Event source Icinga 2 + \_ [OK] Found 379 event(s) for event id 1 in timeframe [03/14/2024 07:42:57] - [03/14/2024 09:38:06] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min); + \_ [OK] Number of events found for Id 1: 379 +\_ [OK] Event source Microsoft-Windows-Security-SPP + \_ [OK] Found 1 event(s) for event id 16384 in timeframe [03/14/2024 09:09:18] - [03/14/2024 09:09:18] + \_ [OK] Event Message: Successfully scheduled Software Protection service for re-start at 2024-03-15T08:07:18Z. Reason: RulesEngine. + \_ [OK] Number of events found for Id 16384: 1 + \_ [OK] Found 1 event(s) for event id 16394 in timeframe [03/14/2024 09:08:00] - [03/14/2024 09:08:00] + \_ [OK] Event Message: Offline downlevel migration succeeded. + \_ [OK] Number of events found for Id 16394: 1 + \_ [OK] Found 1 event(s) for event id 8198 in timeframe [03/14/2024 09:08:04] - [03/14/2024 09:08:04] + \_ [OK] Event Message: License Activation (slui.exe) failed with the following error code: + \_ [OK] Number of events found for Id 8198: 1 + \_ [OK] Found 2 event(s) for event id 1003 in timeframe [03/14/2024 09:08:04] - [03/14/2024 09:08:04] + \_ [OK] Event Message: The Software Protection service has completed licensing status check. + \_ [OK] Number of events found for Id 1003: 2 +\_ [OK] Event source SceCli + \_ [OK] Found 1 event(s) for event id 1704 in timeframe [03/14/2024 09:09:32] - [03/14/2024 09:09:32] + \_ [OK] Event Message: Security policy in the Group policy objects has been applied successfully. + \_ [OK] Number of events found for Id 1704: 1 +| '1::ifw_eventlog::count'=379c;; '1003::ifw_eventlog::count'=2c;; '1704::ifw_eventlog::count'=1c;; '8198::ifw_eventlog::count'=1c;; '16384::ifw_eventlog::count'=1c;; '16394::ifw_eventlog::count'=1c;; +``` + +### Example Command 3 + +```powershell +Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 -After '2024/03/14 10:00' +``` + +### Example Output 3 + +```powershell +[OK] Eventlog Application: 2 Ok +\_ [OK] Event source Icinga 2 + \_ [OK] Found 637 event(s) for event id 1 in timeframe [03/14/2024 10:00:04] - [03/14/2024 11:40:11] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (12/min 60/5min 180/15min); + \_ [OK] Number of events found for Id 1: 637 +\_ [OK] Event source Microsoft-Windows-Security-SPP + \_ [OK] Found 2 event(s) for event id 16384 in timeframe [03/14/2024 10:22:07] - [03/14/2024 11:27:26] + \_ [OK] Event Message: Successfully scheduled Software Protection service for re-start at 2024-03-15T08:07:26Z. Reason: RulesEngine. + \_ [OK] Number of events found for Id 16384: 2 + \_ [OK] Found 2 event(s) for event id 16394 in timeframe [03/14/2024 10:21:36] - [03/14/2024 11:26:56] + \_ [OK] Event Message: Offline downlevel migration succeeded. + \_ [OK] Number of events found for Id 16394: 2 +| '1::ifw_eventlog::count'=637c;; '16384::ifw_eventlog::count'=2c;; '16394::ifw_eventlog::count'=2c;; +``` + +### Example Command 4 + +```powershell +Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 +``` + +### Example Output 4 + +```powershell +[OK] Eventlog Application: 1 Ok +\_ [OK] Event source Icinga 2 + \_ [OK] Found 2 event(s) for event id 1 in timeframe [03/14/2024 11:09:37] - [03/14/2024 11:09:47] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (36/min 180/5min 540/15min); + \_ [OK] Number of events found for Id 1: 2 +| '1::ifw_eventlog::count'=2c;; ``` diff --git a/doc/plugins/07-Invoke-IcingaCheckFirewall.md b/doc/plugins/07-Invoke-IcingaCheckFirewall.md index fbfe4abf..f10d2d94 100644 --- a/doc/plugins/07-Invoke-IcingaCheckFirewall.md +++ b/doc/plugins/07-Invoke-IcingaCheckFirewall.md @@ -17,9 +17,9 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | FirewallProfile | Array | false | | Used to specify an array of profiles to check. Available profiles are 'Domain', 'Public', 'Private' | -| Enabled | SwitchParameter | false | False | Used to specify whether the firewall profiles should be enabled or disabled. -Enabled $TRUE translates to enabled, while not being specified translates to disabled. | +| Enabled | SwitchParameter | false | False | Used to specify whether the firewall profiles should be enabled or disabled.

-Enabled $TRUE translates to enabled, while not being specified translates to disabled. | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/08-Invoke-IcingaCheckICMP.md b/doc/plugins/08-Invoke-IcingaCheckICMP.md index 69d648e4..cecc280c 100644 --- a/doc/plugins/08-Invoke-IcingaCheckICMP.md +++ b/doc/plugins/08-Invoke-IcingaCheckICMP.md @@ -27,7 +27,7 @@ No special permissions required. | IPv4 | SwitchParameter | false | False | Force the usage of IPv4 addresses for ICMP calls by using a hostname | | IPv6 | SwitchParameter | false | False | Force the usage of IPv6 addresses for ICMP calls by using a hostname | | NoPerfData | SwitchParameter | false | False | Set this argument to not write any performance data | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/09-Invoke-IcingaCheckMemory.md b/doc/plugins/09-Invoke-IcingaCheckMemory.md index 5ea4419f..19f64a4e 100644 --- a/doc/plugins/09-Invoke-IcingaCheckMemory.md +++ b/doc/plugins/09-Invoke-IcingaCheckMemory.md @@ -27,10 +27,10 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Warning | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | -| Critical | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | -| PageFileWarning | Object | false | | Allows to check the used page file and compare it against a size value, like "200MB" This is using the default Icinga threshold handling. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | -| PageFileCritical | Object | false | | Allows to check the used page file and compare it against a size value, like "200MB" This is using the default Icinga threshold handling. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | +| Warning | Object | false | | 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.
It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | +| Critical | Object | false | | 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.
It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | +| PageFileWarning | Object | false | | Allows to check the used page file and compare it against a size value, like "200MB"
This is using the default Icinga threshold handling.
It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | +| PageFileCritical | Object | false | | Allows to check the used page file and compare it against a size value, like "200MB"
This is using the default Icinga threshold handling.
It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. | | IncludePageFile | Array | false | @() | Allows to filter for page files being included for the check | | ExcludePageFile | Array | false | @() | Allows to filter for page files being excluded for the check | | Verbosity | Int32 | false | 0 | | diff --git a/doc/plugins/10-Invoke-IcingaCheckNLA.md b/doc/plugins/10-Invoke-IcingaCheckNLA.md index 6da362d6..197a27bf 100644 --- a/doc/plugins/10-Invoke-IcingaCheckNLA.md +++ b/doc/plugins/10-Invoke-IcingaCheckNLA.md @@ -16,7 +16,7 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | Profile | String | false | | Used to specify the profile to check. Available profiles are 'DomainAuthenticated', 'Public', 'Private' | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | NICs | Array | false | | Used to specify the NICs where to check the filewall profile. When not presented every nic which is active will be checked | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | diff --git a/doc/plugins/11-Invoke-IcingaCheckPerfcounter.md b/doc/plugins/11-Invoke-IcingaCheckPerfcounter.md index cb59c1a9..db68f56a 100644 --- a/doc/plugins/11-Invoke-IcingaCheckPerfcounter.md +++ b/doc/plugins/11-Invoke-IcingaCheckPerfcounter.md @@ -26,11 +26,11 @@ To execute this plugin you will require to grant the following user permissions. | PerfCounter | Array | false | | Used to specify an array of performance counter to check against. | | Warning | Object | false | | Used to specify a Warning threshold. | | Critical | Object | false | | Used to specify a Critical threshold. | -| IncludeCounter | Array | false | @() | An [array] of strings to filter for, only including the provided counters. Allows wildcard "*" usage | -| ExcludeCounter | Array | false | @() | An [array] of strings to filter for, excluding the provided counters. Allows wildcard "*" usage | -| IgnoreEmptyChecks | SwitchParameter | false | False | Overrides the default behaviour of the plugin in case no check element was found and prevent the plugin from exiting UNKNOWN and returns OK instead | +| IncludeCounter | Array | false | @() | An [array] of strings to filter for, only including the provided counters. Allows
wildcard "*" usage | +| ExcludeCounter | Array | false | @() | An [array] of strings to filter for, excluding the provided counters. Allows
wildcard "*" usage | +| IgnoreEmptyChecks | SwitchParameter | false | False | Overrides the default behaviour of the plugin in case no check element was found and
prevent the plugin from exiting UNKNOWN and returns OK instead | | NoPerfData | SwitchParameter | false | False | Set this argument to not write any performance data | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/12-Invoke-IcingaCheckProcessCount.md b/doc/plugins/12-Invoke-IcingaCheckProcessCount.md index 1dd9004b..a909d87a 100644 --- a/doc/plugins/12-Invoke-IcingaCheckProcessCount.md +++ b/doc/plugins/12-Invoke-IcingaCheckProcessCount.md @@ -32,7 +32,7 @@ To execute this plugin you will require to grant the following user permissions. | Critical | Object | false | | Used to specify a Critical threshold. In this case an integer value. | | Process | Array | false | @() | Used to specify an array of processes to count and match against. e.g. conhost,wininit | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/13-Invoke-IcingaCheckService.md b/doc/plugins/13-Invoke-IcingaCheckService.md index 86a295f8..825bef90 100644 --- a/doc/plugins/13-Invoke-IcingaCheckService.md +++ b/doc/plugins/13-Invoke-IcingaCheckService.md @@ -24,12 +24,12 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Service | Array | false | @() | Used to specify an array of services which should be checked against the status. Supports '*' for wildcards. | -| Exclude | Array | false | @() | Allows to exclude services which might come in handy for checking services which are configured to start automatically on Windows but are not running and weren't exited properly. | +| Service | Array | false | @() | Used to specify an array of services which should be checked against the status. Supports '*' for
wildcards. | +| Exclude | Array | false | @() | Allows to exclude services which might come in handy for checking services which are configured to start automatically
on Windows but are not running and weren't exited properly. | | Status | String | false | Running | Status for the specified service or services to check against. | -| FilterStartupType | Array | false | @() | Allows to include only services with a specific startup type inside the monitoring, in case you check for a list of specific services by using `-Service` | -| MitigateUnknown | SwitchParameter | false | False | This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this check | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| FilterStartupType | Array | false | @() | Allows to include only services with a specific startup type inside the monitoring,
in case you check for a list of specific services by using `-Service` | +| MitigateUnknown | SwitchParameter | false | False | This will tell the plugin to return OK instead of UNKNOWN, in case no service was added to this
check | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | diff --git a/doc/plugins/14-Invoke-IcingaCheckUpdates.md b/doc/plugins/14-Invoke-IcingaCheckUpdates.md index 46d67d2c..e9074b4c 100644 --- a/doc/plugins/14-Invoke-IcingaCheckUpdates.md +++ b/doc/plugins/14-Invoke-IcingaCheckUpdates.md @@ -20,7 +20,7 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| UpdateFilter | Array | false | @() | Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates beyond the provided categories | +| UpdateFilter | Array | false | @() | Allows to filter for names of updates being included in the total update count, allowing a specific monitoring and filtering of certain updates
beyond the provided categories | | Warning | Object | false | | The warning threshold for the total pending update count on the Windows machine | | Critical | Object | false | | The critical threshold for the total pending update count on the Windows machine | | WarningSecurity | Object | false | | The warning threshold for the security update count on the Windows machine | @@ -31,10 +31,10 @@ To execute this plugin you will require to grant the following user permissions. | CriticalDefender | Object | false | | The critical threshold for the Microsoft Defender update count on the Windows machine | | WarningOther | Object | false | | The warning threshold for all other updates on the Windows machine | | CriticalOther | Object | false | | The critical threshold for all other updates on the Windows machine | -| WarnOnReboot | SwitchParameter | false | False | Checks if there is a pending reboot on the system to finalize Windows Updates and returns warning if one is pending | -| CritOnReboot | SwitchParameter | false | False | Checks if there is a pending reboot on the system to finalize Windows Updates and returns critical if one is pending | +| WarnOnReboot | SwitchParameter | false | False | Checks if there is a pending reboot on the system to finalize Windows Updates and returns
warning if one is pending | +| CritOnReboot | SwitchParameter | false | False | Checks if there is a pending reboot on the system to finalize Windows Updates and returns
critical if one is pending | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/15-Invoke-IcingaCheckUptime.md b/doc/plugins/15-Invoke-IcingaCheckUptime.md index e44ec3e7..e5f34415 100644 --- a/doc/plugins/15-Invoke-IcingaCheckUptime.md +++ b/doc/plugins/15-Invoke-IcingaCheckUptime.md @@ -20,10 +20,10 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Warning | String | false | | Used to specify a Warning threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y | -| Critical | String | false | | Used to specify a Critical threshold. In this case a string. Allowed units include: ms, s, m, h, d, w, M, y | +| Warning | String | false | | Used to specify a Warning threshold. In this case a string.
Allowed units include: ms, s, m, h, d, w, M, y | +| Critical | String | false | | Used to specify a Critical threshold. In this case a string.
Allowed units include: ms, s, m, h, d, w, M, y | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/16-Invoke-IcingaCheckUsedPartitionSpace.md b/doc/plugins/16-Invoke-IcingaCheckUsedPartitionSpace.md index df115465..ed7bba58 100644 --- a/doc/plugins/16-Invoke-IcingaCheckUsedPartitionSpace.md +++ b/doc/plugins/16-Invoke-IcingaCheckUsedPartitionSpace.md @@ -33,15 +33,15 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Warning | Object | false | | Used to specify a Warning threshold. This can either be a byte-value type like '10GB' or a %-value, like '10%' | -| Critical | Object | false | | Used to specify a Critical threshold. This can either be a byte-value type like '10GB' or a %-value, like '10%' | -| Include | Array | false | @() | Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked. e.g. 'C:','D:' | -| Exclude | Array | false | @() | Used to specify an array of partitions to be excluded. e.g. 'C:','D:' | -| IgnoreEmptyChecks | SwitchParameter | false | False | Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example). Instead of returning `Unknown` the plugin will return `Ok` instead if this argument is set. | +| Warning | Object | false | | Used to specify a Warning threshold. This can either be a byte-value type like '10GB'
or a %-value, like '10%' | +| Critical | Object | false | | Used to specify a Critical threshold. This can either be a byte-value type like '10GB'
or a %-value, like '10%' | +| Include | Array | false | @() | Used to specify an array of partitions to be included. If not set, the check expects that all not excluded partitions should be checked.
e.g. 'C:','D:' | +| Exclude | Array | false | @() | Used to specify an array of partitions to be excluded.
e.g. 'C:','D:' | +| IgnoreEmptyChecks | SwitchParameter | false | False | Overrides the default behaviour of the plugin in case no check element is left for being checked (if all elements are filtered out for example).
Instead of returning `Unknown` the plugin will return `Ok` instead if this argument is set. | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin | | SkipUnknown | SwitchParameter | false | False | Allows to set Unknown partitions to Ok in case no metrics could be loaded. | | CheckUsedSpace | SwitchParameter | false | False | Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/17-Invoke-IcingaCheckUsers.md b/doc/plugins/17-Invoke-IcingaCheckUsers.md index f2fdeff7..ba1242c8 100644 --- a/doc/plugins/17-Invoke-IcingaCheckUsers.md +++ b/doc/plugins/17-Invoke-IcingaCheckUsers.md @@ -24,7 +24,7 @@ To execute this plugin you will require to grant the following user permissions. | Warning | Object | false | | Used to specify a Warning threshold. In this case an integer value. | | Critical | Object | false | | Used to specify a Critical threshold. In this case an integer value. | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/18-Invoke-IcingaCheckTimeSync.md b/doc/plugins/18-Invoke-IcingaCheckTimeSync.md index 4bdf6ebb..47c022dc 100644 --- a/doc/plugins/18-Invoke-IcingaCheckTimeSync.md +++ b/doc/plugins/18-Invoke-IcingaCheckTimeSync.md @@ -16,7 +16,7 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | Server | String | false | | The NTP Server you want to connect to. | -| TimeOffset | Object | false | 0 | 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. | +| TimeOffset | Object | false | 0 | 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. | | Warning | Object | false | | Used to specify a offset Warning threshold e.g 10ms or 0.01s | | Critical | Object | false | | Used to specify a offset Critical threshold e.g 20ms or 0.02s. | | Timeout | Int32 | false | 10 | Seconds before connection times out (default: 10) | @@ -24,7 +24,7 @@ No special permissions required. | Port | Int32 | false | 123 | Port number (default: 123) | | IgnoreService | SwitchParameter | false | False | Ignores the W32Time service during check execution and will not throw warning or critical in case the service is not running | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/19-Invoke-IcingaCheckScheduledTask.md b/doc/plugins/19-Invoke-IcingaCheckScheduledTask.md index a4f35a80..04ece03d 100644 --- a/doc/plugins/19-Invoke-IcingaCheckScheduledTask.md +++ b/doc/plugins/19-Invoke-IcingaCheckScheduledTask.md @@ -17,18 +17,18 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| TaskName | Array | false | @() | A list of tasks to check for. If your tasks contain spaces, wrap them around a ' to ensure they are properly handled as string | +| TaskName | Array | false | @() | A list of tasks to check for. If your tasks contain spaces, wrap them around a ' to ensure they are
properly handled as string | | State | Array | false | @() | The state a task should currently have for the plugin to return [OK] | | IgnoreExitCodes | Array | false | @() | A list of exit codes which will be considered as [OK]. By default every task which did not exit with 0 will be handled as critical. | -| WarningMissedRuns | Object | false | | Defines a warning threshold for missed runs for filtered tasks. Supports Icinga default threshold syntax. | -| CriticalMissedRuns | Object | false | | Defines a critical threshold for missed runs for filtered tasks. Supports Icinga default threshold syntax. | -| WarningLastRunTime | String | false | | Allows to specify a time interval, on which the check will return warning based on the last run time of a task and the current time. The value will be subtracted from the current time Values have to be specified as time units like, -10m, -1d, -1w, -2M, -1y | -| CriticalLastRunTime | String | false | | Allows to specify a time interval, on which the check will return critical based on the last run time of a task and the current time. The value will be subtracted from the current time Values have to be specified as time units like, -10m, -1d, -1w, -2M, -1y | -| WarningNextRunTime | String | false | | Allows to specify a time interval, on which the check will return warning based on the next run time of a task and the current time. The value will be added to the current time Values have to be specified as time units like, 10m, 1d, 1w, 2M, 1y | -| CriticalNextRunTime | String | false | | Allows to specify a time interval, on which the check will return critical based on the next run time of a task and the current time. The value will be added to the current time Values have to be specified as time units like, 10m, 1d, 1w, 2M, 1y | -| IgnoreLastRunTime | SwitchParameter | false | False | By default every task which did not exit with 0 will be handled as critical. If you set this flag, the exit code of the task is ignored during check execution | +| WarningMissedRuns | Object | false | | Defines a warning threshold for missed runs for filtered tasks.

Supports Icinga default threshold syntax. | +| CriticalMissedRuns | Object | false | | Defines a critical threshold for missed runs for filtered tasks.

Supports Icinga default threshold syntax. | +| WarningLastRunTime | String | false | | Allows to specify a time interval, on which the check will return warning based on the last run time
of a task and the current time. The value will be subtracted from the current time

Values have to be specified as time units like, -10m, -1d, -1w, -2M, -1y | +| CriticalLastRunTime | String | false | | Allows to specify a time interval, on which the check will return critical based on the last run time
of a task and the current time. The value will be subtracted from the current time

Values have to be specified as time units like, -10m, -1d, -1w, -2M, -1y | +| WarningNextRunTime | String | false | | Allows to specify a time interval, on which the check will return warning based on the next run time
of a task and the current time. The value will be added to the current time

Values have to be specified as time units like, 10m, 1d, 1w, 2M, 1y | +| CriticalNextRunTime | String | false | | Allows to specify a time interval, on which the check will return critical based on the next run time
of a task and the current time. The value will be added to the current time

Values have to be specified as time units like, 10m, 1d, 1w, 2M, 1y | +| IgnoreLastRunTime | SwitchParameter | false | False | By default every task which did not exit with 0 will be handled as critical. If you set this flag,
the exit code of the task is ignored during check execution | | NoPerfData | SwitchParameter | false | False | Set this argument to not write any performance data | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/20-Invoke-IcingaCheckDiskHealth.md b/doc/plugins/20-Invoke-IcingaCheckDiskHealth.md index 15280529..32ae5e9d 100644 --- a/doc/plugins/20-Invoke-IcingaCheckDiskHealth.md +++ b/doc/plugins/20-Invoke-IcingaCheckDiskHealth.md @@ -46,8 +46,8 @@ To execute this plugin you will require to grant the following user permissions. | DiskReadSecCritical | Object | false | | Critical threshold for disk Reads/sec is the rate of read operations on the disk. | | DiskWriteSecWarning | Object | false | | Warning threshold for disk Writes/sec is the rate of write operations on the disk. | | DiskWriteSecCritical | Object | false | | Critical threshold for disk Writes/sec is the rate of write operations on the disk. | -| DiskQueueLenWarning | Object | false | | 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. | -| DiskQueueLenCritical | Object | false | | 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. | +| DiskQueueLenWarning | Object | false | | 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. | +| DiskQueueLenCritical | Object | false | | 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. | | DiskQueueAvgLenWarning | Object | false | | 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. | | DiskQueueAvgLenCritical | Object | false | | 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. | | DiskReadByteSecWarning | Object | false | | Warning threshold for disk Read Bytes/sec is the rate at which bytes are transferred from the disk during read operations. | @@ -64,7 +64,7 @@ To execute this plugin you will require to grant the following user permissions. | IgnoreReadOnlyDisks | SwitchParameter | false | False | Ignores any disk which is having the state `Read Only` and returns `Ok` instead of `Warning` for this specific state | | CheckLogicalOnly | SwitchParameter | false | False | Set this to include only disks that have drive letters like C:, D:, ..., assigned to them. Can be combined with include/exclude filters | | NoPerfData | SwitchParameter | false | False | | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/21-Invoke-IcingaCheckNetworkInterface.md b/doc/plugins/21-Invoke-IcingaCheckNetworkInterface.md index 041988fc..6aba11ab 100644 --- a/doc/plugins/21-Invoke-IcingaCheckNetworkInterface.md +++ b/doc/plugins/21-Invoke-IcingaCheckNetworkInterface.md @@ -30,20 +30,20 @@ To execute this plugin you will require to grant the following user permissions. | PacketReceivedSecCrit | Object | false | | Critical threshold for network Interface Packets Received/sec is the rate at which packets are received on the network interface. | | PacketSentSecWarn | Object | false | | Warning threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface. | | PacketSentSecCrit | Object | false | | Critical threshold for network Interface Packets Sent/sec is the rate at which packets are sent on the network interface. | -| PackteReceivedErrorWarn | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PackteReceivedErrorCrit | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PackteOutboundErrorWarn | Object | false | | Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted because of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PackteOutboundErrorCrit | Object | false | | Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted because of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PacketReceivedDiscardedWarn | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PacketReceivedDiscardedCrit | Object | false | | Critical 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PacketOutboundDiscardedWarn | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| PacketOutboundDiscardedCrit | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | -| DeviceTotalBytesSecWarn | Object | false | | 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. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | -| DeviceTotalBytesSecCrit | Object | false | | 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. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | -| DeviceSentBytesSecWarn | Object | false | | Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | -| DeviceSentBytesSecCrit | Object | false | | Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | -| DeviceReceivedBytesSecWarn | Object | false | | Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | -| DeviceReceivedBytesSecCrit | Object | false | | Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| PackteReceivedErrorWarn | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want
a percentage comparison. Default (c) | +| PackteReceivedErrorCrit | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | +| PackteOutboundErrorWarn | Object | false | | Warning threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted
because of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | +| PackteOutboundErrorCrit | Object | false | | Critical threshold for network Interface Packets Outbound Errors is the number of outbound packets that could not be transmitted
because of errors. It is possible to enter e.g. 10% as threshold value if you want a percentage comparison. Default (c) | +| PacketReceivedDiscardedWarn | Object | false | | 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. It is possible to enter e.g. 10% as
threshold value if you want a percentage comparison. Default (c) | +| PacketReceivedDiscardedCrit | Object | false | | Critical 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. It is possible to enter e.g. 10% as
threshold value if you want a percentage comparison. Default (c) | +| PacketOutboundDiscardedWarn | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want
a percentage comparison. Default (c) | +| PacketOutboundDiscardedCrit | Object | false | | 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. It is possible to enter e.g. 10% as threshold value if you want
a percentage comparison. Default (c) | +| DeviceTotalBytesSecWarn | Object | false | | 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. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| DeviceTotalBytesSecCrit | Object | false | | 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. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| DeviceSentBytesSecWarn | Object | false | | Warning threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing
characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| DeviceSentBytesSecCrit | Object | false | | Critical threshold for network Interface Bytes Sent/sec is the rate at which bytes are sent over each network adapter, including framing
characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| DeviceReceivedBytesSecWarn | Object | false | | Warning threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including
framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | +| DeviceReceivedBytesSecCrit | Object | false | | Critical threshold for network Interface Bytes Received/sec is the rate at which bytes are received over each network adapter, including
framing characters. It is also possible to enter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B) | | LinkSpeedWarn | Object | false | | Warning threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface. | | LinkSpeedCrit | Object | false | | Critical threshold for the transmit link speed in (10 MBit, 100 MBit, 1 GBit, 10 GBit, 100 GBit, ...) of the network Interface. | | IfTeamStatusWarn | Object | false | | Warning threshold for the Status of a network Interface Teams. | @@ -55,9 +55,9 @@ To execute this plugin you will require to grant the following user permissions. | IfOperationalStatusCrit | Object | false | | Critical threshold for the current network interface operational status. | | IfConnectionStatusWarn | Object | false | | Warning threshold for the state of the network adapter connection to the network. | | IfConnectionStatusCrit | Object | false | | Critical threshold for the state of the network adapter connection to the network. | -| IncludeHidden | SwitchParameter | false | False | Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not broadcasting its ID. | +| IncludeHidden | SwitchParameter | false | False | Set this argument if you want to include hidden network Adapter for checks. It is a network which is available but is not
broadcasting its ID. | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin | -| Verbosity | Object | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Object | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/21-Invoke-IcingaCheckStoragePool.md b/doc/plugins/21-Invoke-IcingaCheckStoragePool.md index 559d44a5..365ace5c 100644 --- a/doc/plugins/21-Invoke-IcingaCheckStoragePool.md +++ b/doc/plugins/21-Invoke-IcingaCheckStoragePool.md @@ -21,23 +21,23 @@ To execute this plugin you will require to grant the following user permissions. | --- | --- | --- | --- | --- | | IncludeStoragePool | Array | false | @() | With this parameter you can filter out which StoragePools you want to check, provided you have several StoragePools on your system. | | ExcludeStoragePool | Array | false | @() | With this parameter you can filter out which StoragePools you do not want to check, provided you have several StoragePools on your system. | -| FreeSpaceWarning | Object | false | | 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 | -| FreeSpaceCritical | Object | false | | 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 | +| FreeSpaceWarning | Object | false | | 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 | +| FreeSpaceCritical | Object | false | | 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 | | TotalUsedWarning | Object | false | | Used to specify TotalUsed Warning threshold in GB. | | TotalUsedCritical | Object | false | | Used to specify TotalUsed Critical threshold in GB. | | IsReadOnlyCritical | Object | false | | Used to specify a Critical threshold for the StoragePool IsReadOnly Attr. | | CapacityWarning | Object | false | | Used to specify a Warning threshold for the StoragePool Capacity. | | CapacityCritical | Object | false | | Used to specify a Critical threshold for the StoragePool Capacity. | -| ClearOnDeallocateCritical | Object | false | | Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when unmapped or removed from the storage pool. | +| ClearOnDeallocateCritical | Object | false | | Critical threshold for StoragePool ClearOnDeallocate is, if physical disks should be zeroed (cleared of all data) when
unmapped or removed from the storage pool. | | SupportsDeduplicationCritical | Object | false | | Critical threshold StoragePool SupportsDeduplication is, whether the storage pool supports data duplication or not. | -| IsPowerProtectedCritical | Object | false | | 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. | +| IsPowerProtectedCritical | Object | false | | 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. | | HealthStatusWarning | Object | false | | Warning threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels. | | HealthStatusCritical | Object | false | | Critical threshold for Health of StoragePool is whether or not the storage pool can maintain the required redundancy levels. | -| RetireMissingPhysicalDisksWarning | Object | false | | 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. | -| RetireMissingPhysicalDisksCritical | Object | false | | 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. | -| IncludePrimordial | SwitchParameter | false | False | A primordial pool, also known as the 'available storage' pool is where storage capacity is drawn and returned in the creation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to true if you also want to check Primordial StoragePools. Default to false. | +| RetireMissingPhysicalDisksWarning | Object | false | | 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. | +| RetireMissingPhysicalDisksCritical | Object | false | | 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. | +| IncludePrimordial | SwitchParameter | false | False | A primordial pool, also known as the 'available storage' pool is where storage capacity is drawn and returned in the
creation and deletion of concrete storage pools. Primordial pools cannot be created or deleted. You can set this to
true if you also want to check Primordial StoragePools. Default to false. | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin. Default to FALSE. | -| Verbosity | Object | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Object | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/23-Invoke-IcingaCheckTCP.md b/doc/plugins/23-Invoke-IcingaCheckTCP.md index e4f2b0a8..0b002881 100644 --- a/doc/plugins/23-Invoke-IcingaCheckTCP.md +++ b/doc/plugins/23-Invoke-IcingaCheckTCP.md @@ -23,11 +23,11 @@ No special permissions required. | --- | --- | --- | --- | --- | | Address | String | false | | The IP address or FQDN of the target host | | Ports | Array | false | @() | A single or a list of ports to check on the target address | -| Negate | SwitchParameter | false | False | By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument, the plugin will return [CRITICAL] for successful connections instead | -| Warning | Object | false | | A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms. Allowed units: ms, s, m, h, d, w, M, y | -| Critical | Object | false | | A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms. Allowed units: ms, s, m, h, d, w, M, y | +| Negate | SwitchParameter | false | False | By default the plugin will return [CRITICAL] in case connections to a port are not possible. By setting this argument,
the plugin will return [CRITICAL] for successful connections instead | +| Warning | Object | false | | A warning threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.

Allowed units: ms, s, m, h, d, w, M, y | +| Critical | Object | false | | A critical threshold for the connection time in seconds. Allows the usage of unit additions, like 100ms.

Allowed units: ms, s, m, h, d, w, M, y | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin. Default to FALSE. | -| Verbosity | Object | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Object | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/24-Invoke-IcingaCheckUNCPath.md b/doc/plugins/24-Invoke-IcingaCheckUNCPath.md index b807c3f3..6d63ac51 100644 --- a/doc/plugins/24-Invoke-IcingaCheckUNCPath.md +++ b/doc/plugins/24-Invoke-IcingaCheckUNCPath.md @@ -27,14 +27,14 @@ who can authenticate without a prompt | Path | String | false | | The path to a volume or network share you want to monitor, like "\\example.com\Home" or "C:\ClusterSharedVolume\Volume1" | | User | String | false | | Provide a username and/or domain to run this check for. The format can either be 'domain\user' or 'domain@user' | | Password | SecureString | false | | The password to authenticate the given user for. Has to be a secure string | -| DisplayAlias | String | false | | Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value instead of shorten the output and make it more visual appealing. | -| Warning | Object | false | | A warning threshold for the shares free space in either % or byte units, like "20%:" or "50GB:" Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end of your input to check for "current value < threshold" like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | -| Critical | Object | false | | A critical threshold for the shares free space in either % or byte units, like "20%:" or "50GB:" Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end of your input to check for "current value < threshold" like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | -| WarningTotal | Object | false | | A warning threshold for the shares total free space in byte units, like "50GB:" Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end of your input to check for "current value < threshold" like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | -| CriticalTotal | Object | false | | A warning threshold for the shares total free space in byte units, like "50GB:" Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end of your input to check for "current value < threshold" like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | +| DisplayAlias | String | false | | Modifies the plugin output to not display the value provided within the `-Path` argument but to use this string value
instead of shorten the output and make it more visual appealing. | +| Warning | Object | false | | A warning threshold for the shares free space in either % or byte units, like "20%:" or "50GB:"
Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end
of your input to check for "current value < threshold" like in the previous example

Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | +| Critical | Object | false | | A critical threshold for the shares free space in either % or byte units, like "20%:" or "50GB:"
Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end
of your input to check for "current value < threshold" like in the previous example

Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | +| WarningTotal | Object | false | | A warning threshold for the shares total free space in byte units, like "50GB:"
Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end
of your input to check for "current value < threshold" like in the previous example

Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | +| CriticalTotal | Object | false | | A warning threshold for the shares total free space in byte units, like "50GB:"
Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ":" at the end
of your input to check for "current value < threshold" like in the previous example

Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB | | CheckUsedSpace | SwitchParameter | false | False | Switches the behaviour of the plugin from checking with threshold for the free space (default) to the remaining (used) space instead | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin. Default to FALSE. | -| Verbosity | Object | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Object | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/25-Invoke-IcingaCheckHTTPStatus.md b/doc/plugins/25-Invoke-IcingaCheckHTTPStatus.md index 1ecee4a5..d086af94 100644 --- a/doc/plugins/25-Invoke-IcingaCheckHTTPStatus.md +++ b/doc/plugins/25-Invoke-IcingaCheckHTTPStatus.md @@ -31,9 +31,9 @@ No special permissions required. | Minimum | Int32 | false | -1 | | | Negate | SwitchParameter | false | False | A switch used to invert check results. | | AddOutputContent | SwitchParameter | false | False | Adds the returned content of a website to the plugin output for debugging purpose | -| ConnectionErrAsCrit | SwitchParameter | false | False | By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this flag, the result will be modified from UNKNOWN to CRITICAL | +| ConnectionErrAsCrit | SwitchParameter | false | False | By default the plugin will return UNKNOWN in case a connection to a webserver is not possible. By using this
flag, the result will be modified from UNKNOWN to CRITICAL | | NoPerfData | SwitchParameter | false | False | Used to disable PerfData. | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/26-Invoke-IcingaCheckMPIO.md b/doc/plugins/26-Invoke-IcingaCheckMPIO.md index 6590aa3c..ddd9e30e 100644 --- a/doc/plugins/26-Invoke-IcingaCheckMPIO.md +++ b/doc/plugins/26-Invoke-IcingaCheckMPIO.md @@ -18,10 +18,10 @@ To execute this plugin you will require to grant the following user permissions. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| Warning | Object | false | | Used to specify a Warning threshold for the number of path defined. Use for example 8: for alerting for less than 8 MPIO paths available | -| Critical | Object | false | | Used to specify a Critical threshold for the number of path defined. Use for example 6: for alerting for less than 6 MPIO paths available | +| Warning | Object | false | | Used to specify a Warning threshold for the number of path defined.
Use for example 8: for alerting for less than 8 MPIO paths available | +| Critical | Object | false | | Used to specify a Critical threshold for the number of path defined.
Use for example 6: for alerting for less than 6 MPIO paths available | | NoPerfData | SwitchParameter | false | False | Disables the performance data output of this plugin | -| Verbosity | Object | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Object | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/27-Invoke-IcingaCheckProcess.md b/doc/plugins/27-Invoke-IcingaCheckProcess.md index 77a6b353..0529d567 100644 --- a/doc/plugins/27-Invoke-IcingaCheckProcess.md +++ b/doc/plugins/27-Invoke-IcingaCheckProcess.md @@ -21,28 +21,28 @@ No special permissions required. | Argument | Type | Required | Default | Description | | --- | --- | --- | --- | --- | -| PageFileWarning | Object | false | | Compares each single process page file usage against the given threshold. Will throw warning if exceeded. Supports % unit to compare the process page file usage for the entire page file space available. Follows the Icinga Plugin threshold guidelines. | -| PageFileCritical | Object | false | | Compares each single process page file usage against the given threshold. Will throw critical if exceeded. Supports % unit to compare the process page file usage for the entire page file space available. Follows the Icinga Plugin threshold guidelines. | -| MemoryWarning | Object | false | | Compares each single process memory usage against the given threshold. Will throw warning if exceeded. Supports % unit to compare the process memory usage for the entire memory space available. Follows the Icinga Plugin threshold guidelines. | -| MemoryCritical | Object | false | | Compares each single process memory usage against the given threshold. Will throw critical if exceeded. Supports % unit to compare the process memory usage for the entire memory space available. Follows the Icinga Plugin threshold guidelines. | -| CPUWarning | Object | false | | Compares each single process cpu usage against the given threshold. Will throw warning if exceeded. Follows the Icinga Plugin threshold guidelines. | -| CPUCritical | Object | false | | Compares each single process cpu usage against the given threshold. Will throw critical if exceeded. Follows the Icinga Plugin threshold guidelines. | -| ThreadCountWarning | Object | false | | Compares each single process thread usage against the given threshold. Will throw warning if exceeded. Follows the Icinga Plugin threshold guidelines. | -| ThreadCountCritical | Object | false | | Compares each single process thread usage against the given threshold. Will throw critical if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalPageFileWarning | Object | false | | Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded. Supports % unit to compare the total process page file usage for the entire page file space available. Follows the Icinga Plugin threshold guidelines. | -| TotalPageFileCritical | Object | false | | Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded. Supports % unit to compare the total process page file usage for the entire page file space available. Follows the Icinga Plugin threshold guidelines. | -| TotalMemoryWarning | Object | false | | Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded. Supports % unit to compare the total process memory usage for the entire memory space available. Follows the Icinga Plugin threshold guidelines. | -| TotalMemoryCritical | Object | false | | Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded. Supports % unit to compare the total process memory usage for the entire memory space available. Follows the Icinga Plugin threshold guidelines. | -| TotalCPUWarning | Object | false | | Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalCPUCritical | Object | false | | Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalThreadCountWarning | Object | false | | Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalThreadCountCritical | Object | false | | Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalProcessCountWarning | Object | false | | Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded. Follows the Icinga Plugin threshold guidelines. | -| TotalProcessCountCritical | Object | false | | Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded. Follows the Icinga Plugin threshold guidelines. | +| PageFileWarning | Object | false | | Compares each single process page file usage against the given threshold. Will throw warning if exceeded.
Supports % unit to compare the process page file usage for the entire page file space available.

Follows the Icinga Plugin threshold guidelines. | +| PageFileCritical | Object | false | | Compares each single process page file usage against the given threshold. Will throw critical if exceeded.
Supports % unit to compare the process page file usage for the entire page file space available.

Follows the Icinga Plugin threshold guidelines. | +| MemoryWarning | Object | false | | Compares each single process memory usage against the given threshold. Will throw warning if exceeded.
Supports % unit to compare the process memory usage for the entire memory space available.

Follows the Icinga Plugin threshold guidelines. | +| MemoryCritical | Object | false | | Compares each single process memory usage against the given threshold. Will throw critical if exceeded.
Supports % unit to compare the process memory usage for the entire memory space available.

Follows the Icinga Plugin threshold guidelines. | +| CPUWarning | Object | false | | Compares each single process cpu usage against the given threshold. Will throw warning if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| CPUCritical | Object | false | | Compares each single process cpu usage against the given threshold. Will throw critical if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| ThreadCountWarning | Object | false | | Compares each single process thread usage against the given threshold. Will throw warning if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| ThreadCountCritical | Object | false | | Compares each single process thread usage against the given threshold. Will throw critical if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalPageFileWarning | Object | false | | Compares page file usage for all processes with the same name against the given threshold. Will throw warning if exceeded.
Supports % unit to compare the total process page file usage for the entire page file space available.

Follows the Icinga Plugin threshold guidelines. | +| TotalPageFileCritical | Object | false | | Compares page file usage for all processes with the same name against the given threshold. Will throw critical if exceeded.
Supports % unit to compare the total process page file usage for the entire page file space available.

Follows the Icinga Plugin threshold guidelines. | +| TotalMemoryWarning | Object | false | | Compares memory usage for all processes with the same name against the given threshold. Will throw warning if exceeded.
Supports % unit to compare the total process memory usage for the entire memory space available.

Follows the Icinga Plugin threshold guidelines. | +| TotalMemoryCritical | Object | false | | Compares memory usage for all processes with the same name against the given threshold. Will throw critical if exceeded.
Supports % unit to compare the total process memory usage for the entire memory space available.

Follows the Icinga Plugin threshold guidelines. | +| TotalCPUWarning | Object | false | | Compares cpu usage for all processes with the same name against the given threshold. Will throw warning if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalCPUCritical | Object | false | | Compares cpu usage for all processes with the same name against the given threshold. Will throw critical if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalThreadCountWarning | Object | false | | Compares thread usage for all processes with the same name against the given threshold. Will throw warning if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalThreadCountCritical | Object | false | | Compares thread usage for all processes with the same name against the given threshold. Will throw critical if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalProcessCountWarning | Object | false | | Compares process count for all processes with the same name against the given threshold. Will throw warning if exceeded.

Follows the Icinga Plugin threshold guidelines. | +| TotalProcessCountCritical | Object | false | | Compares process count for all processes with the same name against the given threshold. Will throw critical if exceeded.

Follows the Icinga Plugin threshold guidelines. | | Process | Array | false | @() | Allows to filter for a list of processes with a given name. Use the process name without file ending, like '.exe'. | | ExcludeProcess | Array | false | @() | Define a list of process names which are excluded from the final result. Only the process name is required without '.exe' at the end. | | NoPerfData | SwitchParameter | false | False | Set this argument to not write any performance data | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | ## Examples diff --git a/doc/plugins/28-Invoke-IcingaCheckHttpJsonResponse.md b/doc/plugins/28-Invoke-IcingaCheckHttpJsonResponse.md index 00fd11b7..635c5557 100644 --- a/doc/plugins/28-Invoke-IcingaCheckHttpJsonResponse.md +++ b/doc/plugins/28-Invoke-IcingaCheckHttpJsonResponse.md @@ -26,9 +26,9 @@ No special permissions required. | Warning | Array | false | @() | Warning thresholds using icinga-powershell syntax. Example: "myNumericAlias01:~:2","myDateTimeAlias:-10d", "myBooleanAlias:True" | | Critical | Array | false | @() | Critical thresholds using icinga-powershell syntax. Example: "myNumericAlias01:~:2","myDateTimeAlias:-10d", "myBooleanAlias:True" | | IgnoreSSL | SwitchParameter | false | False | Disables SSL verification and allows the connection to endpoints with self-signed certificates as example | -| StatusOnRequestError | String | false | Unknown | Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown See https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values | +| StatusOnRequestError | String | false | Unknown | Status to set when the webservice cannot be reached or an error (e.g. 500) is returned - default is Unknown
See https://icinga.com/docs/icinga-for-windows/latest/plugins/doc/10-Icinga-Plugins/ for description of threshold values | | NegateStringResults | SwitchParameter | false | False | Negate the conditions set for string parameters. When this is set to true, WarnIfLike/CritIfLike is used instead of WarnIfNotLike/CritIfNotLike for Strings | -| Verbosity | Int32 | false | 0 | 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 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | +| Verbosity | Int32 | false | 0 | 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
3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) | | NoPerfData | SwitchParameter | false | False | | | ThresholdInterval | String | | | Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described [here](https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/). An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring. | diff --git a/plugins/Invoke-IcingaCheckEventlog.psm1 b/plugins/Invoke-IcingaCheckEventlog.psm1 index 6b4c5b72..43f62e88 100644 --- a/plugins/Invoke-IcingaCheckEventlog.psm1 +++ b/plugins/Invoke-IcingaCheckEventlog.psm1 @@ -1,117 +1,165 @@ <# .SYNOPSIS - Checks how many eventlog occurrences of a given type there are. + Checks how many eventlog occurrences of a given type there are. .DESCRIPTION - Invoke-IcingaCheckEventlog returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. - e.g Eventlog returns 500 entries with the specified parameters, WARNING is set to 200, CRITICAL is set to 800. Thereby the check will return WARNING. + Invoke-IcingaCheckEventlog returns either 'OK', 'WARNING' or 'CRITICAL', based on the thresholds set. + e.g Eventlog returns 500 entries with the specified parameters, WARNING is set to 200, CRITICAL is set to 800. Thereby the check will return WARNING. - By default if no time frame is selected with `-After` for example, the plugin will fetch EventLog information from the last two hours. - In case your are not using `-DisableTimeCache`, the plugin will after the first execution only collect the delta between the last - execution time and the current execution time. + By default if no time frame is selected with `-After` for example, the plugin will fetch EventLog information from the last two hours. + In case your are not using `-DisableTimeCache`, the plugin will after the first execution only collect the delta between the last + execution time and the current execution time. - More Information on https://github.com/Icinga/icinga-powershell-plugins -.FUNCTIONALITY - This Module is intended to be used to check how many eventlog occurrences of a given type there are. - Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. + More Information on https://github.com/Icinga/icinga-powershell-plugins + .FUNCTIONALITY + This Module is intended to be used to check how many eventlog occurrences of a given type there are. + Based on the thresholds set the status will change between 'OK', 'WARNING' or 'CRITICAL'. The function will return one of these given codes. .ROLE - ### Required User Groups + ### Required User Groups - * Event Log Reader + * Event Log Reader .EXAMPLE - PS> Invoke-IcingaCheckEventlog -LogName Application -IncludeEntryType Warning -Warning 100 -Critical 1000 - [CRITICAL] Check package "EventLog" - [CRITICAL] EventId 642 [WARNING] EventId 1008, EventId 2002, EventId 642 - \_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 2002: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 09:31:36] - [27.08.2020 22:57:40] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 14:50:37] - [17.08.2020 19:41:00] there occurred 391 event(s)." - \_ [WARNING] EventId 642: Value "391" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 14:50:37] - [17.08.2020 19:41:00] there occurred 391 event(s)." - \_ [WARNING] EventId 642: Value "391" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 15:51:00] - [17.08.2020 19:41:00] there occurred 298 event(s)." - \_ [WARNING] EventId 642: Value "298" is greater than threshold "100" - \_ [CRITICAL] Check package "Between: [17.08.2020 19:56:38] - [27.08.2020 09:56:35] there occurred 3539 event(s)." - \_ [CRITICAL] EventId 642: Value "3539" is greater than threshold "1000" - \_ [CRITICAL] Check package "Between: [17.08.2020 19:56:38] - [27.08.2020 09:56:35] there occurred 3539 event(s)." - \_ [CRITICAL] EventId 642: Value "3539" is greater than threshold "1000" - \_ [CRITICAL] Check package "Between: [17.08.2020 20:03:07] - [27.08.2020 09:56:35] there occurred 2757 event(s)." - \_ [CRITICAL] EventId 642: Value "2757" is greater than threshold "1000" + PS> Invoke-IcingaCheckEventlog -LogName Application -IncludeEntryType Warning -Warning 100 -Critical 1000 + [WARNING] Eventlog Application: 1 Warning 2 Ok [WARNING] Event source Icinga 2 + \_ [WARNING] Event source Icinga 2 + \_ [WARNING] Found 123 event(s) for event id 1 in timeframe [03/12/2024 16:37:54] - [03/14/2024 11:07:37] + \_ [WARNING] Number of events found for Id 1: 123 is greater than threshold 100 + | '1::ifw_eventlog::count'=123c;; '1008::ifw_eventlog::count'=11c;; '10010::ifw_eventlog::count'=11c;; .EXAMPLE - PS> Invoke-IcingaCheckEventlog -LogName Application -IncludeEntryType Warning -Warning 100 -Critical 1000 -IncludeEventId 1008 - [WARNING] Check package "EventLog" - [WARNING] EventId 1008 - \_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 09:31:35] - [27.08.2020 22:57:39] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - \_ [WARNING] Check package "Between: [16.08.2020 09:31:36] - [27.08.2020 22:57:40] there occurred 242 event(s)." - \_ [WARNING] EventId 1008: Value "242" is greater than threshold "100" - | 'eventid_1008'=726c;; + PS> Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 -After 4h -Before 2h + [OK] Eventlog Application: 3 Ok + \_ [OK] Event source Icinga 2 + \_ [OK] Found 379 event(s) for event id 1 in timeframe [03/14/2024 07:42:57] - [03/14/2024 09:38:06] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min); + \_ [OK] Number of events found for Id 1: 379 + \_ [OK] Event source Microsoft-Windows-Security-SPP + \_ [OK] Found 1 event(s) for event id 16384 in timeframe [03/14/2024 09:09:18] - [03/14/2024 09:09:18] + \_ [OK] Event Message: Successfully scheduled Software Protection service for re-start at 2024-03-15T08:07:18Z. Reason: RulesEngine. + \_ [OK] Number of events found for Id 16384: 1 + \_ [OK] Found 1 event(s) for event id 16394 in timeframe [03/14/2024 09:08:00] - [03/14/2024 09:08:00] + \_ [OK] Event Message: Offline downlevel migration succeeded. + \_ [OK] Number of events found for Id 16394: 1 + \_ [OK] Found 1 event(s) for event id 8198 in timeframe [03/14/2024 09:08:04] - [03/14/2024 09:08:04] + \_ [OK] Event Message: License Activation (slui.exe) failed with the following error code: + \_ [OK] Number of events found for Id 8198: 1 + \_ [OK] Found 2 event(s) for event id 1003 in timeframe [03/14/2024 09:08:04] - [03/14/2024 09:08:04] + \_ [OK] Event Message: The Software Protection service has completed licensing status check. + \_ [OK] Number of events found for Id 1003: 2 + \_ [OK] Event source SceCli + \_ [OK] Found 1 event(s) for event id 1704 in timeframe [03/14/2024 09:09:32] - [03/14/2024 09:09:32] + \_ [OK] Event Message: Security policy in the Group policy objects has been applied successfully. + \_ [OK] Number of events found for Id 1704: 1 + | '1::ifw_eventlog::count'=379c;; '1003::ifw_eventlog::count'=2c;; '1704::ifw_eventlog::count'=1c;; '8198::ifw_eventlog::count'=1c;; '16384::ifw_eventlog::count'=1c;; '16394::ifw_eventlog::count'=1c;; +.EXAMPLE + PS> Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 -After '2024/03/14 10:00' + [OK] Eventlog Application: 2 Ok + \_ [OK] Event source Icinga 2 + \_ [OK] Found 637 event(s) for event id 1 in timeframe [03/14/2024 10:00:04] - [03/14/2024 11:40:11] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (12/min 60/5min 180/15min); + \_ [OK] Number of events found for Id 1: 637 + \_ [OK] Event source Microsoft-Windows-Security-SPP + \_ [OK] Found 2 event(s) for event id 16384 in timeframe [03/14/2024 10:22:07] - [03/14/2024 11:27:26] + \_ [OK] Event Message: Successfully scheduled Software Protection service for re-start at 2024-03-15T08:07:26Z. Reason: RulesEngine. + \_ [OK] Number of events found for Id 16384: 2 + \_ [OK] Found 2 event(s) for event id 16394 in timeframe [03/14/2024 10:21:36] - [03/14/2024 11:26:56] + \_ [OK] Event Message: Offline downlevel migration succeeded. + \_ [OK] Number of events found for Id 16394: 2 + | '1::ifw_eventlog::count'=637c;; '16384::ifw_eventlog::count'=2c;; '16394::ifw_eventlog::count'=2c;; +.EXAMPLE + PS> Invoke-IcingaCheckEventlog -LogName Application -Verbosity 2 + [OK] Eventlog Application: 1 Ok + \_ [OK] Event source Icinga 2 + \_ [OK] Found 2 event(s) for event id 1 in timeframe [03/14/2024 11:09:37] - [03/14/2024 11:09:47] + \_ [OK] Event Message: information/RemoteCheckQueue: items: 0, rate: 0/s (36/min 180/5min 540/15min); + \_ [OK] Number of events found for Id 1: 2 + | '1::ifw_eventlog::count'=2c;; .PARAMETER Warning - Used to specify a Warning threshold. + Used to specify a Warning threshold. .PARAMETER Critical - Used to specify a Critical threshold. + Used to specify a Critical threshold. .PARAMETER LogName - Used to specify a certain log. + Used to specify a certain log. .PARAMETER IncludeEventId - Used to specify an array of events identified by their id to be included. + Used to specify an array of events identified by their id to be included. .PARAMETER ExcludeEventId - Used to specify an array of events identified by their id to be excluded. + Used to specify an array of events identified by their id to be excluded. .PARAMETER IncludeUsername - Used to specify an array of usernames within the eventlog to be included. + Used to specify an array of usernames within the eventlog to be included. .PARAMETER ExcludeUsername - Used to specify an array of usernames within the eventlog to be excluded. + Used to specify an array of usernames within the eventlog to be excluded. .PARAMETER IncludeEntryType - Used to specify an array of entry types within the eventlog to be included. Please note that - `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. + Used to specify an array of entry types within the eventlog to be included. Please note that + `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. .PARAMETER ExcludeEntryType - Used to specify an array of entry types within the eventlog to be excluded. Please note that - `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. + Used to specify an array of entry types within the eventlog to be excluded. Please note that + `SuccessAudit` and `FailureAudit` only apply to the `Security` EventLog. .PARAMETER IncludeMessage - Used to specify an array of messages within the eventlog to be included. + Used to specify an array of messages within the eventlog to be included. .PARAMETER ExcludeMessage - Used to specify an array of messages within the eventlog to be excluded. + Used to specify an array of messages within the eventlog to be excluded. .PARAMETER IncludeSource - Used to specify an array of message sources within the eventlog to be included. + Used to specify an array of message sources within the eventlog to be included. .PARAMETER ExcludeSource - Used to specify an array of message sources within the eventlog to be excluded. + Used to specify an array of message sources within the eventlog to be excluded. .PARAMETER After - Used to specify time data of which point the plugin should start to read event logs from. - You can either use a fixed date and time like "2021/01/30 12:00:00", a fixed day "2021/01/30" or use more dynamic approaches like "1d", "10h" and so on. + Defines the starting point on which timeframe the plugin will start to read event log information. + Using 4h as argument as example, will provide all entries from the time the plugin was executed to the past 4 hours. + For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: + + "2024/01/01 12:00:00": Will start reading eventlogs after the 1st January 2024 12:00 CET + "2024/01/15": Will start reading eventlogs after the 15th January 2024 00:00 CET + "4h": Will read the past 4 hours + "1d": Will read the past day (24 hours) - Allowed units: ms, s, m, h, d, w, M, y + Allowed units for time metrics: ms, s, m, h, d, w, M, y + + Example +
 Start of EventLog       Plugin Execution
+    v                After 4h              v
+    |--------------------|-----------------|
+    10:00              12:00           16:00
+    | Not fetched        | Fetched         |
.PARAMETER Before - Used to specify time data of which point the plugin should stop considering event logs. - You can either use a fixed date and time like "2021/01/30 12:00:00", a fixed day "2021/01/30" or use more dynamic approaches like "1d", "10h" and so on. + Defines the end point on which timeframe the plugin will stop to read event log information. + Using 2h as argument as example, will ignore all events of the past 2 hours from the time the plugin was executed. This should be + used in combination with the "-After" argument. As example, you could provide "-After 6h" to start reading all eventlogs from the past + 6 hours, and use "-Before 2h" to skip the last 2 hours. In this scenario, would receive 4 hours of eventlogs, while the last 2 hours + have been ignored. + For thresholds you can be very specific by providing the time in a time format or by using simple time metrics by their units. Examples: + + "2024/01/01 12:00:00": Will stop reading eventlogs after the 1st January 2024 12:00 CET + "2024/01/15": Will stop reading eventlogs after the 15th January 2024 00:00 CET + "4h": Will ignore eventlogs of the past 4 hours + "1d": Will ignore eventlogs of the past day (24 hours) - By using "2h" for example, log files of the last 2 hours will be ignored. Please ensure to manually set the `-After` argument and ensure you go back - further in time with the `-After` argument than the `-Before` argument. + Allowed units for time metrics: ms, s, m, h, d, w, M, y - Allowed units: ms, s, m, h, d, w, M, y + Example +
 Start of EventLog        Plugin Execution
+    v         After 6h           Before 2h  v
+    |-------------|------------------|------|
+    8:00        10:00              14:00    16:00
+    | Not fetched | Fetched          | Not fetchhed
.PARAMETER MaxEntries Allows to limit the amount of log entries fetched by Get-WinEvent, to increase performance and reduce system load impact Should match the average amount of log files written for the intended time range filtered .PARAMETER DisableTimeCache - Switch to disable the time cache on a check. If this parameter is set the time cache is disabled. - After the check has been run once, the next check instance will filter through the eventlog from the point the last check ended. - This is due to the time cache, when disabled the whole eventlog is checked instead. + Switch to disable the time cache on a check. If this parameter is set the time cache is disabled. + After the check has been run once, the next check instance will filter through the eventlog from the point the last check ended. + This is due to the time cache, when disabled the whole eventlog is checked instead. .PARAMETER NoPerfData - Used to disable PerfData. + Used to disable PerfData. .PARAMETER Verbosity - 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 - 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) + 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 + 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK]) .INPUTS - System.String + System.String .OUTPUTS - System.String + System.String .LINK - https://github.com/Icinga/icinga-powershell-plugins + https://github.com/Icinga/icinga-powershell-plugins .NOTES #> @@ -142,40 +190,74 @@ function Invoke-IcingaCheckEventlog() [int]$Verbosity = 0 ); - $After = Convert-IcingaPluginThresholds $After; - $Before = Convert-IcingaPluginThresholds $Before; + [hashtable]$SourceCache = @{ }; + $EventLogPackage = New-IcingaCheckPackage -Name ([string]::Format('Eventlog {0}', $LogName)) -OperatorAnd -Verbose $Verbosity -AddSummaryHeader; + $EventLogData = Get-IcingaProviderDataValuesEventlog -ProviderFilter @{ + 'Eventlog' = @{ + 'LogName' = $LogName; + 'IncludeEventId' = $IncludeEventId; + 'ExcludeEventId' = $ExcludeEventId; + 'IncludeUsername' = $IncludeUsername; + 'ExcludeUsername' = $ExcludeUsername; + 'IncludeEntryType' = $IncludeEntryType; + 'ExcludeEntryType' = $ExcludeEntryType; + 'IncludeMessage' = $IncludeMessage; + 'ExcludeMessage' = $ExcludeMessage; + 'IncludeSource' = $IncludeSource; + 'ExcludeSource' = $ExcludeSource; + 'EventsAfter' = $After; + 'EventsBefore' = $Before; + 'MaxEntries' = $MaxEntries; + 'DisableTimeCache' = $DisableTimeCache; + } + }; + + if ($EventLogData.Metrics.HasEvents) { + foreach ($event in (Get-IcingaProviderElement $EventLogData.Metrics.List)) { - $EventLogPackage = New-IcingaCheckPackage -Name 'EventLog' -OperatorAnd -Verbose $Verbosity -AddSummaryHeader; - $EventLogData = Get-IcingaEventLog -LogName $LogName -IncludeEventId $IncludeEventId -ExcludeEventId $ExcludeEventId -IncludeUsername $IncludeUsername -ExcludeUsername $ExcludeUsername ` - -IncludeEntryType $IncludeEntryType -ExcludeEntryType $ExcludeEntryType -IncludeMessage $IncludeMessage -ExcludeMessage $ExcludeMessage ` - -IncludeSource $IncludeSource -ExcludeSource $ExcludeSource -After $After.Value -Before $Before.Value -MaxEntries $MaxEntries -DisableTimeCache $DisableTimeCache; + $EventLogSourcePackage = $null; + $eventEntry = $event.Value; - [hashtable]$EventLogSource = @{}; + if ($SourceCache.ContainsKey($eventEntry.Source) -eq $FALSE) { + $EventLogSourcePackage = New-IcingaCheckPackage -Name ([string]::Format('Event source {0}', $eventEntry.Source)) -OperatorAnd -Verbose $Verbosity; + $SourceCache.Add($eventEntry.Source, $EventLogSourcePackage); + } else { + $EventLogSourcePackage = $SourceCache[$eventEntry.Source]; + } - if ($EventLogData.eventlog.Count -ne 0) { - foreach ($event in $EventLogData.eventlog.Keys) { - $eventEntry = $EventLogData.eventlog[$event]; + $EventLogEntryPackage = New-IcingaCheckPackage -Name ( + [string]::Format('Found {0} event(s) for event id {1} in timeframe [{2}] - [{3}]', + $eventEntry.Count, + $eventEntry.EventId, + $eventEntry.OldestEntry, + $eventEntry.NewestEntry + ) + ) -OperatorAnd -Verbose $Verbosity; - $EventLogEntryPackage = New-IcingaCheckPackage -Name ([string]::Format('Between: [{0}] - [{1}] there occurred {2} event(s).', $eventEntry.OldestEntry, $eventEntry.NewestEntry, $eventEntry.Count)) -OperatorAnd -Verbose $Verbosity; - $IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $EventLogData.eventlog[$event].EventId)) -Value $eventEntry.Count -NoPerfData; + $IcingaCheck = New-IcingaCheck -Name ([string]::Format('Number of events found for Id {0}', $eventEntry.EventId)) -Value $eventEntry.Count -NoPerfData; $IcingaCheck.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null; $EventLogEntryPackage.AddCheck($IcingaCheck); - $EventMessage = New-IcingaCheck -Name ([string]::Format('Event Message: {0}', ($eventEntry.Message).Replace("`r`n", '').Replace("`n", ''))) -NoPerfData; + $EventMessage = New-IcingaCheck -Name 'Event Message' -NoPerfData -NoHeaderReport; + $EventMessage.SetOk(([string]::Format('{0}', ($eventEntry.Message).Replace("`r`n", '').Replace("`n", ''))), $TRUE) | Out-Null; $EventLogEntryPackage.AddCheck($EventMessage); - $EventLogPackage.AddCheck($EventLogEntryPackage); + $EventLogSourcePackage.AddCheck($EventLogEntryPackage); + } + + foreach ($entry in $SourceCache.Keys) { + $EventLogPackage.AddCheck($SourceCache[$entry]); } $EventLogCountPackage = New-IcingaCheckPackage -Name 'EventLog Count' -OperatorAnd -Verbose $Verbosity -Hidden; - foreach ($event in $EventLogData.events.Keys) { - $IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $event)) -Value $EventLogData.events[$event] -Unit 'c' -MetricIndex $event -MetricName 'count'; + foreach ($event in (Get-IcingaProviderElement $EventLogData.Metrics.Events)) { + $IcingaCheck = New-IcingaCheck -Name ([string]::Format('EventId {0}', $event.Name)) -Value $event.Value -Unit 'c' -MetricIndex $event.Name -MetricName 'count'; $EventLogCountPackage.AddCheck($IcingaCheck); } $EventLogPackage.AddCheck($EventLogCountPackage); } else { - $IcingaCheck = New-IcingaCheck -Name 'No EventLogs found' -Value 0 -Unit 'c' -NoPerfData; + $IcingaCheck = New-IcingaCheck -Name 'Events found matching the filter' -Value 0 -Unit 'c' -NoPerfData; $EventLogPackage.AddCheck($IcingaCheck); }