Help for this page
#!/usr/bin/perl use strict; ... } __DATA__ same data with yours...
egrep -A 2 -B 5 "hostgroups.*(CRIT|DMZ)" your_config_file