Page 1 of 1

ESXi adapter UNKNOWN

Posted: Tue Jun 21, 2016 9:33 pm
by Uday Kumar
Hi Team,

We are getting the error as UNKNOWN while trying to monitor ESXI adapter.

Please find the below out put from a terminal.

[root@xxxx libexec]# ./check_vmware_api.pl -H xxxx -u root -p @dmin -l storage
CHECK_VMWARE_API.PL UNKNOWN - 2/3 adapters online, 22/22 LUNs ok, 88/88 paths active | adapters=2units;; LUNs=22units;; paths=88units;;

define service{
use windows-datstoreservice
host_name xxxxxxx
service_description ESXi adapter
check_command check_vmwarwe_adapters
}

But when we see from server end,we can find everything looks fine.

Can you please help us to sort out.

Is there any method to monitor only ESXI adapters instated of getting details about LUNS,paths as in above out put.

Re: ESXi adapter UNKNOWN

Posted: Tue Jun 21, 2016 10:58 pm
by Box293
From the help in the plugin:

Supported commands(^ - blank or not specified parameter, o - options, T - timeshift value, b - blacklist) :

* storage - shows Host storage info
+ adapter - list bus adapters
b - blacklist adapters
+ lun - list SCSI logical units
b - blacklist LUN's
+ path - list logical unit paths
b - blacklist paths
^ show all storage info

So you should be able to only check adapters.

You might want to run it in verbose mode to see what is causing the issue:

Code: Select all

./check_vmware_api.pl -H xxxx -u root -p @dmin -l storage -vvv

Re: ESXi adapter UNKNOWN

Posted: Wed Jun 22, 2016 1:50 am
by Uday Kumar
Hi ,

We are facing same error even in verbose mode,,

[root@xxxx libexec]# ./check_vmware_api.pl -H xxxxx -u root -p @dmin -l storage -vvv
[extra-opts] check_vmware_api.pl -H xxxxx5 -u root -p t@dmin -l storage -vvv
CHECK_VMWARE_API.PL UNKNOWN - 2/3 adapters online, 22/22 LUNs ok, 88/88 paths active | adapters=2units;; LUNs=22units;; paths=88units;;

Re: ESXi adapter UNKNOWN

Posted: Wed Jun 22, 2016 1:59 am
by Box293
Try this:

Code: Select all

./check_vmware_api.pl -H xxxxx -u root -p @dmin -l storage -s adapter

CHECK_VMWARE_API.PL UNKNOWN - vmhba0 (unknown); vmhba1 (unknown);  | adapters=0units;;
You can see it only targets the adapters (and lists them).

Then you can blacklist the one you don't want:

Code: Select all

./check_vmware_api.pl -H xxxxx -u root -p @dmin -l storage -s adapter -x vmhba0

CHECK_VMWARE_API.PL UNKNOWN - vmhba0 (ignored); vmhba1 (unknown);  | adapters=1units;;

Re: ESXi adapter UNKNOWN

Posted: Wed Jun 22, 2016 11:14 pm
by Uday Kumar
Hi Team,

Thanks for you help,.. :)

Re: ESXi adapter UNKNOWN

Posted: Thu Jun 23, 2016 9:34 am
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?

Re: ESXi adapter UNKNOWN

Posted: Fri Jun 24, 2016 12:08 am
by Uday Kumar
Hi,
You can close this thread, its working fine... :D