def METHOD_NAME(duthosts, enum_rand_one_per_hwsku_frontend_hostname):
    """Checks whether the Monit service was running or not.
    Args:
        duthosts: The fixture returns list of DuTs.
        enum_rand_one_per_hwsku_frontend_hostname: The fixture randomly picks up
        a frontend DuT from testbed.
    Returns:
        None.
    """
    logger.info("Checking the running status of Monit ...")
    duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
    def _monit_status():
        monit_status_result = duthost.shell("sudo monit status", module_ignore_errors=True)
        return monit_status_result["rc"] == 0
    # Monit is configured with start delay = 300s, hence we wait up to 320s here
    pytest_assert(wait_until(320, 20, 0, _monit_status),
                  "Monit is either not running or not configured correctly")
    logger.info("Checking the running status of Monit was done!")