config/director/Invoke-IcingaCheckHyperVSnapshot.json

{"DataList":{"IcingaCheckHyperVSnapshot Verbosity":{"list_name":"IcingaCheckHyperVSnapshot 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-IcingaCheckHyperVSnapshot":{"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}],"object_name":"Invoke-IcingaCheckHyperVSnapshot","arguments":{"-SnapshotSizePredictionWarning":{"value":"$IcingaCheckHyperVSnapshot_Object_SnapshotSizePredictionWarning$","order":"12"},"-SnapshotSizePredictionCritical":{"value":"$IcingaCheckHyperVSnapshot_Object_SnapshotSizePredictionCritical$","order":"13"},"-ActiveVms":{"set_if":"$IcingaCheckHyperVSnapshot_Switchparameter_ActiveVms$","set_if_format":"string","order":"99"},"-CountSnapshotCritical":{"value":"$IcingaCheckHyperVSnapshot_Object_CountSnapshotCritical$","order":"5"},"-NoPerfData":{"set_if":"$IcingaCheckHyperVSnapshot_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-IncludeVms":{"value":{"body":"var arr = macro(\"$IcingaCheckHyperVSnapshot_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"},"-ExcludeVms":{"value":{"body":"var arr = macro(\"$IcingaCheckHyperVSnapshot_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-IcingaCheckHyperVSnapshot\u0027 ","order":"0"},"-SnapshotSizeWarning":{"value":"$IcingaCheckHyperVSnapshot_Object_SnapshotSizeWarning$","order":"10"},"-SnapshotSizeCritical":{"value":"$IcingaCheckHyperVSnapshot_Object_SnapshotSizeCritical$","order":"11"},"-CreationTimeWarning":{"value":"$IcingaCheckHyperVSnapshot_Object_CreationTimeWarning$","order":"6"},"-ThresholdInterval":{"value":"$IcingaCheckHyperVSnapshot_String_ThresholdInterval$","order":"100"},"-CountSnapshotWarning":{"value":"$IcingaCheckHyperVSnapshot_Object_CountSnapshotWarning$","order":"4"},"-TotalSnapshotSizeWarning":{"value":"$IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeWarning$","order":"8"},"-TotalSnapshotSizeCritical":{"value":"$IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeCritical$","order":"9"},"-Verbosity":{"value":"$IcingaCheckHyperVSnapshot_Object_Verbosity$","order":"14"},"-CreationTimeCritical":{"value":"$IcingaCheckHyperVSnapshot_Object_CreationTimeCritical$","order":"7"},"-EmptySnapshotCritical":{"set_if":"$IcingaCheckHyperVSnapshot_Switchparameter_EmptySnapshotCritical$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckHyperVSnapshot_Switchparameter_EmptySnapshotCritical":false,"IcingaCheckHyperVSnapshot_Switchparameter_ActiveVms":false,"IcingaCheckHyperVSnapshot_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":{"16":{"settings":{"visibility":"visible"},"description":"Sets the CheckPackage CRITICAL if the Hyper-V VM has no snapshots.","caption":"EmptySnapshotCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"16","varname":"IcingaCheckHyperVSnapshot_Switchparameter_EmptySnapshotCritical","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":"IcingaCheckHyperVSnapshot_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":"IcingaCheckHyperVSnapshot_Switchparameter_ActiveVms","format":null},"18":{"settings":{"datalist":"IcingaCheckHyperVSnapshot 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":"IcingaCheckHyperVSnapshot_Object_Verbosity","format":null},"12":{"settings":{"visibility":"visible"},"description":"Warning threshold for each individual vms snapshot size in Byte.","caption":"SnapshotSizeWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"12","varname":"IcingaCheckHyperVSnapshot_Object_SnapshotSizeWarning","format":null},"10":{"settings":{"visibility":"visible"},"description":"Warning threshold for each individual vms total snapshots size. It is also possible to\nenter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"TotalSnapshotSizeWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeWarning","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":"IcingaCheckHyperVSnapshot_String_ThresholdInterval","format":null},"8":{"settings":{"visibility":"visible"},"description":"Warning threshold for each individual vms snapshots, how old they must be in seconds.","caption":"CreationTimeWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckHyperVSnapshot_Object_CreationTimeWarning","format":null},"17":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"17","varname":"IcingaCheckHyperVSnapshot_Switchparameter_NoPerfData","format":null},"11":{"settings":{"visibility":"visible"},"description":"Critical threshold for each individual vms total snapshots size. It is also possible to\nenter e.g. 10% as threshold value, if you want a percentage comparison. Defaults to (B)","caption":"TotalSnapshotSizeCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"11","varname":"IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeCritical","format":null},"9":{"settings":{"visibility":"visible"},"description":"Critical threshold for each individual vms snapshots, how old they must be in seconds.","caption":"CreationTimeCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"9","varname":"IcingaCheckHyperVSnapshot_Object_CreationTimeCritical","format":null},"14":{"settings":{"visibility":"visible"},"description":"Warning threshold for predicting the size of snapshots taken for each Vm before the partition becomes full.","caption":"SnapshotSizePredictionWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"14","varname":"IcingaCheckHyperVSnapshot_Object_SnapshotSizePredictionWarning","format":null},"7":{"settings":{"visibility":"visible"},"description":"Critical threshold for each individual vms how many snapshots they may have","caption":"CountSnapshotCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckHyperVSnapshot_Object_CountSnapshotCritical","format":null},"15":{"settings":{"visibility":"visible"},"description":"Critical threshold for predicting the size of snapshots taken for each Vm before the partition becomes full.","caption":"SnapshotSizePredictionCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckHyperVSnapshot_Object_SnapshotSizePredictionCritical","format":null},"6":{"settings":{"visibility":"visible"},"description":"Warning threshold for each individual vms how many snapshots they may have.","caption":"CountSnapshotWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckHyperVSnapshot_Object_CountSnapshotWarning","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":"IcingaCheckHyperVSnapshot_Array_ExcludeVms","format":null},"13":{"settings":{"visibility":"visible"},"description":"Critical threshold for each individual vms snapshot size in Byte.","caption":"SnapshotSizeCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"13","varname":"IcingaCheckHyperVSnapshot_Object_SnapshotSizeCritical","format":null}}}