How can we help you today? How can we help you today?
Luke L
@Alex B, Thanks for the response and the confirmation.  PS looked like the best option for us and is what we'll be moving forward with.   Thanks again, -Luke. / comments
@Alex B, Thanks for the response and the confirmation.  PS looked like the best option for us and is what we'll be moving forward with.  Thanks again,-Luke.
0 votes
Rather than updating the alert suppression window in the database, I think we're going to go with just disabling this alert via the powershell module... for anyone else interested in this, the code will look something like this... We'll put this code in the first agent job step and the reverse in the last job step, with the DBCC CheckDB in between. <div>using module "RedgateSQM"</div><div><br></div><div>#Params</div><div>[string]$MonitorServer = "monitorservername"</div><div>[string]$ServerNameToUpdate = "myserver"</div><div>[string]$AlertName = "DiskReadTime"<br>[string]$Status = "Inherited"&nbsp; ## or "Disabled"<br></div><div><br>##Setup connection to sqlmonitor</div><div>$ErrorActionPreference = "Stop"</div><div>$MonitorServerURL = "http://$MonitorServer`:8080"</div><div>Connect-SqlMonitor -ServerUrl $MonitorServerURL -AuthToken "myauthtoken"</div><div><br></div><div><div>##Get the AlertType</div><div>$alertType = $AlertTypes.Contains($AlertName)</div><div><br></div><div>##Get the Monitored Object current alert settings</div><div>$MonitoredObject = Get-SqlMonitorMachine -Name $ServerNameToUpdate</div><div>$alertSettings = Get-SqlMonitorAlertSettings -MonitoredObject $MonitoredObject -AlertType $alertType&nbsp;</div><div><br></div><div>Write-Host "Current Setting: " $alertSettings.Status</div><div>##Make the update</div><div>Update-SqlMonitorAlertSettingsStatus -MonitoredObject $MonitoredObject -AlertType $alertType -Status $Status</div><div><br></div><div>##Get the updated settings</div><div>$alertSettings = Get-SqlMonitorAlertSettings -MonitoredObject $MonitoredObject -AlertType $alertType&nbsp;</div><div><br></div><div>Write-Host "Updated Setting: " $alertSettings.Status</div></div> Thanks, -Luke. / comments
Rather than updating the alert suppression window in the database, I think we're going to go with just disabling this alert via the powershell module... for anyone else interested in this, the code...
0 votes
That's great news.  I'm not sure how quickly we'll be able to get the next release installed since we just did an update, but I'll pass this along.  I'll let you know when we get it installed if we still see the issue. / comments
That's great news.  I'm not sure how quickly we'll be able to get the next release installed since we just did an update, but I'll pass this along.  I'll let you know when we get it installed if we...
0 votes