Monitor VMware host and guest
Monitor VMware host and guest
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.
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
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:
Please share the output with us.
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 --versionAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor VMware host and guest
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.
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
@hyacinth , Please run the following command to install the Perl module:
Code: Select all
cpan -i Nagios::Monitoring::PluginAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor VMware host and guest
@ 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.
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.
Re: Monitor VMware host and guest
@ 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.
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
Try this command and then run the --version on the plugin. If you see the version number, you can then run the wizard.
Otherwise, let us know if you receive the same error.
Code: Select all
yum install perl-Nagios-Plugin -yCode: Select all
/usr/local/nagios/libexec/check_esx3.pl --versionRe: Monitor VMware host and guest
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.
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
Thanks,
Did you run this command?
Is there any Plugin.pm anywhere?
Show us all outputs, thank you!
Did you run this command?
Code: Select all
yum install perl-Nagios-Plugin -yCode: Select all
find / -name Plugin.pmRe: Monitor VMware host and guest
@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 ?
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.