How can we help you today? How can we help you today?
Luke L

Activity overview

Latest activity by 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
CheckDB and i/o metric alert suppression windows
Hello, I have a large database (Tb's) with many files as part of a DW system.  When I perform a CheckDB on that database we see significant Avg Disk read and write alerts.  We know this is going to...
2 followers 3 comments 0 votes
Question about Monitor PS commandlet
Hello, I'm trying to build a witness process for an automated checklist to determine if sql monitor is actually monitoring my servers and that someone didn't suspend monitoring and forget to turn i...
2 followers 4 comments 0 votes