Configuring Hostgroups.
Use below config. file for adding host groups definition.
Adding below line within Nagios.cfg file -:
Reload Nagios config.