Help with intermittent unknown status on checking VMware

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Help with intermittent unknown status on checking VMware

Post 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$
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Help with intermittent unknown status on checking VMware

Post 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
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Help with intermittent unknown status on checking VMware

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help with intermittent unknown status on checking VMware

Post 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?
Former Nagios employee
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Help with intermittent unknown status on checking VMware

Post by CFT6Server »

Apologies, seems like the check_esx3.pl file on the gearman worker servers are different. I have updated them and will monitor.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Help with intermittent unknown status on checking VMware

Post 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?
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Help with intermittent unknown status on checking VMware

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Help with intermittent unknown status on checking VMware

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked