func (nxc *NxConfig) ExecPath() string { execPath := nxc.UserConfig.BinaryPath if common.FileExists(execPath) != nil { log.Fatalf("[%s] Configured path to collector binary does not exist: %s", nxc.Name(), execPath) } return execPath }
func (fbc *FileBeatConfig) ExecPath() string { execPath := fbc.Beats.UserConfig.BinaryPath if common.FileExists(execPath) != nil { log.Fatal("Configured path to collector binary does not exist: " + execPath) } return execPath }