Most battery charger installation instructions will tell you not to mount their units over batteries due to the corrosive emissions. This setup would likely void the warranty. Even AGM batteries can off-gas. I normally flag this installation and recommend a cover to protect the charger if the owner cannot relocate it.