If you create the RedisAppStatus class I mention above, you could easily make this check on and report the status of Redis by copying the logic of mysql_agent.cc.