Page 1 of 1

VMWARE SDK install broke WMI perl plugin

Posted: Wed Jun 16, 2021 1:43 pm
by mcockram
I run nagiosxi on RHEL8.

I installed the VMWARE 7.0 Update 2 SDK following the instructions at https://assets.nagios.com/downloads/nag ... ios_XI.pdf. It installed successfully, but the WMI perl plugin started failing on all the windows systems.
I had to roll it back to a previous vmware snapshot.

Code: Select all

(No output on stdout) stderr: Can't locate Devel/StackTrace.pm: /usr/local/share/perl5/Devel/StackTrace.pm: Permission denied at /usr/share/perl5/vendor_perl/Specio/Exception.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/Exception.pm line 12.
Compilation failed in require at /usr/share/perl5/vendor_perl/Specio/Constraint/Role/Interface.pm line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/Constraint/Role/Interface.pm line 11.
Compilation failed in require at /usr/share/perl5/vendor_perl/Role/Tiny.pm line 52.
Compilation failed in require at /usr/share/perl5/vendor_perl/Specio/Declare.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/Declare.pm line 12.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/DateTime/Types.pm line 12.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/DateTime/Types.pm line 12.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/DateTime/Duration.pm line 12.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/DateTime/Duration.pm line 12.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/DateTime.pm line 14.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/DateTime.pm line 14.
Compilation failed in require at /usr/local/nagios/libexec/check_wmi_plus.pl line 57.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_wmi_plus.pl line 57.

Re: VMWARE SDK install broke WMI perl plugin

Posted: Wed Jun 16, 2021 5:00 pm
by dchurch
I wasn't able to reproduce the issue under CentOS 8. I'll be trying with RHEL 8.3 in the mean time.

Can you try running the following command to fix that file?

Code: Select all

yum reinstall -y perl-Devel-StackTrace

Re: VMWARE SDK install broke WMI perl plugin

Posted: Mon Jun 21, 2021 8:26 am
by mcockram
Any luck trying with RHEL 8.3?

Re: VMWARE SDK install broke WMI perl plugin

Posted: Mon Jun 21, 2021 12:29 pm
by dchurch
Installing VMware SDK 7.0.0 U2 also didn't yield a broken system.

The "permission denied" error makes me think the permissions are wrong for StackTrace.pm

Try running this command to reinstall the package:

Code: Select all

cpan install Devel::StackTrace
If that doesn't fix it, can you try the following commands and attach the output?

Code: Select all

getenforce
find /usr/ -type f -name StackTrace.pm | while read -r fn; do ls -lad "$(dirname "$fn")"; ls -la "$(dirname "$fn")"; done
perl -MDevel::StackTrace -e 'exit'
strace -etrace=file perl -MDevel::StackTrace -e 'exit'
perl -MDateTime -e 'exit'
strace -etrace=file perl -MDateTime -e 'exit'