[Users] vzctl command logging

CoolCold coolthecold at gmail.com
Sun Jul 13 11:05:16 PDT 2014


You can add some wrapper around like
#!/bin/bash
LOGGER='logger -t vzctl --'
$LOGGER "vzctl was called with $@"
/path/to/original/vzctl.binary $@


On Sun, Jul 13, 2014 at 9:34 PM, Mark Johanson <mjohanson at a2hosting.com>
wrote:

> Hello,
>
> I was wondering if there was a logging level that would actually include
> the vzctl command (and options) in vzctl.log file?  I've tried increasing
> both the LOG_LEVEL and VERBOSE settings in the vz.conf file without any
> luck. I stopped upping the level on both at 6 as I figured by then if it
> wasn't there is probably wasn't going to be.
>
> Reason I am asking is we get the occasional one off vm creation that does
> not include the 2nd, 3rd, 4th, etc IP address they are assigned with. So we
> have to go back and manually add them. Its rare and far between that it
> happens, and I can not manually replicate it when I am trying to make it
> happen. The API call shows that everything was sent correctly in those
> logs, but since I can't see the actual vzctl command that was run at the
> time of creation I can't say for certain where the failure is at.
>
> Thanks,
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
>



-- 
Best regards,
[COOLCOLD-RIPN]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20140713/4af5aef0/attachment.html>


More information about the Users mailing list