You can setup an advanced alert and on the Trigger Condition tab, select Custom SQL Alert and Trigger query of Node. Then insert the below SQL in the bottom box:
WHERE Nodes.LastBoot < Getdate()-300
You can set the rest of the alert parameters as desired for trigger actions and so on.