Nagios XI 2012R2.1 Error -Return Code of 255 is out of bound

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
htel
Posts: 32
Joined: Tue Mar 01, 2011 10:03 am

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

Post 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,
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

Could you upload the check_vmware.pl file to this post so we can view it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
htel
Posts: 32
Joined: Tue Mar 01, 2011 10:03 am

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

Post by htel »

Attached is the current version we are using (v1.13)
We were using v0.9 previously.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked