Could not add object property – Icinga Error

Sharing this bit of information to help someone who is worried with this same error. While configuring or modifying Icinga, you may experience an issue like

Warning: Duplicate definition found for host ‘env_servers’ (config file ‘/etc/icinga/conf.d/hostgroups.cfg’, starting on line 19)
Error: Could not add object property in file ‘/etc/icinga/conf.d/hostgroups.cfg’ on line 20.
Error processing object config files!
Continue reading