OpenVZ-legacy
  1. OpenVZ-legacy

vzstats

Public
AuthorCommitMessageCommit dateIssues
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>
Kir KolyshkinKir Kolyshkin
3e616862b56vzstats: add --help and --viewSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
49bd1cac231Released vzstats 0.2.1- fixed compatibility with older (as of RHEL5/4) userspace - stricter checks for scripts permission and ownership Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b643e299fdbvzstats: improve find1. Do not use -perm /mode since it is not available in CentOS 4 find. 2. Add -maxdepth 1 just in case to not dive in too deep. 3. Exclude files - writeable by group or others - not belonging to root:root - not readable by user Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9546c65f791vzstats: fix for older find/mktempOld versions of find don't understand -executable, so let's user -perm instead. Old versions of mktemp don't have --suffix, so don't use it. By "old" I mean versions from RHEL5. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6b6ff87cb4dReleased vzstats 0.2Changes: - first public release - added meminfo and ostemplates scripts Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b7450b98263bin/ostemplates: addSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5cde1b2eee4Add .gitignoreSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e479a0c0228Makefile: fix for older tarOld tar versions don't understand --exclude-vcs so let's use --exclude .git instead. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
13424680ccdAdd meminfo scriptSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1a71f412d19vzstats: quote CURL= assignmentFix to commit 4fb2f08. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e0d06075072vzstats.spec: it's a noarch packageSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
66065f1e42fMakefile: mark install-cronjob as PHONYSigned-off-by: Kir Kolyshkin <kir@openvz.org>