Previous page

Next page

Locate page in Contents

Print this page

vzstatrep

vzstatrep is run on the Monitor Server and used to analyze the logs collected by the vzlmond daemon on one or more servers to generate statistic reports and graphics on the basis of the gathered logs, and to send these reports and graphics to the server administrator's e-mail address(es). The vzstatrep utility has the following syntax:

vzstatrep [ options ]

The following command-line options can be passed to vzstatrep :

Name

Description

--plot

Generate graphics for the resources parameters specified as the values of the STATS_PLOT parameter in the /etc/vzstatrep.conf file on the Monitor Server.

--sendmail

Send the statistic report and graphics to the e-mail address(es) specified as the value(s) of the STATS_EMAIL parameter in the /etc/vzstatrep.conf file on the Monitor Server. If the --sendmailto option is omitted, you should obligatorily use this option.

--sendmailto mail

Send the statistic report and graphics to the e-mail address specified as the value of this option. You can set several e-mail addresses and separate them by spaces. If the --sendmail option is omitted, you should obligatorily use this option.

--weekly

Generate statistic reports and graphics on a weekly basis. By default, vzstatrep analyzes the logs and produces the server resources statistics once a day.

--nodes hostname

Analyze the logs from the server whose IP address or hostname is specified as the value of this option. You can set several servers by separating them by spaces and enclosing them in quotes (e.g. "my_hardware_node1 my_hardware_node2" ). If the option is omitted or its value is not specified, the logs from the servers set as the values of the NODES parameter in the /etc/vzstatrep.conf file on the Monitor Server are analyzed.

The vzstatrep utility generates statistic reports and graphics on the basis of the logs gathered by vzlmond (by default, the logs are stored in the /var/log/vzstat directory on the server) and containing information on the memory and CPU consumption of the server, network resources on the server, etc. You do not need to perform any additional operations to start using vzstatrep . All the necessary parameters can be set during the vzstatrep execution by using the aforementioned options. However, if you wish to run the vzstatrep utility as a cron job and/or free yourself from the necessity to manually specify the needed options each time you wish to run vzstatrep , you should edit the /etc/vzstatrep.conf configuration file on the Monitor Server and set the parameters values contained in this file. Detailed information on the /etc/vzstatrep.conf file is provided in the vzstatrep Configuration File subsection .