OpenVZ-legacy
  1. OpenVZ-legacy

vzstats

Public
AuthorCommitMessageCommit dateIssues
Vasily AverinVasily Averin
17dd6a5d37dbuild fix
Vasily AverinVasily Averin
58b32403b76Fix curl failur due obsoleted CA bundle
Kir KolyshkinKir Kolyshkin
60aee9f3365get_id(): exit if curl failsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
55da7b9adeaReleased vzstats 0.5.3Changes: - vzstats.conf should not be executable (#2758) - Scripts shall start with hash-bang (#2757) - added pstorage packages === Thanks === * Ola Lundqvst <ola@inguza.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
80b020d0bfebin/vzversion*: add pstorage packagesSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Ola LundqvistKir KolyshkinOla Lundqvist
6e15491d9a5Scripts shall start with hash-bangWhen building this package for Debian lintian noticed that some of the scripts in usr/libexec/vzstats were executable and had not #!/bin/sh in the beginning. https://bugzilla.openvz.org/2757
Ola LundqvistKir KolyshkinOla Lundqvist
f4ab748f7f8vzstats.conf should not be executableWhen building the package for Debian lintian warn about the configuration file being executable. https://bugzilla.openvz.org/2758
Kir KolyshkinKir Kolyshkin
e911a4eca19Released vzstats 0.5.2* removed top-ps script (#2704) === Thanks === * Pavel Snajdr <pavel.snajdr@relbit.com> * Mirek Kratochvil <exa.exa@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
cf3b1803d9bRemoved top-ps scriptIt is not used anyway (see http://openvz.livejournal.com/2013/09/). https://bugzilla.openvz.org/2704 Reported-by: Pavel Snajdr <pavel.snajdr@relbit.com> Reported-by: Mirek Kratochvil <exa.exa@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
588d91c7465Released vzstats 0.5.1* fixed SSL problems on older systems * fixed CA cert permissions (a-x) === Thanks === * Pavel Odintsov <pavel.odintsov@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
adb4677c776Fix SSL cert problem on older systemsApparently older systems lacks trusted certs for COMODO, so individual CA cert is not enough and we have to ship an "Essential Bundle" from https://support.comodo.com/index.php?_m=downloads&_a=view&parentcategoryid=20&pcid=1&nav=0,30,1 https://bugzilla.openvz.org/2669 Reported-by: Pavel Odintsov <pavel.odintsov@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5159cc751b2Makefile: install ssl cert as 0644Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9d0f1dc35afReleased vzstats 0.5* enabled SSL when sending reports to stats.openvz.org * removed lspci script * bin/top-ps: add --quiet to vzctl exec * increased curl timeout to 30s === Thanks === * ipredator.se Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
19ca890c8d6curl: increase timeout to 30sSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e93527a6b53Remove lspci reportWe don't use it, so doesn't make sense to have it. The original idea was to get some hardware info to find out which drivers people use (and we should care about). But we haven't implemented it, so let's remove, at least for now... Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
0eaf72e93d6Enable SSL when talking to stats serverWe have to add the CA cert since the issuer (EssentialSSL CA) is not in default bundle (at least in CentOS 6 and Fedora 18). Reported-by: ipredator.se Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9bd8e721c59bin/top-ps: add --quiet to vzctl execSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
86de0a8dd74Released vzstats 0.4* added top-ps script * fix vzversion-arch for openvz kernel names (#2596) * make sure sbin paths are in PATH before running scripts * exit with error if run inside CT * increased curl timeout from 3s to 10s * vzstats.spec: run trigger in background * Makefile: support for configurable paths (see Makefile.paths) * Makefile: substitute version from spec to script * Makefile: add install-all targ...
Kir KolyshkinKir Kolyshkin
ba325ad83d2Makefile: take vzstats version from spec fileNow when we have vzstats.in and substitution mechanism, we don't have to maintain version in two places. Let's just take it from spec file and substitute. Naturally, check-version target is no longer needed. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Thomas Lucke (Lucky)Kir KolyshkinThomas Lucke (Lucky)
e1ebf23aee5bin/vzversion-arch: grep OpenVZ kernel names
Kir KolyshkinKir Kolyshkin
246f2576b9evzstats.spec: run trigger in backgroundWhen RPMs are installed, we don't want huge delays. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
36d9f173a77bin/top-ps: addedLet's try to find top apps used by CTs. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
02bef999f88Makefile: fix rpms targetBroken by commit 69f9457 Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
039b60ae11avzstats: make sure sbin paths are in PATHFrom our report scripts we use commands like vzlist which are in /usr/sbin. Make sure PATH contains those before running these scripts. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fe6e40243advzstats: make sure to not run inside CTvzstats is supposed to be run on the host, not inside a container. Make sure we exit with error if it is detected we are inside a CT. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fdca707c0ddvzstats: increased timeout to 10sAs reported by some users with slow Internet behind the firewall, 3 seconds is not enough. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
36ed94e2a42vzstats(8): substitute pathsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
69f94571743First attempt to make paths configurableNot including the man page yet. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
274374b5521Makefile: add install-all targetvzstats.spec: use it Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
c5a57db8ae0Released vzstats 0.3.2* fixed %triggerin in rpm installation * fixed "http_proxy: unbound variable" error Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7017a9e625bvzstats: fix 'http_proxy: unbound variable' errorSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5ab1f27ef1avzstats.spec: fix %triggerin callThe problem is trigger -p is called with some arguments, which we don't understand, leading to the following error: Non-fatal <unknown> scriptlet failure in rpm package vzstats-0.3.1-1.noarch ERROR: Unknown option /var/tmp/rpm-tmp.gxKwVQ Usage: .... So let's stop using -p for %triggerin Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a5f8ff2ce2bReleased vzstats 0.3.1- add options --help, --view, --enable, --disable and --status - add vzstats(8) man page - add lsbrelease script - fix vzlist script to work with older vzctl - add proxy discovery code - add bash_completion script (this is a respin due to missed VERSION fix in vzstats) Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
0852a8e402cReleased vzstats 0.3- add options --help, --view, --enable, --disable and --status - add vzstats(8) man page - add lsbrelease script - fix vzlist script to work with older vzctl - add proxy discovery code - add bash_completion script Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1ea05652c9cAdd bash_completion script... although I wouldn't call it a script :) Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
00567c6232aREADME, %description: expandExplain what stats are reported and why, links to more info Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e4e2c1931fdvzstats(8): addSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a91f93d987bvzctl --status: implementPrint current configuration etc. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
385970f643dvzstats: print error in case of unknown optionSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
029a5e760e7vzstats: implement --disable/--enableSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a9be1845aa5vzstats: allow to process options even if disabledEven if vzstats is disabled, allow it to process command line options. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a2c95e555e3vzstats: allow more than one optionLoop through options as long as we have any. This also fixes "unbound variable: $0" introduced by commit 3e61686. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e5cd6ef115bvzstats: introduce DISABLED_MARKTo be used by later patches Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d58e6a15920vzstats: move discover_proxy() to after opt parseSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fe33bf21713vzstats: reimplement usage() with here-documentEasier to expand this way Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b28ad77b611vzstats discover_proxy(): use local variable1. Rename PROXY to proxy_line 2. Mark it as local to limit scope Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Mario KleinsasserKir KolyshkinMario Kleinsasser
bd61c4ae613vzstats: autodiscover http proxyAdded function to autodiscover http proxy if possible 1. if http_proxy already set, do nothing, else 2. read /etc/wgetrc and use http_proxy setting if configured, else 3. read /etc/yum.conf and use procy setting if configured, else 4. do nothing and go on [kir@openvz.org: improved regexes, strip whitespace from wget config]
Kir KolyshkinKir Kolyshkin
86a8fb55a8abin/vzlist: check vzlist is availableDon't try to call vzlist many times if it's not available (for some reason). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
19d5b4bb589bin/vzlist: don't ask for unsupported fieldsAs reported in http://www.mail-archive.com/users@openvz.org/msg04770.html: > 2) vzlist script relyes on some newer vzctl version, for example, my > system has backported vzctl 3.0.30.2 , and it doesn't contain output > fields like 'layout' and 'vswap' , so it just exits. So, let's check if fields are supported by vzlist and only use ones that are supported. Note: * "layout" was added in vzct...
Kir KolyshkinKir Kolyshkin
62503b849f3bin/lsbrelease: addFrom http://www.mail-archive.com/users@openvz.org/msg04770.html: > 1) osrelease script tryes to find /etc/*-release which is not used in > Debian. As solution I think it is possible to use lsb_release as > distro-independent way to detect release. Suggested-by: CoolCold <coolthecold@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>