Commit Graph

19 Commits

Author SHA1 Message Date
Thomas Lamprecht
01c8f6fe7d pvereport: only comput report def if we generate a report.
it's really not a good idea to start doing exec, file exist checks,
... on every module load of this, this may even hang completely
differen parts if something pull us in, and confuse one completely...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reported-by: Wolfgang Link <w.link@proxmox.com>
2019-04-08 12:25:59 +02:00
Thomas Lamprecht
2bdf85f84c fixup whitespaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 12:56:28 +02:00
Friedrich Ramberger
1cf7db21c5 Add Ceph, iscsi and more disk and zfs information to pvereport
Following items added to pvereport:

* more details about disks
* iscsi information
* more zfs information
* ceph information (only when ceph.conf exists)

When running from command line now report progress is shown at the console (STDERR)
2019-04-03 12:53:05 +02:00
Oguz Bektas
5c1c3a536c add 'pvs' to pvereport
get information about physical volumes

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-03-28 14:12:22 +01:00
Thomas Lamprecht
6539859680 pvereport: ensure IPv6 and IPv4 route info is included
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-03-13 14:59:41 +01:00
Thomas Lamprecht
f46065685b pvereport: add cluster resources node information
gives a good overview over the cluster, which nodes are online,
memory/cpu load, uptime...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-13 13:49:55 +01:00
Thomas Lamprecht
44a3f31639 pvereport: add ip route information
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-13 13:49:55 +01:00
Tim Marx
b5f7824ff4 add host firewall config to pvereport
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-03-13 13:47:30 +01:00
Thomas Lamprecht
17b7459397 Report: add info about PCI devices
Good to have when a NIC or other peripheral devices does not works.

Flags used:
-k  Show kernel drivers handling each device and also kernel modules
    capable of handling it.
-nn Show PCI vendor and device codes as both numbers and names.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-22 09:03:48 +01:00
Thomas Lamprecht
8e363beedb Report: add pct list
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-22 09:03:48 +01:00
Thomas Lamprecht
a080141497 Report: use findmnt instead of mount
much easier to parse visually while keeping the same amount of
information

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-22 09:03:48 +01:00
Thomas Lamprecht
2c4ef55e21 Report: refactor to simple schema definition of subreports
Easier to add new commands, or change flags of existing ones.

Use an hash for top level definition as we can push optional commands
easier there than in an array, it resembles also more our normal
schema definitions.

Add a truth-y value at the bottom, to ensure perls require is happy
with this module.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-22 09:03:48 +01:00
Thomas Lamprecht
ed1fafc472 Report: remove useless version check
this is packaged with pve-manager and runs locally on the node,
so we're pretty sure that the version is the one from pve-manager
anyway, this check just makes no sense...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-22 09:03:48 +01:00
Thomas Lamprecht
ee3a898983 pvereport: improve output and add timeouts to commands
Each command may not run longer than 10 seconds. This avoids
situations where no output gets generated because of a infinitely
hanging command (e.g. check for dead NFS storage)
Also ensure that commands are separated with a new line from each
other to improve readability.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-21 07:45:22 +02:00
Emmanuel Kasper
245859bd83 Use ip from iproute2 package instead of net-tools
iproute2 is a direct depency from pve-qemu-kvm and should
be always available

use -statistics so we get the RX/TX traffic sum like ifconfig
use -details to get extra info like current vlan_protocol
2017-02-08 10:00:55 +01:00
Thomas Lamprecht
5e3fd48d19 pvereport: tell lsblk to use ascii
The UTF-8 characters it uses otherwise may be not handled correctly
when some users sent the report to us.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-30 06:11:39 +01:00
Emmanuel Kasper
470c35151c Fix #1186: do not run non installed commands
Conditionnally add commands which are not:
*  Debian packages whith priority Essential or Important,
* a dependency of pve-manager
2016-10-28 11:54:01 +02:00
Wolfgang Link
8c9e7b5ad3 Add some extra debug information to the report.
There were no useful information about block device.
2016-07-05 12:30:00 +02:00
Emmanuel Kasper
2f7faeed28 Move pvereport functionality into a separate PVE package 2015-11-03 18:10:22 +01:00