config/director/Invoke-IcingaCheckHyperVOverCommitment.json

{"DataList":{"IcingaCheckHyperVOverCommitment Verbosity":{"list_name":"IcingaCheckHyperVOverCommitment 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-IcingaCheckHyperVOverCommitment":{"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},{"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-IcingaCheckHyperVOverCommitment","arguments":{"-Verbosity":{"value":"$IcingaCheckHyperVOverCommitment_Object_Verbosity$","order":"16"},"-RAMOCPercentWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_RAMOCPercentWarn$","order":"10"},"-ActiveVms":{"set_if":"$IcingaCheckHyperVOverCommitment_Switchparameter_ActiveVms$","set_if_format":"string","order":"99"},"-StorageOCByteCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_StorageOCByteCrit$","order":"13"},"-NoPerfData":{"set_if":"$IcingaCheckHyperVOverCommitment_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeVms":{"value":{"body":"var arr = macro(\"$IcingaCheckHyperVOverCommitment_Array_IncludeVms$\");\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":"2"},"-RAMOCByteCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_RAMOCByteCrit$","order":"9"},"-ExcludeVms":{"value":{"body":"var arr = macro(\"$IcingaCheckHyperVOverCommitment_Array_ExcludeVms$\");\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"},"-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-IcingaCheckHyperVOverCommitment\u0027 ","order":"0"},"-ThresholdInterval":{"value":"$IcingaCheckHyperVOverCommitment_String_ThresholdInterval$","order":"100"},"-StorageOCPercentWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_StorageOCPercentWarn$","order":"14"},"-RAMOCByteWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_RAMOCByteWarn$","order":"8"},"-StorageOCPercentCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_StorageOCPercentCrit$","order":"15"},"-StorageOCByteWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_StorageOCByteWarn$","order":"12"},"-CPUOCPercentWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_CPUOCPercentWarn$","order":"6"},"-CPUCoreOCWarn":{"value":"$IcingaCheckHyperVOverCommitment_Object_CPUCoreOCWarn$","order":"4"},"-CPUOCPercentCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_CPUOCPercentCrit$","order":"7"},"-CPUCoreOCCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_CPUCoreOCCrit$","order":"5"},"-RAMOCPercentCrit":{"value":"$IcingaCheckHyperVOverCommitment_Object_RAMOCPercentCrit$","order":"11"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHyperVOverCommitment_Switchparameter_NoPerfData":false,"IcingaCheckHyperVOverCommitment_Switchparameter_ActiveVms":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":{"16":{"settings":{"visibility":"visible"},"description":"Used to specify a WARNING threshold for the Hyper-V average Storage overcommitment.","caption":"StorageOCPercentWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"16","varname":"IcingaCheckHyperVOverCommitment_Object_StorageOCPercentWarn","format":null},"3":{"settings":{"visibility":"visible"},"description":"Include only virtual machines with a specific name. Supports wildcard usage (*)","caption":"IncludeVms","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"3","varname":"IcingaCheckHyperVOverCommitment_Array_IncludeVms","format":null},"5":{"settings":{"visibility":"visible"},"description":"Include only virtual machines that are currently running","caption":"ActiveVms","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"5","varname":"IcingaCheckHyperVOverCommitment_Switchparameter_ActiveVms","format":null},"18":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin. Default to FALSE.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"18","varname":"IcingaCheckHyperVOverCommitment_Switchparameter_NoPerfData","format":null},"12":{"settings":{"visibility":"visible"},"description":"Used to specify a WARNING threshold for the Hyper-V average RAM overcommitment.","caption":"RAMOCPercentWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckHyperVOverCommitment_Object_RAMOCPercentWarn","format":null},"10":{"settings":{"visibility":"visible"},"description":"Used to specify a WARNING threshold for the Hyper-V RAM overcommitment in Byte.","caption":"RAMOCByteWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckHyperVOverCommitment_Object_RAMOCByteWarn","format":null},"2":{"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":"2","varname":"IcingaCheckHyperVOverCommitment_String_ThresholdInterval","format":null},"8":{"settings":{"visibility":"visible"},"description":"Warning threshold for Hyper-V average CPU overcommitment.","caption":"CPUOCPercentWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHyperVOverCommitment_Object_CPUOCPercentWarn","format":null},"17":{"settings":{"visibility":"visible"},"description":"Used to specify a CRITICAL threshold for the Hyper-V average Storage overcommitment.","caption":"StorageOCPercentCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"17","varname":"IcingaCheckHyperVOverCommitment_Object_StorageOCPercentCrit","format":null},"11":{"settings":{"visibility":"visible"},"description":"Used to specify a CRITICAL threshold for the Hyper-V RAM overcommitment in Byte.","caption":"RAMOCByteCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckHyperVOverCommitment_Object_RAMOCByteCrit","format":null},"9":{"settings":{"visibility":"visible"},"description":"Critical threshold for Hyper-V average CPU overcommitment.","caption":"CPUOCPercentCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckHyperVOverCommitment_Object_CPUOCPercentCrit","format":null},"14":{"settings":{"visibility":"visible"},"description":"Used to specify a WARNING threshold for the Hyper-V Storage overcommitment in Byte.","caption":"StorageOCByteWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckHyperVOverCommitment_Object_StorageOCByteWarn","format":null},"7":{"settings":{"visibility":"visible"},"description":"Critical threshold for Hyper-V CPU Cores overcommitment.","caption":"CPUCoreOCCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckHyperVOverCommitment_Object_CPUCoreOCCrit","format":null},"15":{"settings":{"visibility":"visible"},"description":"Used to specify a CRITICAL threshold for the Hyper-V Storage overcommitment in Byte.","caption":"StorageOCByteCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckHyperVOverCommitment_Object_StorageOCByteCrit","format":null},"6":{"settings":{"visibility":"visible"},"description":"Warning threshold for Hyper-V CPU Cores overcommitment.","caption":"CPUCoreOCWarn","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHyperVOverCommitment_Object_CPUCoreOCWarn","format":null},"4":{"settings":{"visibility":"visible"},"description":"Exclude virtual machines with a specific name. Supports wildcard usage (*)","caption":"ExcludeVms","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"4","varname":"IcingaCheckHyperVOverCommitment_Array_ExcludeVms","format":null},"19":{"settings":{"datalist":"IcingaCheckHyperVOverCommitment 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":"IcingaCheckHyperVOverCommitment_Object_Verbosity","format":null},"13":{"settings":{"visibility":"visible"},"description":"Used to specify a CRITICAL threshold for the Hyper-V average RAM overcommitment.","caption":"RAMOCPercentCrit","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckHyperVOverCommitment_Object_RAMOCPercentCrit","format":null}}}