Whew!! You're giving me a heart attack. For some unknown reason, I checked the AlertService.log file and noticed this message was occuring every minute ... I was freaking out that it was the weekend and the log would be
HUGE if I didn't figure it out quickly.
2013-02-22 14:30:02,105 [AlertCheckingThread] WARN Error - Error in UpdateRowsThatAreTriggered() - GetNetObjects
System.Data.SqlClient.SqlException (0x80131904): Ambiguous column name 'NodeID'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at SolarWinds.Orion.Common.SqlHelper.ExecuteReader(SqlCommand command, SqlConnection connection, SqlTransaction transaction, CommandBehavior behavior)
at AlertingEngine.CheckAlert.UpdateRowsThatAreTriggered()
Luckily it started today, but I was having a hard time determining which alert was causing the error .. because you CAN'T tell from the log file. So, I started disabling the alerts I thought I had changed today & FINALLY figured out which one it was.
The culprit was with an APM:Application alert. I had a condition group of "..when NONE apply" and a condition of 'Last Booted has changed'. Once I removed that condition the errors stopped getting logged.
I know I'm a newbie, but how can this be? I guess I need to write an alert for when the AlertService.log file changes.
How to determine which alert contains an SQL error / bug.