Page 1 of 1

check_vmware_api.pl returns nothing?

Posted: Tue Sep 16, 2014 6:10 am
by cengland
Hi,

Seem to be having an issue getting our Nagios server to run the check_vmware_api command. When running I am getting no response at all from the remote host, check firewall etc... all appears ok but cannot fathom why I am getting no response at all. Normally I would expect a response of some sort but am getting nothing at all?

[root@nagios ~]# /usr/lib/nagios/plugins/check_vmware_api.pl -H 10.255.4.3 -u Checks -p -------- -l mem
[root@nagios ~]#

If I put the wrong password in it certainally does respond to me telling me that, though takes ages:

[root@nagios ~]# /usr/lib/nagios/plugins/check_vmware_api.pl -H 10.255.4.3 -u Checks -pxxxxxx -l mem
CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login due to an incorrect user name or password.

Any ideas what this is?

Thanks

Colin

Re: check_vmware_api.pl returns nothing?

Posted: Tue Sep 16, 2014 5:27 pm
by Box293
Try running the command with the --verbose argument.

I'm biased, but I suggest you check out box293_check_vmware :D
http://exchange.nagios.org/directory/Pl ... re/details

Re: check_vmware_api.pl returns nothing?

Posted: Tue Sep 16, 2014 5:28 pm
by slansing
Taking a look at the plugin's help output:

Code: Select all

/usr/lib/nagios/plugins/check_vmware_api.pl -h
You may need to specify 'MEM' with capitols, as the output shows, can you give that a shot? Does 'CPU' or any other metric return properly?

Re: check_vmware_api.pl returns nothing?

Posted: Wed Sep 17, 2014 2:35 am
by cengland
Hey thanks for the advise will give it a go.

Re: check_vmware_api.pl returns nothing?

Posted: Wed Sep 17, 2014 4:18 pm
by slansing
Great, let us know what your results are.

Re: check_vmware_api.pl returns nothing?

Posted: Thu Sep 18, 2014 3:14 am
by cengland
Tried the --verbose option and it does not return anything as before.

Also checked help and I am definitely using the command correctly. Tried CPU, cpu, mem, MEM all without any luck.

Cannot use your plugin unfortunately as we cannot create an additional appliance for the remote checks we don't have anymore room :(

UPDATE: It would appear that I am unable to run most perl scripts (apart from the very basic) there seems to be an issue with our box where we have two perl libraries (goodness knows how that happened) at /usr/bin/perl and /usr/local/bin/perl. I am having to manually having to change the perl location at the top of scripts to point to /usr/local/bin/perl instead, and it appears to run ok but we are not getting any output.

Any ideas what could be up?

Re: check_vmware_api.pl returns nothing?

Posted: Thu Sep 18, 2014 9:58 am
by Box293
Hmmm the two perl libraries sound like the source of your issue. I wish I could be of more help but this is where my skill level hits a wall :(