Created
June 16, 2011 10:01
-
-
Save bkenny/1028979 to your computer and use it in GitHub Desktop.
Grab last 7 days of load notifications from Hybodus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Grab the last 7 days of load notifications | |
select from_unixtime(notification_history.dts), server.servername, notification_history.message | |
from server, service, notification_history | |
where service.server_id = server.server_id | |
and notification_history.service_id = service.service_id | |
and notification_history.message like '%Load%' | |
and from_unixtime(notification_history.dts) >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) | |
order by server.servername desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment