vzstats command not found

In this troubleshooting guide we learn how to fix vzstats command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

vzstats: command not found

or when using sudo you get the following error message

sudo: vzstats: command not found

Solutions to vzstats: command not found

How To Fix vzstats: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu vzstats is provided by vzstats package.

vzstats is:

This is an OpenVZ component to gather OpenVZ usage and hardware statistics, in order to improve the project.

Statistics gathered and reported include the following: 1 Hardware info.

  • CPU, disk, memory/swap 2 Software info.
  • host distribution, versions of OpenVZ components, kernel version 3 Containers info.
  • number of containers existing/running/using ploop/using vswap
  • OS templates of containers For more details, check the scripts in /usr/libexec/vzstats/ directory.

All submissions are anonymous and are not including IP or MAC addresses, hostnames etc. Global data are available at http://stats.openvz.org

For more details, see:

To fix this problem, we can install more using the command below.

sudo apt-get -y install vzstats

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install vzstats.

sudo apt -y install vzstats

Or if you have aptitude installed you can use the following command.

sudo aptitude install vzstats

Summary

In this tutorial we learn how to fix vzstats command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.