Is it ok to spy on employees?

The employee monitoring software market is booming with the new era of remote working but what are the legal issues and are employees ready to accept it.