Alert agents when tickets need attention (e.g. older than X days and still "open")

Alert agents when tickets need attention (e.g. older than X days and still "open")

Is there a way to have the ticket owner be notified when one of their tickets is more than X days old and e.g. is still in an open status (i.e. not "waiting on customer" or "on hold"?  In other words, to alert them when an old ticket needs their attention?
Or maybe the trigger would be when a ticket has not been updated (replied to by agent or customer) in more than X days?

Is something like this possible?