Makefile: add install-all target

vzstats.spec: use it

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
First attempt to make paths configurable

Not including the man page yet.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzstats(8): substitute paths

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzstats: increased timeout to 10s

As reported by some users with slow Internet behind the firewall,
3 seconds is not enough.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzstats: make sure to not run inside CT

vzstats 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>
vzstats: make sure sbin paths are in PATH

From 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>
Makefile: fix rpms target

Broken by commit 69f9457

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
bin/top-ps: added

Let's try to find top apps used by CTs.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzstats.spec: run trigger in background

When RPMs are installed, we don't want huge delays.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
bin/vzversion-arch: grep OpenVZ kernel names
Makefile: take vzstats version from spec file

Now 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>
Released 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 target, use it from spec

=== Thanks ===

* Thomas Lucke (Lucky)
* CoolCold

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
bin/top-ps: add --quiet to vzctl exec
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Enable SSL when talking to stats server

We 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>
Remove lspci report

We 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>
curl: increase timeout to 30s

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Released 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>
Makefile: install ssl cert as 0644

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Fix SSL cert problem on older systems

Apparently 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>
Released 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>