There may come a time where you question whether the Data Repository is writing data despite showing online. A time where you could call into question whether the DR is writing data or not would be if you were to not stop a DC before you recover the DR from a backup and not restart the DC once you are done. In this case everything would show up/green but there would be no data on dashboards. As reachability is common among nearly all devices we will use that to check the last write time.
$ vsql -w dbpass -c "select to_timestamp( v.tstamp ) from ( select distinct tstamp from dauser.reach_rate order by tstamp desc limit 10 ) v;"
to_timestamp
---------------------
2017-01-11 14:00:00
2017-01-11 13:55:00
2017-01-11 13:50:00
2017-01-11 13:45:00
2017-01-11 13:40:00
2017-01-11 13:35:00
2017-01-11 13:30:00
2017-01-11 13:25:00
2017-01-11 13:20:00
2017-01-11 13:15:00
(10 rows)