Page 1 of 1
No vmware objects found with box293 plugins
Posted: Mon Nov 06, 2017 11:05 am
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
Re: No vmware objects found with box293 plugins
Posted: Mon Nov 06, 2017 2:21 pm
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.
Re: No vmware objects found with box293 plugins
Posted: Mon Nov 06, 2017 3:19 pm
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]$
Re: No vmware objects found with box293 plugins
Posted: Mon Nov 06, 2017 4:40 pm
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.
Re: No vmware objects found with box293 plugins
Posted: Mon Nov 06, 2017 4:49 pm
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
Re: No vmware objects found with box293 plugins
Posted: Tue Nov 07, 2017 11:54 am
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"
Re: No vmware objects found with box293 plugins
Posted: Thu Nov 09, 2017 11:15 am
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?
Re: No vmware objects found with box293 plugins
Posted: Thu Nov 09, 2017 11:35 am
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.