config/director/Invoke-IcingaCheckMemory.json

{"DataList":{"IcingaCheckMemory Verbosity":{"list_name":"IcingaCheckMemory 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-IcingaCheckMemory":{"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}],"object_name":"Invoke-IcingaCheckMemory","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; Write-Output \"Error: $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \"icinga-powershell-*\" )`r`nModule-Path:`r`n$$($$Env:PSModulePath)\"; exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckMemory\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckMemory_Int32_Verbosity$","order":"8"},"-ThresholdInterval":{"value":"$IcingaCheckMemory_String_ThresholdInterval$","order":"100"},"-PageFileCritical":{"value":"$IcingaCheckMemory_Object_PageFileCritical$","order":"5"},"-ExcludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_ExcludePageFile$\");\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":"7"},"-Warning":{"value":"$IcingaCheckMemory_Object_Warning$","order":"2"},"-Critical":{"value":"$IcingaCheckMemory_Object_Critical$","order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckMemory_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-PageFileWarning":{"value":"$IcingaCheckMemory_Object_PageFileWarning$","order":"4"},"-IncludePageFile":{"value":{"body":"var arr = macro(\"$IcingaCheckMemory_Array_IncludePageFile$\");\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":"6"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMemory_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":{"visibility":"visible"},"description":"Allows to filter for page files being included for the check","caption":"IncludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"7","varname":"IcingaCheckMemory_Array_IncludePageFile","format":null},"9":{"settings":{"datalist":"IcingaCheckMemory Verbosity","behavior":"strict","data_type":"string"},"description":null,"caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckMemory_Int32_Verbosity","format":null},"10":{"settings":{"visibility":"visible"},"description":null,"caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"10","varname":"IcingaCheckMemory_Switchparameter_NoPerfData","format":null},"3":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"3","varname":"IcingaCheckMemory_Object_Warning","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":"IcingaCheckMemory_String_ThresholdInterval","format":null},"4":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold. In this case an string value.\nThe string has to be like, \"20B\", \"20KB\", \"20MB\", \"20GB\", \"20TB\", \"20PB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMemory_Object_Critical","format":null},"6":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\nIt is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMemory_Object_PageFileCritical","format":null},"5":{"settings":{"visibility":"visible"},"description":"Allows to check the used page file and compare it against a size value, like \"200MB\"\nThis is using the default Icinga threshold handling.\n It is possible to enter e.g. 10% as threshold value if you want a percentage comparison.","caption":"PageFileWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMemory_Object_PageFileWarning","format":null},"8":{"settings":{"visibility":"visible"},"description":"Allows to filter for page files being excluded for the check","caption":"ExcludePageFile","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"8","varname":"IcingaCheckMemory_Array_ExcludePageFile","format":null}}}