config/director/Invoke-IcingaCheckTCP.json

{"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"}],"owner":"stein"}},"Command":{"Invoke-IcingaCheckTCP":{"fields":[{"datafield_id":2,"is_required":"n","var_filter":null},{"datafield_id":3,"is_required":"n","var_filter":null},{"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-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; exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckTCP\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckTCP_Object_Verbosity$","order":"6"},"-Warning":{"value":"$IcingaCheckTCP_Object_Warning$","order":"4"},"-Address":{"value":"$IcingaCheckTCP_String_Address$","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 if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return 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(\",\");","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckTCP_Switchparameter_Negate":false,"IcingaCheckTCP_Switchparameter_NoPerfData":false}},"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[],"arguments":{},"imports":[],"object_type":"object","timeout":"180"}},"Datafield":{"7":{"settings":{"visbility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckTCP_Switchparameter_NoPerfData","format":null},"3":{"settings":{"visbility":"visible"},"description":"A single or a list of ports to check on the target address","caption":"Ports","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"3","varname":"IcingaCheckTCP_Array_Ports","format":null},"2":{"settings":{"visbility":"visible"},"description":"The IP address or FQDN of the target host","caption":"Address","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"2","varname":"IcingaCheckTCP_String_Address","format":null},"4":{"settings":{"visbility":"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":"4","varname":"IcingaCheckTCP_Switchparameter_Negate","format":null},"6":{"settings":{"visbility":"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":"6","varname":"IcingaCheckTCP_Object_Critical","format":null},"5":{"settings":{"visbility":"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":"5","varname":"IcingaCheckTCP_Object_Warning","format":null},"8":{"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","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"8","varname":"IcingaCheckTCP_Object_Verbosity","format":null}}}