func GetRemoteSystemProbeUtil() (*RemoteSysProbeUtil, error) {
	err := CheckPath()
	if err != nil {
		return nil, fmt.Errorf("error setting up remote system probe util, %v", err)
	}

	globalUtilOnce.Do(func() {
		globalUtil = newSystemProbe()
		globalUtil.initRetry.SetupRetrier(&retry.Config{ //nolint:errcheck
			Name:          "system-probe-util",
			AttemptMethod: globalUtil.init,
			Strategy:      retry.RetryCount,
			// 10 tries w/ 30s delays = 5m of trying before permafail
			RetryCount: 10,
			RetryDelay: 30 * time.Second,
		})
	})

	if err := globalUtil.initRetry.TriggerRetry(); err != nil {
		log.Debugf("system probe init error: %s", err)
		return nil, err
	}

	return globalUtil, nil
}
// GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil. It is backed by a shared singleton.
GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil. It is backed by a shared singleton.
// GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil . It is backed by a shared singleton .
func GetRemoteSystemProbeUtil() (*RemoteSysProbeUtil, error) {
	err := CheckPath()
	if err != nil {
		return nil, fmt.Errorf("error setting up remote system probe util, %v", err)
	}
	globalUtilOnce.Do(func() {
		globalUtil = newSystemProbe()
		globalUtil.initRetry.SetupRetrier(&retry.Config{ 
			Name:          "system-probe-util",
			AttemptMethod: globalUtil.init,
			Strategy:      retry.RetryCount,
			RetryCount: 10,
			RetryDelay: 30 * time.Second,
		})
	})
	if err := globalUtil.initRetry.TriggerRetry(); err != nil {
		log.Debugf("system probe init error: %s", err)
		return nil, err
	}
	return globalUtil, nil
}
func GetRemoteSystemProbeUtil ( ) ( * RemoteSysProbeUtil , error ) { err := CheckPath ( ) if err != nil { return nil , fmt . Errorf ( " " , err ) } globalUtilOnce . Do ( func ( ) { globalUtil = newSystemProbe ( ) globalUtil . initRetry . SetupRetrier ( & retry . Config { Name : " " , AttemptMethod : globalUtil . init , Strategy : retry . RetryCount , RetryCount : 10 , RetryDelay : 30 * time . Second , } ) } ) if err := globalUtil . initRetry . TriggerRetry ( ) ; err != nil { log . Debugf ( " " , err ) return nil , err } return globalUtil , nil }
GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil.
GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil .
//nolint:errcheck // 10 tries w/ 30s delays = 5m of trying before permafail