check_vmware_api.pl returns nothing?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cengland
Posts: 3
Joined: Tue Sep 16, 2014 5:58 am

check_vmware_api.pl returns nothing?

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

Re: check_vmware_api.pl returns nothing?

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_vmware_api.pl returns nothing?

Post 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?
cengland
Posts: 3
Joined: Tue Sep 16, 2014 5:58 am

Re: check_vmware_api.pl returns nothing?

Post by cengland »

Hey thanks for the advise will give it a go.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_vmware_api.pl returns nothing?

Post by slansing »

Great, let us know what your results are.
cengland
Posts: 3
Joined: Tue Sep 16, 2014 5:58 am

Re: check_vmware_api.pl returns nothing?

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

Re: check_vmware_api.pl returns nothing?

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