Hi
Couple of ways to check if page is active or not:
1. Create an OSGI Service bundle that implements the EventHandler class and listen for your required events.. I.e you can get the ReplicationAction using ReplicationAction.fromEvent(yourevent) and check if it matches the event of interest. You could get status by ReplicationStatus status = page.adaptTo(ReplicationStatus.class) .
2. Check the audit log at /var/audit/com.day.cq.replication if on the author, nodes have the cq:Type of Activate/Deactivate.
Also a reference article:- http://www.wemblog.com/2011/10/how-to-find-all-pages-modified-or.html
// How to find all the pages modified or activated after certain time
I hope this would help you.
~kautuk
Kautuk Sahni