Page 2 of 2

Re: Nagios XI 2012R2.1 Error -Return Code of 255 is out of b

Posted: Thu Apr 02, 2015 4:12 am
by htel
jdalrymple wrote:What do you get if you leave $ARG5$ off? I'm wondering - is the datastore for sure there?
Hi jdalrymple,

Thank you for helping. The datastore is there (as are the others which identical commands check - which are all in the same error).

I have tried the same commad with $ARG5$ removed;

Code: Select all

[root@htv440821 ~]# /usr/local/nagios/libexec/check_vmware.pl --config=/usr/local/nagios/libexec/check_vmware_config_vcenter01 --mode=nagios --report=disk --warn=153 --crit=61
Undefined subroutine &Folder::datastore called at /usr/local/nagios/libexec/check_vmware.pl line 993
[root@htv440821 ~]#
And also with verbose logging which is attached.

Thanks,

Re: Nagios XI 2012R2.1 Error -Return Code of 255 is out of b

Posted: Thu Apr 02, 2015 11:43 am
by tgriep
Could you upload the check_vmware.pl file to this post so we can view it?

Re: Nagios XI 2012R2.1 Error -Return Code of 255 is out of b

Posted: Fri Apr 03, 2015 2:56 am
by htel
Attached is the current version we are using (v1.13)
We were using v0.9 previously.

Re: Nagios XI 2012R2.1 Error -Return Code of 255 is out of b

Posted: Fri Apr 03, 2015 10:11 am
by lmiltchev
I compared your plugin to mine (I am using the same version) and they are identical with the exception of one line that I added on the top (right after the comments):

Code: Select all

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
I don't know if adding this line will make a difference. I ran your plugin in my environment and it worked just fine. What is the version of the SDK that you are using?

Let's check out the perl modules that you have installed on your system. Run the following command:

Code: Select all

yum list installed | grep perl > /tmp/perlmodules.txt
and post the "perlmodules.txt" file that was generated in the "/tmp" directory.