]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/Report.pm
ceph: config hash fallback style improvement
[pve-manager.git] / PVE / Report.pm
index 64a537c064a418aa6e38d8ef4100693e07bf55af..9c46aa9b77a9dccccac49c1e8c09483337d72ad8 100644 (file)
@@ -10,9 +10,10 @@ my sub dir2text {
     my ($target_dir, $regexp) = @_;
 
     print STDERR "dir2text '${target_dir}${regexp}'...";
-    my $text = '';
+    my $text = "# output '${target_dir}${regexp}' file(s)\n";
     PVE::Tools::dir_glob_foreach($target_dir, $regexp, sub {
        my ($file) = @_;
+       return if $file eq '.' || $file eq '..';
        $text .=  "\n# cat $target_dir$file\n";
        $text .= PVE::Tools::file_get_contents($target_dir.$file)."\n";
     });
@@ -29,18 +30,25 @@ my $init_report_cmds = sub {
            order => 10,
            cmds => [
                'hostname',
+               'date -R',
                'pveversion --verbose',
                'cat /etc/hosts',
-               'top -b -n 1  | head -n 15',
                'pvesubscription get',
                'cat /etc/apt/sources.list',
                sub { dir2text('/etc/apt/sources.list.d/', '.*list') },
                sub { dir2text('/etc/apt/sources.list.d/', '.*sources') },
                'lscpu',
-               'head /proc/pressure/*',
                'pvesh get /cluster/resources --type node --output-format=yaml',
            ],
        },
+       'system-load' => {
+           title => 'overall system load info',
+           order => 20,
+           cmds => [
+               'top -b -c -w512 -n 1 -o TIME | head -n 30',
+               'head /proc/pressure/*',
+           ],
+       },
        storage => {
            order => 30,
            cmds => [
@@ -48,7 +56,8 @@ my $init_report_cmds = sub {
                'pvesm status',
                'cat /etc/fstab',
                'findmnt --ascii',
-               'df --human',
+               'df --human -T',
+               'proxmox-boot-tool status',
            ],
        },
        'virtual guests' => {
@@ -61,12 +70,14 @@ my $init_report_cmds = sub {
            ],
        },
        network => {
-           order => 40,
+           order => 45,
            cmds => [
                'ip -details -statistics address',
                'ip -details -4 route show',
                'ip -details -6 route show',
                'cat /etc/network/interfaces',
+               sub { dir2text('/etc/network/interfaces.d/', '.*') },
+               sub { dir2text('/etc/pve/sdn/', '.*') },
            ],
        },
        firewall => {
@@ -74,7 +85,7 @@ my $init_report_cmds = sub {
            cmds => [
                sub { dir2text('/etc/pve/firewall/', '.*fw') },
                'cat /etc/pve/local/host.fw',
-               'iptables-save',
+               'iptables-save -c | column -t -l4 -o" "',
            ],
        },
        cluster => {
@@ -84,24 +95,20 @@ my $init_report_cmds = sub {
                'pvecm status',
                'cat /etc/pve/corosync.conf 2>/dev/null',
                'ha-manager status',
+               'cat /etc/pve/datacenter.cfg',
            ],
        },
-       bios => {
+       hardware => {
            order => 70,
            cmds => [
                'dmidecode -t bios',
-           ],
-       },
-       pci => {
-           order => 75,
-           cmds => [
                'lspci -nnk',
            ],
        },
-       disks => {
+       'block devices' => {
            order => 80,
            cmds => [
-               'lsblk --ascii',
+               'lsblk --ascii -M -o +HOTPLUG,ROTA,PHY-SEC,FSTYPE,MODEL,TRAN',
                'ls -l /dev/disk/by-*/',
                'iscsiadm -m node',
                'iscsiadm -m session',
@@ -122,6 +129,7 @@ my $init_report_cmds = sub {
            'zpool status',
            'zpool list -v',
            'zfs list',
+           'arcstat',
            ;
     }
 
@@ -131,10 +139,12 @@ my $init_report_cmds = sub {
            'ceph osd status',
            'ceph df',
            'ceph osd df tree',
+           'ceph device ls',
            'cat /etc/ceph/ceph.conf',
            'ceph config dump',
            'pveceph pool ls',
            'ceph versions',
+           'ceph health detail',
            ;
     }