egrep -A 2 -B 5 "hostgroups.*(CRIT|DMZ)" your_config_file