Page 1 of 1

check_vmware_esx1.pl plugin issue

Posted: Wed Jan 20, 2021 2:14 pm
by mejokj
Hi Team,

We are trying to monitor the Vcenter using the plugin check_vmware_esx.pl.

Plugin downloaded from https://github.com/BaldMansMojo/check_v ... are_esx.pl

Already we are facing issues with plugin box293_check_vmware, it is not all working for us. so we have tried for plugin check_vmware_esx.pl.

But while using plugin check_vmware_esx.pl, We are not able to get the output with nagios user. But getting output with root user.

Error only in Nagios user. Attached screenshot.

Error
====
Can't locate Time/Duration.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_vmware_esx1.pl line 1401.
BEGIN failed--compilation aborted at ./check_vmware_esx.pl line 1401

Solution we tried
===============

Installed Perl module "Time::Duration". But the still same issue.

Installed plugin using CPAN



Thanks

Re: check_vmware_esx1.pl plugin issue

Posted: Thu Jan 21, 2021 3:58 pm
by benjaminsmith
Hi,

I would highly recommend setting Vmware monitoring using the Wizard provided in Nagios XI. The following guide has instructions on installing the required dependencies along with the required Vmware SDK.

Monitoring VMware With Nagios XI

To continue to troubleshoot this installation, let's verify that the TIme::Duration module has been installed, run the following command and if it's not installed it should return an error.

Code: Select all

perl -e "Time::Duration"

Re: check_vmware_esx1.pl plugin issue

Posted: Thu Jan 28, 2021 2:12 am
by mejokj
Hi Benjaminsmith,

Please close the thread.

Thanks for your support.

Re: check_vmware_esx1.pl plugin issue

Posted: Thu Jan 28, 2021 6:06 pm
by benjaminsmith
Hi,
Thanks for your support.
Your welcome!

We'll close this out.