Skip to content

Instantly share code, notes, and snippets.

@bkenny
Created June 16, 2011 10:01
Show Gist options
  • Save bkenny/1028979 to your computer and use it in GitHub Desktop.
Save bkenny/1028979 to your computer and use it in GitHub Desktop.
Grab last 7 days of load notifications from Hybodus
-- 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