What I saw in some commercial "panic lights" devices, they periodically discharge almost complete battery and recharge it, this ensures NiMh batteries to stay in good condition.
If there is no room for power resistor, then activate led lights and discharge battery to determined level, and monitor discharge time, if this time is shorten for lots from some determined time as worst acceptable, then battery is bad. To determine that normal time, test and monitor new and good battery, and make calc.
Use manufacturer battery datasheet as reference what to expect from batteries, and conditions and rules for charging and discharging. Also lifetime for batteries can be found there. Lifetime for NiMh and NiCd is linked with time, regardless of the use and exploitation, because batteries is chemistry technology, some chemical material inside aging and change its structure reflecting that on battery work.
If you use lead acid battery chemistry, you dont need to "jogging" battery, just maintain battery on float charging voltage. Dont forget to include temperature inside device case for determining float charging voltage level.
;-)