How to do Nested Checks for complex requirements?

I am using gearman check to monitor workers. Workers varies between 0 and 1. I want a check which display warning if worker remain 0 for upto 3 minutes and critical if it remain 0 for upto 5 minutes.
I think nested checks may be the solution if possible. Like inner check run once a minute and outer check run once a 5 minutes and decision is taken accordingly.