config/director/Invoke-IcingaCheckMSSQLHealth.json

{"DataList":{"IcingaCheckMSSQLHealth Verbosity":{"list_name":"IcingaCheckMSSQLHealth 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-IcingaCheckMSSQLHealth":{"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}],"object_name":"Invoke-IcingaCheckMSSQLHealth","arguments":{"-NoPerfData":{"set_if":"$IcingaCheckMSSQLHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Verbosity":{"value":"$IcingaCheckMSSQLHealth_Int32_Verbosity$","order":"10"},"-Instance":{"value":"$IcingaCheckMSSQLHealth_String_Instance$","order":"4"},"-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-IcingaCheckMSSQLHealth\u0027 ","order":"0"},"-ThresholdInterval":{"value":"$IcingaCheckMSSQLHealth_String_ThresholdInterval$","order":"100"},"-SqlPort":{"value":"$IcingaCheckMSSQLHealth_Int32_SqlPort$","order":"8"},"-Warning":{"value":"$IcingaCheckMSSQLHealth_Object_Warning$","order":"2"},"-IntegratedSecurity":{"set_if":"$IcingaCheckMSSQLHealth_Switchparameter_IntegratedSecurity$","set_if_format":"string","order":"99"},"-SqlUsername":{"value":"$IcingaCheckMSSQLHealth_String_SqlUsername$","order":"5"},"-SqlHost":{"value":"$IcingaCheckMSSQLHealth_String_SqlHost$","order":"7"},"-Critical":{"value":"$IcingaCheckMSSQLHealth_Object_Critical$","order":"3"},"-SqlPassword":{"value":"(ConvertTo-IcingaSecureString \u0027$IcingaCheckMSSQLHealth_Securestring_SqlPassword$\u0027)","order":"6"},"-SqlDatabase":{"value":"$IcingaCheckMSSQLHealth_String_SqlDatabase$","order":"9"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckMSSQLHealth_Switchparameter_NoPerfData":false,"IcingaCheckMSSQLHealth_Switchparameter_IntegratedSecurity":false}}},"Datafield":{"7":{"settings":{"visibility":"hidden"},"description":"The password for connecting to the MSSQL database as secure string","caption":"SqlPassword","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"7","varname":"IcingaCheckMSSQLHealth_Securestring_SqlPassword","format":null},"9":{"settings":{"visibility":"visible"},"description":"The port of the MSSQL server/instance to connect to with the provided credentials","caption":"SqlPort","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeNumber","originalId":"9","varname":"IcingaCheckMSSQLHealth_Int32_SqlPort","format":null},"10":{"settings":{"visibility":"visible"},"description":"The name of a specific database to connect to. Leave empty to connect \"globally\"","caption":"SqlDatabase","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckMSSQLHealth_String_SqlDatabase","format":null},"3":{"settings":{"visibility":"visible"},"description":"The warning threshold for the connection time to the MSSQL database as time interval (ms, s, h, m)","caption":"Warning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"3","varname":"IcingaCheckMSSQLHealth_Object_Warning","format":null},"11":{"settings":{"visibility":"visible"},"description":"Allows this plugin to use the credentials of the current PowerShell session inherited by\nthe user the PowerShell is running with. If this is set and the user the PowerShell is\nrunning with can access to the MSSQL database you will not require to provide username\nand password","caption":"IntegratedSecurity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"11","varname":"IcingaCheckMSSQLHealth_Switchparameter_IntegratedSecurity","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":"IcingaCheckMSSQLHealth_String_ThresholdInterval","format":null},"12":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"12","varname":"IcingaCheckMSSQLHealth_Switchparameter_NoPerfData","format":null},"4":{"settings":{"visibility":"visible"},"description":"The warning threshold for the connection time to the MSSQL database as time interval (ms, s, h, m)","caption":"Critical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"4","varname":"IcingaCheckMSSQLHealth_Object_Critical","format":null},"13":{"settings":{"datalist":"IcingaCheckMSSQLHealth 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":"13","varname":"IcingaCheckMSSQLHealth_Int32_Verbosity","format":null},"6":{"settings":{"visibility":"visible"},"description":"The username for connecting to the MSSQL database","caption":"SqlUsername","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"6","varname":"IcingaCheckMSSQLHealth_String_SqlUsername","format":null},"5":{"settings":{"visibility":"visible"},"description":"The name of the database instance to check the service state for. Can either the MSSQL$DB1 or simply DB1\nfor example","caption":"Instance","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"5","varname":"IcingaCheckMSSQLHealth_String_Instance","format":null},"8":{"settings":{"visibility":"visible"},"description":"The IP address or FQDN to the MSSQL server to connect to","caption":"SqlHost","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"8","varname":"IcingaCheckMSSQLHealth_String_SqlHost","format":null}}}