Page 1 of 1

Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 1:30 pm
by CFT6Server
We are using check_esx3.pl to check ESX host status. When I run the check commands, everything seems to run fine. However, occasionally I see this message:

Code: Select all

**ePN /usr/local/nagios/libexec/check_esx3.pl: plugin did not call exit()
**ePN /usr/local/nagios/libexec/check_esx3.pl: "Use of uninitialized value $opt in string eq at /usr/share/perl5/Getopt/Long.pm line 487,".
Now it seems to go away on the next check. I am not sure where this error is coming from since the manual checks via console seems to return the results just fine.

We are using gearman setup.

Check Command:
$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" $ARG3$

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 1:43 pm
by ssax
Please upgrade your check_esx3.pl to the latest version or add this on the second line of the plugin:

Code: Select all

# nagios: +epn
Let us know the results.


From here:

https://labs.consol.de/nagios/mod-gearm ... edded_perl

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 1:55 pm
by CFT6Server
We are using the latest version of 0.5 and this line is in place....

Code: Select all

#!/usr/bin/perl -w
# nagios: +epn

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 2:01 pm
by tmcdonald
A couple points of clarification:
  • What perl version are the gearman workers running?
  • What gearman version are you running?
  • What XI version are you running?
  • When run from the CLI, how long does the check take?

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 2:12 pm
by CFT6Server
Apologies, seems like the check_esx3.pl file on the gearman worker servers are different. I have updated them and will monitor.

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 2:28 pm
by CFT6Server
So far seems to still be happening with another error message: (and some with the same error as above)

Code: Select all

**ePN failed to compile /usr/local/nagios/libexec/check_esx3.pl: "Variable "$blacklist" will not stay shared at (eval 1) line 3798," at /usr/share/mod_gearman/mod_gearman_p1.pl line 240

Code: Select all

# perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
gearmand 1.1.8
on XI box mod_gearman_worker: version 1.5.0b1 running on libgearman 1.1.8
on gearman workers: mod_gearman_worker: version 1.4_nagios4 running on libgearman 0.25
XI version 2.5.9
When running from CLI, the results come back instantly
tmcdonald wrote:A couple points of clarification:
  • What perl version are the gearman workers running?
  • What gearman version are you running?
  • What XI version are you running?
  • When run from the CLI, how long does the check take?

Re: Help with intermittent unknown status on checking VMware

Posted: Fri Jun 24, 2016 4:08 pm
by CFT6Server
Update: So interestingly enough, I actually removed the line from XI and gearman workers and now the checks are fine.... will continue to monitor...

Code: Select all

# nagios: +epn

Re: Help with intermittent unknown status on checking VMware

Posted: Mon Jun 27, 2016 2:12 am
by Box293
If you're wanting an alternative plugin try box293_check_vmware.

box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

There is also a wizard for it:
http://exchange.nagios.org/directory/Ad ... rd/details