You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have set below Alert to track if SQL Instance is down:
I know for sure that one instance is down so I should get an alert, but instead I see below errors in DBA Dash log:
Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'Threshold', table 'tempdb.dbo.#ExceededThreshold__________________________________________________________________________________________________000000002CBC'; column does not allow nulls. INSERT fails.
Processing alerts of type CPU
Processing alerts of type Wait
Processing alerts of type Counter
No rules of type AGHealth to process
Processing alerts of type DriveSpace
Processing alerts of type CollectionDates
The statement has been terminated.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, SqlCommand command, Boolean callerHasConnectionLock, Boolean asyncClose) at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at Microsoft.Data.SqlClient.SqlCommand.CompleteAsyncExecuteReader(Boolean isInternal, Boolean forDescribeParameterEncryption) at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
at DBADashService.AlertProcessing.AlertsUpdate() in D:\a\dba-dash\dba-dash\DBADashService\AlertProcessing.cs:line 151
at DBADashService.AlertProcessing.AlertsUpdate() in D:\a\dba-dash\dba-dash\DBADashService\AlertProcessing.cs:line 151
at DBADashService.AlertProcessing.AlertsUpdate() in D:\a\dba-dash\dba-dash\DBADashService\AlertProcessing.cs:line 151
at DBADashService.AlertProcessing.ProcessAlerts() in D:\a\dba-dash\dba-dash\DBADashService\AlertProcessing.cs:line 68
ClientConnectionId:74529336-ebdb-4f63-9fe3-6065c3d7ba18
Error Number:515,State:2,Class:16
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. The Threshold needs to be set to something e.g. 5 to get an alert if the CPU collection hasn't ran in 5min.
There are a couple of ways this should be improved - the error should be handled better and it shouldn't let you create this rule without the threshold.
Hi,
I have set below Alert to track if SQL Instance is down:
I know for sure that one instance is down so I should get an alert, but instead I see below errors in DBA Dash log:
The text was updated successfully, but these errors were encountered: