Editing Vzstats/en

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 31: Line 31:
 
=== What about my privacy? ===
 
=== What about my privacy? ===
  
We are trying to keep the client very simple, so you can see for yourself what information is gathered and how it is being sent.
+
Мы посторались сделать клиент очень простым, так что Вы сами можете посмотреть какую информацию и как он собирает.
  
All submissions are anonymous and is not including your IPs, MAC addresses, host names etc.
+
Вся информация, которую отправляет клиент, является анонимной. Она не включет Ваши IP адреса, MAC адреса, имя хоста и т.п.
  
Except for the information gathered, server knows client's UUID and IP.
+
Кроме собранной информации сервер знает только UUID клиента и его IP.
  
UUID is random, it's only purpose to track each client as a separate distinct entity.
+
UUID случаен. Он используется только что бы отделять сообщения клиента от сообщений других клиентов.
  
Client IP address is naturally known to the server. It is stored in httpd server logs but is not used for statistics.
+
IP адрес клиента естественно известен серверу. Он сохраняется в логах httpd сервера, но не используется при построении статистики.
  
== Client ==
+
== Клиент ==
  
=== How the client works? ===
+
=== Как работает клиент? ===
  
When vzstats is executed, it does the following:
+
При запуске vzstats делает следующее:
# checks if UUID is obtained; asks the server for one if it's not;
+
# проверяет выделен ли ему уже UUID; запрашивает выдачу одного у сервера, если не выделан;
# runs scripts from <code>/usr/libexec/vzstats</code> directory;
+
# запускает скрипты из директории <code>/usr/libexec/vzstats</code>;
# collects their output into separate text files, one per script;
+
# собирает их вывод в отдельные файлы, по одному файлу на скрипт;
# creates a tarball with all these text files
+
# создает tar архив из всех этих файлов;
# sends this tarball together with UUID to the stats server, stats.openvz.org
+
# отправляет этот tar архив с UUID на сервер статистики - stats.openvz.org
  
=== Where can I see client source code? ===
+
=== Где я могу увидеть исходный код клиента? ===
  
Client is written in shell, so just check /usr/sbin/vzstats script.
+
Клиент написан на shell, так что просто проверьте скрипт /usr/sbin/vzstats.
  
There is a git repository for client code, see http://git.openvz.org/?p=vzstats;a=summary
+
Так же код клиента доступен в git репо - http://git.openvz.org/?p=vzstats;a=summary
  
=== What is UUID? ===
+
=== Что такое UUID? ===
  
It's just a unique random ID, in UUID v4 format [http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29]. This is an example of UUID: <code>285ad6e8-fe62-433c-be2a-643e1c54b315</code>
+
Это просто уникальный случайный идентификатор в формате UUID v4 [http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29]. Пример такого UUID: <code>285ad6e8-fe62-433c-be2a-643e1c54b315</code>
  
When <code>vzstats</code> is executed for the first time, it checks that there is no UUID, asks the stats server for one and stores it locally.
+
Когда <code>vzstats</code> запускается в первый раз он проверяет, что у него нет UUID. Запрашивает его у сервера и сохраняет полученный UUID локально.
  
=== What info is collected? ===
+
=== Какая информация собирается? ===
  
For details, check the scripts in <code>/usr/libexec/vzstats</code> directory.
+
Для получения подробностей смотрите скрипты в <code>/usr/libexec/vzstats</code>.
  
=== Download ===
+
=== Скачать ===
  
For latest and previous versions of vzstats see [[Download/vzstats]].
+
Последнюю и предыдущие версии vzstats вы можете найти на [[Download/vzstats]].
  
=== Source code ===
+
=== Исходный код ===
  
 
https://src.openvz.org/projects/OVZL/repos/vzstats/browse
 
https://src.openvz.org/projects/OVZL/repos/vzstats/browse
  
=== When it is run? ===
+
=== Когда он запускается? ===
  
vzstats run in the following cases
+
vzstats запускается в следующих случаях:
* Upon installation, if OpenVZ is already installed on the system
+
* После установки, если OpenVZ уже установлен.
 
<!-- NOT IMPLEMENTED YET * During system boot, if OpenVZ is started (from vz initscript) -->
 
<!-- NOT IMPLEMENTED YET * During system boot, if OpenVZ is started (from vz initscript) -->
* When any of OpenVZ packages are updated (vzctl, vzquota, ploop, kernel)
+
* Когда какой-либо из пакетов OpenVZ обновлен (vzctl, vzquota, ploop, kernel)
* Periodically, once a month, from cron, if crond is running.
+
* Раз в месяц по крону, если crond запущен.
  
You can also run it manually (<code>/usr/sbin/vzstats</code> as root) if you like to update your stats on server.
+
Вы также можете запустить его в ручную (<code>/usr/sbin/vzstats</code> под root) , если хотите обновить статистику по Вашему серверу.
  
=== How to opt-out ===
+
=== Как отключить отправку ===
  
You can completely disable vzstats client on a machine by executing the following command:
+
Вы можете полностью деактивировать vzstats клиент на Вашем компьютере выполнив следующую команду:
  
 
  touch /etc/vz/vzstats-disable
 
  touch /etc/vz/vzstats-disable
  
If you want to re-enable vzstats, just do
+
Если Вы захотите включить его снова просто выполните:
  
 
  rm -f /etc/vz/vzstats-disable
 
  rm -f /etc/vz/vzstats-disable
  
== Server ==
+
== Сервер ==
  
Server consists of the following components:
+
Сервер состоит из следующих частей:
* database (MySQL)
+
* база данных (MySQL)
* trivial UUID generation script
+
* просто скрипт для генерации UUID
* submission receiver script, which just stores the received file
+
* скрипт, который сохраняет переданный файл
* submission processing scripts, populating the database
+
* скрипт для обработки и сохранения данных в базу данных
* web interface (http://stats.openvz.org/), showing statistics from the database
+
* веб-интерфейс (http://stats.openvz.org/), который показывает статистику из базы данных
  
== See also ==
+
== Также смотрите ==
  
 
* http://stats.openvz.org
 
* http://stats.openvz.org

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)