Page 1 of 2
Monitor VMware host and guest
Posted: Sat Dec 16, 2017 1:47 am
by hyacinth
I have running a nagios XI Demo to test with 60 free days. I come accross a weird problem. I have installed "VMware-vSphere-Perl-SDK-6.0.0-2503617.x86_64.tar.gz" on XI server and got "Enjoy, --the VMware team" message. However, when I click VMware wizard on GUI, an error exists :"Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have these components properly installed on your system before using this wizard."
My VMware vsphere is 6.0, and I tried to reinstall 5.5 SDK, but got the same result.
I'm so confused, can you give any advice to solve the problem ?Thanks.
Re: Monitor VMware host and guest
Posted: Mon Dec 18, 2017 12:26 pm
by npolovenko
Hello,
@hyacinth.
Did you follow this guide for your installation?
https://assets.nagios.com/downloads/nag ... gJ8dPD_BwE
If you did then you may run the following command to see if the plugin errors out because of the missing modules:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl --version
Please share the output with us.
Re: Monitor VMware host and guest
Posted: Wed Dec 20, 2017 2:48 am
by hyacinth
Hello @npolovenko
1.I installed the SDK following the guide.
2.Please check the output of running the command :/usr/local/nagios/libexec/check_esx3.pl --version
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /us r/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /u sr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx3.pl li ne 32.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_esx3.pl lin e 32.
Re: Monitor VMware host and guest
Posted: Wed Dec 20, 2017 10:41 am
by npolovenko
@hyacinth , Please run the following command to install the Perl module:
Code: Select all
cpan -i Nagios::Monitoring::Plugin
Re: Monitor VMware host and guest
Posted: Thu Dec 21, 2017 1:38 am
by hyacinth
@ npolovenko,
I have run the command according to your advice, please help to check the output as attached.
And I got the same result, WEB GUI said not installed vmware SDK.
Re: Monitor VMware host and guest
Posted: Thu Dec 21, 2017 1:57 am
by hyacinth
@ npolovenko,
More information, when I check a command as the document "Monitoring VMware With Nagios XI" recommend:
/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
got the result as attached: server version unavailable.
I don't know whether it it a problem and how to solve it.
Re: Monitor VMware host and guest
Posted: Thu Dec 21, 2017 10:59 am
by kyang
Try this command and then run the
--version on the plugin. If you see the version number, you can then run the wizard.
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl --version
Otherwise, let us know if you receive the same error.
Re: Monitor VMware host and guest
Posted: Fri Dec 22, 2017 1:35 am
by hyacinth
Hello,@kyang
I run the command: /usr/local/nagios/libexec/check_esx3.pl --version
then got the error as attached. I don't know why, please help to check. Thanks.
Re: Monitor VMware host and guest
Posted: Fri Dec 22, 2017 10:21 am
by kyang
Thanks,
Did you run this command?
Is there any
Plugin.pm anywhere?
Show us all outputs, thank you!
Re: Monitor VMware host and guest
Posted: Mon Dec 25, 2017 1:03 am
by hyacinth
@kyang,
After running the command:yum install perl-Nagios-Plugin -y
it took a few minutes to get the last result, and I could run the VMWare wizard on web GUI.
Thanks for your great help. And can you explain why ? is there no perl-nagios-plugin before ?