In some cases, investigation of VZAgent logs is required. VZAgent logs are located in the /var/log/vzagent/
directory. In order to increase/decrease the debug level, it is necessary to modify VZAgent settings in the configuration file /var/vzagent/etc/vzagent.conf
. In some cases, debugging of PIM/PPP processes is required also.
Use the /sbin/vzalog
) to make these changes easily and quickly.
Usage: vzalog on | off
vzalog clean [N]
on/off option changes /var/vzagent/etc/vzagent.conf and /vz/root/1/etc/vzcp/vzcpcon.conf
in order to increase/decrease log level.
It also performs services restart and does NOT save old settings.
show option displays current log settings in vzagent.conf and vzcpcon.conf files.
clean option cleans /var/log/vzagent/ directory from old VZAgent log files and lefts ones only for last N days.
If number of days is omitted default 30 days value is used.