def verify_selinux_state(self):
        """
        Verify SELinux is not in enforcing mode, which can harm the events' forwarding to the agent.
        """
        command_name = "verify_selinux_state"
        command_to_run = "sudo getenforce 2> /dev/null; if [ $? != 0 ]; then echo 'Disabled'; fi"
        result_keywords_array = ["Enforcing"]
        command_object = CommandVerification(command_name, command_to_run, result_keywords_array)
        if StrictVersion(AGENT_VERSION) < StrictVersion(AGENT_MIN_HARDENING_VERSION):
            command_object.run_full_test(True)
            if not command_object.is_successful:
                print_error(self.SELINUX_RUNNING_ERROR_MESSAGE)
        else:
            command_object.is_successful = True
            command_object.print_result_to_prompt()

        Verify SELinux is not in enforcing mode, which can harm the events' forwarding to the agent.
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py