config/director/Invoke-IcingaCheckUpdates.json

{"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":"stein"}},"Command":{"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"},"Invoke-IcingaCheckUpdates":{"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}],"object_name":"Invoke-IcingaCheckUpdates","arguments":{"-C":{"value":"try { Use-Icinga; } 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-IcingaPluginNotInstalled \u0027Invoke-IcingaCheckUpdates\u0027; exit Invoke-IcingaCheckUpdates","order":"0"},"-Verbosity":{"value":"$IcingaCheckUpdates_Int32_Verbosity$","order":"5"},"-Warning":{"value":"$IcingaCheckUpdates_Object_Warning$","order":"3"},"-UpdateFilter":{"value":{"body":"var arr = macro(\"$IcingaCheckUpdates_Array_UpdateFilter$\");\r\nif (len(arr) == 0) {\r\nreturn \"@()\";\r\n}\r\nreturn arr.join(\",\");","type":"Function"},"order":"2"},"-Critical":{"value":"$IcingaCheckUpdates_Object_Critical$","order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckUpdates_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckUpdates_Switchparameter_NoPerfData":false}}},"Datafield":{"2":{"settings":{"visbility":"visible"},"description":null,"caption":"UpdateFilter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"2","varname":"IcingaCheckUpdates_Array_UpdateFilter","format":null},"5":{"settings":{"visbility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"5","varname":"IcingaCheckUpdates_Switchparameter_NoPerfData","format":null},"4":{"settings":{"visbility":"visible"},"description":"Used to specify a Critical threshold. In this case an integer value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckUpdates_Object_Critical","format":null},"3":{"settings":{"visbility":"visible"},"description":"Used to specify a Warning threshold. In this case an integer value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"3","varname":"IcingaCheckUpdates_Object_Warning","format":null},"6":{"settings":{"datalist":"IcingaCheckUpdates Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckUpdates_Int32_Verbosity","format":null}}}