Bugfix and new configuration for online DQM

Same content as parallel PR #4527 made for 72X.
Please do not comment code. Remove it if not needed anymore.