Network Management
Alert not working after alert owner account is disabled
Alerts owned by an account user that has been deleted/disabled have stopped working.
First published date
Last published date
Overview
Alerts owned by an account user that has been deleted/disabled have stopped working.
The Alerting,Service.v2.log file located in C:\ProgramData\Solarwinds\Logs\Orion\ shows the following message:
Also encountered on Orion 2019.4.
WARN SolarWinds.Orion.Core.Alerting.Plugins.Conditions. Swql.ConditionEvaluatorSwql - Condition evaluation failed : User account is disabled.
Product section
Resolution
Reactivate the user account or change the ownership of the alerts:
Warning: Changing the ownership may return different results due to various user limitations.
- Create a backup of the database.
- Click Start > All Programs > SolarWinds Orion > Advanced Features > Database Manager.
- Click Add Default Server and expand down to your SolarWinds database.
- Double-click the Alert Configurations table.
- Delete the default query and replace with the following:
- If Old users are present:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. UPDATE AlertConfigurations SET CreatedBy = 'NewUser' WHERE CreatedBy = 'OldUser'
- If affected alerts have NULL:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. UPDATE AlertConfigurations SET CreatedBy = 'NewUser' WHERE CreatedBy is NULL
- If Old users are present:
- Click Execute Query.
Notes:
For a list of accounts, check the Accounts table.
Pay attention to letter casing in account names. - After updating the DB, restart Alerting Service V2