(self, proc_location)
return True
Determine if collect_connection_state is set and can effectively run.
        If self._collect_cx_state is True and a custom proc_location is provided, the system cannot
         run `ss` or `netstat` over a custom proc_location
        :param proc_location: str
        :return: bool
Determine if collect_connection_state is set and can effectively run.
        If self._collect_cx_state is True and a custom proc_location is provided, the system cannot
         run `ss` or `netstat` over a custom proc_location
        :param proc_location: str
        :return: bool
Determine if collect_connection_state is set and can effectively run . If self . _collect_cx_state is True and a custom proc_location is provided the system cannot run ss or netstat over a custom proc_location : param proc_location : str : return : bool
def _is_collect_cx_state_runnable(self, proc_location):
        """
        Determine if collect_connection_state is set and can effectively run.
        If self._collect_cx_state is True and a custom proc_location is provided, the system cannot
         run `ss` or `netstat` over a custom proc_location
        :param proc_location: str
        :return: bool
        """
        if self._collect_cx_state is False:
            return False

        if proc_location != "/proc":
            # If we have `ss`, we're fine with a non-standard `/proc` location
            if distutils.spawn.find_executable("ss") is None:
                self.warning(
                    "Cannot collect connection state: `ss` cannot be found and "
                    "currently with a custom /proc path: %s",
                    proc_location,
                )
                return False
            else:
                return True

        return True
def _is_collect_cx_state_runnable ( self , proc_location ) : if self . _collect_cx_state is False : return False if proc_location != "/proc" : # If we have `ss`, we're fine with a non-standard `/proc` location if distutils . spawn . find_executable ( "ss" ) is None : self . warning ( "Cannot collect connection state: `ss` cannot be found and " "currently with a custom /proc path: %s" , proc_location , ) return False else : return True return True