nagios_common: Move check_dsh_groups into module

Change-Id: I7ab9d5aee917b2ce8b2713cc41c93941728d3853