Page 1 of 1

Error running check_esx3.pl (0.2.1)

Posted: Sun Jan 14, 2018 5:32 pm
by kiwibloke73
Hi,

I am running a NagiosXI POC I have added an ESXi server.

I am getting data back from all of the host monitoring metrics (cpu, memory, storage, vm status, Input/Output) but for the Networking i am getting an error.

The error is "ESX3 CRITICAL - Can't use an undefined value as an ARRAY reference at /usr/local/nagios/libexec/check_esx3.pl at line 872"

I tried updating the check_esx3.pl to a newer version 0.5.0 but had a similar result.

I the account I configured on ESXi has RO rights at the root with full propagation.

Any ideas?

KB

Re: Error running check_esx3.pl (0.2.1)

Posted: Mon Jan 15, 2018 3:00 pm
by tgriep
Try and upgrade the plugin to an even newer version 0.7.1 and see if that fixes the error.

First, login to the XI server as root and make a backup of the existing one by running the following.

Code: Select all

cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
Then run the following to install a required Perl Module for the new plugin.

Code: Select all

yum install perl-Nagios-Plugin
Then download this updated plugin to your PC.
https://github.com/shinken-monitoring/p ... ck_esx3.pl

After it is downloaded, login to the XI GUI and go to the Admin > Manage Plugins menu
Browse to the new plugin and then click on the Upload Button.

Wait until the next time the check is scheduled to run to see if the error is resolved and post your results.