xenserver / status-report

Program that gathers data for xenserver host diagnostics
GNU Lesser General Public License v2.1
1 stars 9 forks source link

CP-41107: Store bug tool log in status report #7

Closed GeraldEV closed 1 year ago

GeraldEV commented 1 year ago

Create a log file to be included in the status report

Log file consists of the parameters of the script, the PATH environment variable and any omitted files Example output:

[root@xenserver-nxmrazyx ~]# cat bug-report-20230713153644/xen-bugtool.log
/usr/sbin/xen-bugtool -a -y
PATH=/opt/xensource/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

Omitting /dev/shm/metrics/xcp-rrdd-xenpm, size constraint of xcp-rrdd-plugins exceeded
Omitting /dev/shm/metrics/xcp-rrdd-mem_vms, size constraint of xcp-rrdd-plugins exceeded
Omitting /dev/shm/metrics/xcp-rrdd-mem_host, size constraint of xcp-rrdd-plugins exceeded
[root@xenserver-nxmrazyx ~]#
GeraldEV commented 1 year ago

Had to push a quick fix, I had re-used a method name, testing and working now