def environment_prerequisite_validation():
    """Validates that basic environment requirements are met for the onboarding operations."""
    nxautomation_username = "******"
    if linuxutil.is_existing_user(nxautomation_username) is False:
        raise Exception("Missing user : "******". Are you running the lastest OMSAgent version?")

    omsagent_username = "******"
    if linuxutil.is_existing_user(omsagent_username) is False:
        raise Exception("Missing user : "******".")

    omiusers_group_name = "omiusers"
    if linuxutil.is_existing_group(omiusers_group_name) is False:
        raise Exception("Missing group : " + omiusers_group_name + ".")

    nxautomation_group_name = "nxautomation"
    if linuxutil.is_existing_group(omiusers_group_name) is False:
        raise Exception("Missing group : " + nxautomation_group_name + ".")
def environment_prerequisite_validation():
    """Validates that basic environment requirements are met for the onboarding operations."""
    nxautomation_username = "******"
    if linuxutil.is_existing_user(nxautomation_username) is False:
        raise Exception("Missing user : "******". Are you running the lastest OMSAgent version?")

    omsagent_username = "******"
    if linuxutil.is_existing_user(omsagent_username) is False:
        raise Exception("Missing user : "******".")

    omiusers_group_name = "omiusers"
    if linuxutil.is_existing_group(omiusers_group_name) is False:
        raise Exception("Missing group : " + omiusers_group_name + ".")

    nxautomation_group_name = "nxautomation"
    if linuxutil.is_existing_group(omiusers_group_name) is False:
        raise Exception("Missing group : " + nxautomation_group_name + ".")