ESXi adapter UNKNOWN

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
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

ESXi adapter UNKNOWN

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

Re: ESXi adapter UNKNOWN

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: ESXi adapter UNKNOWN

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

Re: ESXi adapter UNKNOWN

Post 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;;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: ESXi adapter UNKNOWN

Post by Uday Kumar »

Hi Team,

Thanks for you help,.. :)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: ESXi adapter UNKNOWN

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: ESXi adapter UNKNOWN

Post by Uday Kumar »

Hi,
You can close this thread, its working fine... :D
Locked