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
check_vmware_api.pl returns nothing?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_vmware_api.pl returns nothing?
Try running the command with the --verbose argument.
I'm biased, but I suggest you check out box293_check_vmware
http://exchange.nagios.org/directory/Pl ... re/details
I'm biased, but I suggest you check out box293_check_vmware
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?
Taking a look at the plugin's help output:
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?
Code: Select all
/usr/lib/nagios/plugins/check_vmware_api.pl -h
Re: check_vmware_api.pl returns nothing?
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?
Great, let us know what your results are.
Re: check_vmware_api.pl returns nothing?
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?
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?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_vmware_api.pl returns nothing?
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.