Page 1 of 1
CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete login
Posted: Mon Aug 27, 2018 6:24 am
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
Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo
Posted: Tue Aug 28, 2018 1:34 pm
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.
Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo
Posted: Mon Sep 03, 2018 11:21 am
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
Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo
Posted: Tue Sep 04, 2018 2:07 pm
by npolovenko
@rohithroki, Why do you an <<!>> sign after the password? Are you using any special characters in the password for the ESX6 host?
Re: CHECK_VMWARE_API.PL CRITICAL - Error: Cannot complete lo
Posted: Tue Sep 04, 2018 2:07 pm
by npolovenko
@rohithroki, Why do you an <<!>> sign after the password? Are you using any special characters in the password for the ESX6 host?