config/director/Invoke-IcingaCheckPerfcounter.json

{"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":"stein"}},"Command":{"Invoke-IcingaCheckPerfcounter":{"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-IcingaCheckPerfcounter","arguments":{"-PerfCounter":{"value":{"body":"var arr = macro(\"$IcingaCheckPerfcounter_Array_PerfCounter$\");\r\nif (len(arr) == 0) {\r\nreturn \"@()\";\r\n}\r\nreturn arr.join(\",\");","type":"Function"},"order":"2"},"-Verbosity":{"value":"$IcingaCheckPerfcounter_Int32_Verbosity$","order":"5"},"-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"},"-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-IcingaCheckPerfcounter\u0027; exit Invoke-IcingaCheckPerfcounter","order":"0"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckPerfcounter_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":{"2":{"settings":{"visbility":"visible"},"description":"Used to specify an array of performance counter to check against.","caption":"PerfCounter","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"2","varname":"IcingaCheckPerfcounter_Array_PerfCounter","format":null},"5":{"settings":{"visbility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"5","varname":"IcingaCheckPerfcounter_Switchparameter_NoPerfData","format":null},"4":{"settings":{"visbility":"visible"},"description":"Used to specify a Critical threshold. In this case an ??? value.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckPerfcounter_Object_Critical","format":null},"3":{"settings":{"visbility":"visible"},"description":"Used to specify a Warning threshold. In this case an ??? value.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"3","varname":"IcingaCheckPerfcounter_Object_Warning","format":null},"6":{"settings":{"datalist":"IcingaCheckPerfcounter Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckPerfcounter_Int32_Verbosity","format":null}}}