bin/check-rds-events.rb in sensu-plugins-aws-11.3.0 vs bin/check-rds-events.rb in sensu-plugins-aws-11.3.1

- old
+ new

@@ -115,10 +115,10 @@ end # fetch the last 15 minutes of events for each cluster # that way, we're only spammed with persistent notifications that we'd care about. clusters.each do |cluster_name| - events_record = rds.describe_events(start_time: (Time.now - 900).iso8601, source_type: 'db-instance', source_identifier: cluster_name) + events_record = rds.describe_events(start_time: (Time.now.utc - 900).iso8601, source_type: 'db-instance', source_identifier: cluster_name) next if events_record[:events].empty? # we will need to filter out non-disruptive/basic operation events. # ie. the regular backup operations next if events_record[:events][-1][:message] =~ /Backing up DB instance|Finished DB Instance backup|Restored from snapshot/