vzstatrep Configuration File
The
vzstatrep.conf
configuration file located in the
/etc
directory on the Monitor Server is used by the
vzstatrep
utility while trying to generate statistic reports and graphics on the server resource consumption and to send them to your e-mail address. This file has a number of lines in the following format:
<parameter_name>
="
parameter_value
"
Below is a list of available parameters:
Name
|
Description
|
NODES
|
The IP address or hostname of the server whose logs are to be analyzed. You can set several servers for being processed with the help of the
vzstatrep
utility and separate them by spaces. If no server is specified, the logs of the local server (i.e. of the Monitor Server itself) are analyzed.
|
STATS_EMAIL
|
The e-mail address to send the generated statistic reports and graphics to. You can specify several e-mail addresses and separate them by commas or spaces.
|
GNUPLOT
|
The path to the
gnuplot
utility on the Monitor Server. By default, the utility is located in the
/usr/bin
directory; however, you may specify another directory for its location (e.g.
/etc/mydir/gnuplot
).
gnuplot
is used by the
vzstatrep
utility to present the server resources consumption in the graphical form. The resources whose graphics are to be generated should be set as the values of the
STATS_PLOT
parameter. For detailed information on the
gnuplot
utility, see its man pages.
|
MUTT
|
The path to the
mutt
utility on the Monitor Server. By default, the utility is located in the
/usr/bin
directory; however, you may specify another directory for its location (e.g.
/etc/mydir/mutt
).
mutt
is used by the
vzstatrep
utility to send the generated statistic reports and graphics in the form of attached files via e-mail. For detailed information on the
mutt
utility, see its man pages.
|
LOGS_DIR
|
The path to the directory on the server where
vzstatrep
will search for the logs generated by the
vzlmond
daemon and containing the information on the server resources consumption. By default, the
/var/log/vzstat
directory is used. If you have changed the directory where
vzlmond
stores the gathered information, you should specify the full path to this directory as the value of this parameter (e.g.
LOGS_DIR=/my_logs/vzstat
).
|
STATS_PLOT
|
Specify the resources parameters whose graphics are to be generated by means of the
gnuplot
utility. You can specify several resources and separate them by spaces. Currently, you can create graphics for the following parameters:
-
ve_sum
: the information on the CPU usage for all Containers on the server.
-
ve_top
: the information on the CPU usage for 5 Containers with the highest CPU consumption.
-
loadavg
: the average number of active processes for the past 1, 5, and 15 minutes. Active processes can be running, i.e. currently executed by the CPU, or runnable, i.e. waiting in the run queue for the CPU.
-
io
: the amount of data read from and written to all devices on the server, in kilobytes per second.
-
mem
: the total memory consumption on the server.
-
ints
: the number of interrupts and context switches on the server per second.
-
cpu
: the information on the CPU load on the server.
-
net
: the network information for each network interface on the server.
-
forks
: the number of copies of all processes made on the server during one second.
By default, all the aforementioned resources except for
ve_sum
are plotted.
|
To start analyzing the logs, creating the server statistic reports and graphics, and receiving e-mail messages with these reports and graphics, you should specify the
NODES
and
STATS_EMAIL
parameters in the
/etc/vzstatrep.conf
file. All the other parameters are automatically set during the
vzrmon
package installation on the Monitor Server.
|