--- pve-manager/PVE/Report.pm.T 2021-09-27 09:13:13.647871975 +0000 +++ pve-manager/PVE/Report.pm 2021-09-27 09:16:19.468529192 +0000 @@ -19,9 +19,6 @@ my sub dir2text { return $text; } -# command -v is the posix equivalent of 'which' -my sub cmd_exists { system("command -v '$_[0]' > /dev/null 2>&1") == 0 } - my $init_report_cmds = sub { my $report_def = { general => { @@ -118,14 +115,6 @@ my $init_report_cmds = sub { }, }; - if (cmd_exists('zfs')) { - push @{$report_def->{volumes}->{cmds}}, - 'zpool status', - 'zpool list -v', - 'zfs list', - ; - } - if (-e '/etc/ceph/ceph.conf') { push @{$report_def->{volumes}->{cmds}}, 'pveceph status', @@ -139,14 +128,6 @@ my $init_report_cmds = sub { ; } - if (cmd_exists('multipath')) { - push @{$report_def->{disks}->{cmds}}, - 'cat /etc/multipath.conf', - 'cat /etc/multipath/wwids', - 'multipath -ll', - ; - } - return $report_def; };