"You all have to remain alert so that the joy of Eid doesn't cause sufferings to others," he said.
The president made the call while speaking at an Eid get-together in Bangabhaban on Monday.
"Eid is being celebrated at a time when the fear of dengue has spread throughout the country. Unplanned dumping of animal waste may spawn more Aedes mosquitoes."
The president said it is possible to prevent dengue if people take the necessary precautions. He also urged the wealthy in Bangladesh to spread the joy of Eid among the poor around the country.
He also called on the people to heed the lesson of sacrifice propounded by Prophet Hazrat Ibrahim (A) and embodied by the symbolic sacrifice of cattle on Eid-ul-Azha.
"We have to emulate the teachings of Eid-ul-Azha and the heritage of communal harmony in our social and individual life to facilitate development," he said.