VMWARE SDK install broke WMI perl plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mcockram
Posts: 23
Joined: Tue May 04, 2021 7:44 am

VMWARE SDK install broke WMI perl plugin

Post 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.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: VMWARE SDK install broke WMI perl plugin

Post 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
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mcockram
Posts: 23
Joined: Tue May 04, 2021 7:44 am

Re: VMWARE SDK install broke WMI perl plugin

Post by mcockram »

Any luck trying with RHEL 8.3?
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: VMWARE SDK install broke WMI perl plugin

Post 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'
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked