No vmware objects found with box293 plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

No vmware objects found with box293 plugins

Post by dlukinski »

Hi

No vCenter datacenters found! / no hosts, etc..

vMA 6.0.0.1 & box293 plugin / wizard from 2014-10-23

Credentials would be correct, existing certficate used (already works with older vMA 5.5 we are replacing)

Please help
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No vmware objects found with box293 plugins

Post by tgriep »

Can you run the following commands on the Nagios server and post the output?

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"
Replace xxx.xxx.xxx.xxx with the IP address of the vMA server.
Replace yyy.yyy.yyy.yyy with the IP address of the vCenter server.
They should return the version of your VMWare systems.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: No vmware objects found with box293 plugins

Post by dlukinski »

tgriep wrote:Can you run the following commands on the Nagios server and post the output?

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"
Replace xxx.xxx.xxx.xxx with the IP address of the vMA server.
Replace yyy.yyy.yyy.yyy with the IP address of the vCenter server.
They should return the version of your VMWare systems.

Getting this one:

[root@fikc-nagxiprod01 ~]# su nagios
[nagios@fikc-nagxiprod01 root]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.104.74.53 -C "~/box293_check_vmware.pl --server 172.18.18.13 --check vCenter_Name_Version"
[email protected]'s password:
CRITICAL - Plugin timed out after 10 seconds
[nagios@fikc-nagxiprod01 root]$
kyang

Re: No vmware objects found with box293 plugins

Post by kyang »

[nagios@fikc-nagxiprod01 root]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.104.74.53 -C "~/box293_check_vmware.pl --server 172.18.18.13 --check vCenter_Name_Version"
[email protected]'s password:
CRITICAL - Plugin timed out after 10 seconds
Could you try increasing the timeout to -t 30

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"
See if that displays an output for the commands.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: No vmware objects found with box293 plugins

Post by dlukinski »

kyang wrote:
[nagios@fikc-nagxiprod01 root]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.104.74.53 -C "~/box293_check_vmware.pl --server 172.18.18.13 --check vCenter_Name_Version"
[email protected]'s password:
CRITICAL - Plugin timed out after 10 seconds
Could you try increasing the timeout to -t 30

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"
See if that displays an output for the commands.
This time it worked:
[root@fikc-nagxiprod01 libexec]# su nagios
[nagios@fikc-nagxiprod01 libexec]$ /usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H 10.104.74.53 -C "~/box293_check_vmware.pl --server 172.18.18.13 --check vCenter_Name_Version"
[email protected]'s password:
OK: VMware vCenter Server 6.0.0 build-3634793
kyang

Re: No vmware objects found with box293 plugins

Post by kyang »

Do you have ssh keys set up for root? You would need to set up the ssh keys for nagios. It shouldn't be prompting you for a password.

You can re-setup the account by following this doc.
https://exchange.nagios.org/components/ ... 0&cf_id=29

Once you have set up the keys for Nagios. Re-run the commands, but this time set the timeout to 60 seconds -t 60

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -t 60 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -t 60 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: No vmware objects found with box293 plugins

Post by dlukinski »

kyang wrote:Do you have ssh keys set up for root? You would need to set up the ssh keys for nagios. It shouldn't be prompting you for a password.

You can re-setup the account by following this doc.
https://exchange.nagios.org/components/ ... 0&cf_id=29

Once you have set up the keys for Nagios. Re-run the commands, but this time set the timeout to 60 seconds -t 60

Code: Select all

su nagios
/usr/local/nagios/libexec/check_by_ssh -t 60 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check vCenter_Name_Version"
/usr/local/nagios/libexec/check_by_ssh -t 60 -E 1 -l vi-admin -H xxx.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server yyy.yyy.yyy.yyy --check Host_OS_Name_Version"

I have configured keys, but the problem remains. Could we have a session to look into it?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: No vmware objects found with box293 plugins

Post by tmcdonald »

I see you have also opened an email ticket for this, so we will be locking this thread and continuing in the email ticket.
Former Nagios employee
Locked