CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login

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
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login

Post by rohithroki »

Hello Team,

we are unable to monitor the esxi hosts via Nagios, getting the below error.

CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login due to an incorrect user name or password.

ESXi host version : 6.5.0

we have created the username called nagiosuser and password to monitor the esxi hosts. It's working fine on esxi 5.5 version.

Note: vsphere client deprecated with the latest version of esxi 6.5 .

Please help to fix the issue .

Regards,
Simbu
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo

Post by cdienger »

What version of the plugin is this? The latest(0.7.1) can be found at https://github.com/op5/check_vmware_api and I would try testing with this version if you're not already using it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo

Post by rohithroki »

Hi cidenger,

Thanks for the reply.

I have updated the latest API plugin of vmware as per the given link.

The plugin is working fine of ESXi 5.5 host.

Code: Select all

[root@INFSGDCNAGIOS06 libexec]# ./check_vmware_api.pl -H <IPADDRESS> -u nagiosuser -p U2FsdGVkX1/6fICGCOTr9LEOrtKAZfGc -l mem
CHECK_VMWARE_API.PL OK - mem usage=1680.39 MB (5.13%), overhead=331.00 MB, swapped=0.00 MB, memctl=0.00 MB | mem_usagemb=1680.39MB;; mem_usage=5.13%;; mem_overhead=331.00MB;; mem_swap=0.00MB;; mem_memctl=0.00MB;;
The same plugin is not working on ESXi 6.5 host.

Code: Select all

[root@INFSGDCNAGIOS06 libexec]# ./check_vmware_api.pl -H <IPADDRESS> -u nagiosuser -p password1! -l mem 
CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login due to an incorrect user name or password.
Please help me to fix the issue .

Regards,
Simbu
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo

Post by npolovenko »

@rohithroki, Why do you an <<!>> sign after the password? Are you using any special characters in the password for the ESX6 host?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo

Post by npolovenko »

@rohithroki, Why do you an <<!>> sign after the password? Are you using any special characters in the password for the ESX6 host?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked