Box293 monitoring through vma

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Box293 monitoring through vma

Post by maddev »

Hi,

I have followed documentation and configured box293 plugin to use vMA for monitoring my virtual environment which is being maintained through vcenter.
I am having trouble proceeding further from the wizard page. on step 2 of VMWare virtualization monitoring wizard I am able to retrieve all the objects except for hosts. plugin is able to retrieve vCenter objects, Datastore and guests but when I click on retrieve hosts nothing happens and in a moment it displays "No hosts found!"

Any help is appreciated.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Box293 monitoring through vma

Post by tmcdonald »

Troy (@Box293) should be around in a bit to help out, but in the meantime do you get any errors in /var/log/httpd/error_log when this happens?
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 monitoring through vma

Post by Box293 »

It sounds like you have it all configured correctly, we just need to determine what is breaking the hosts bit.

What version of ESXi hosts are these?

I assume you are using version 2015-05-21 of the plugin.

In the steps below,
10.ZZZ.ZZZ.ZZZ = vCenter server

Log onto the vMA appliance as vi-admin.
Execute the following command:

Code: Select all

time ~/box293_check_vmware.pl --server 10.ZZZ.ZZZ.ZZZ --check List_Hosts --debug
After all the output it will display how long it took to run, something like:

Code: Select all

real	0m2.746s
user	0m2.592s
sys	0m0.052s
What does yours output?

Also, a debug log will be produced on the vMA appliance, can you please attach or PM the file:
/home/vi-admin/box293_check_vmware_debug_log.txt

As well as any errors in /var/log/httpd/error_log ON the Nagios XI server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: Box293 monitoring through vma

Post by maddev »

Hi box293,

ESXi hosts version would be 5.5. Yes I am using the v 2015-05-21

Below is my output of the command

Code: Select all

real    0m16.752s
user    0m11.465s
sys     0m0.340s
PM you the debug file

Nothing on /var/log/httpd/error_log
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Box293 monitoring through vma

Post by tmcdonald »

Could you send the debug to myself as well? It looks like @Box293 is having some connection issues.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 monitoring through vma

Post by Box293 »

I've had a look at the output and it seems the script is not completing and it's not generating any specific errors.

I would like to continue troubleshooting this in a remote support session as I will probably be able to determine what is wrong with my script and your environment.

I'll send you a PM with contact details.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 monitoring through vma

Post by Box293 »

After a remote session we worked out the script was failing because some Hosts did not have any storage adapters and also datastores. Added some if(defined()) statements to work around the problem. Next version of the plugin will include this fix.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: Box293 monitoring through vma

Post by maddev »

Thank you very much Troy.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Box293 monitoring through vma

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked