Monitor VMware host and guest

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Monitor VMware host and guest

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitor VMware host and guest

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Re: Monitor VMware host and guest

Post 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.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitor VMware host and guest

Post by npolovenko »

@hyacinth , Please run the following command to install the Perl module:

Code: Select all

cpan -i Nagios::Monitoring::Plugin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Re: Monitor VMware host and guest

Post 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.
You do not have the required permissions to view the files attached to this post.
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Re: Monitor VMware host and guest

Post 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.
You do not have the required permissions to view the files attached to this post.
kyang

Re: Monitor VMware host and guest

Post 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

yum install perl-Nagios-Plugin -y

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl --version
Otherwise, let us know if you receive the same error.
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Re: Monitor VMware host and guest

Post 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.
You do not have the required permissions to view the files attached to this post.
kyang

Re: Monitor VMware host and guest

Post by kyang »

Thanks,

Did you run this command?

Code: Select all

yum install perl-Nagios-Plugin -y
Is there any Plugin.pm anywhere?

Code: Select all

find / -name Plugin.pm
Show us all outputs, thank you!
hyacinth
Posts: 19
Joined: Wed Dec 13, 2017 2:21 am

Re: Monitor VMware host and guest

Post 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 ?
You do not have the required permissions to view the files attached to this post.
Locked