Page 1 of 1
vmware wizard
Posted: Wed Dec 30, 2020 7:57 am
by mejokj
Hello,
I am trying to add VMware wizrd on nagiosxi, But it shows the error. I have attached screenshot of the error.
+++++++++++++++++++++++++++++
root@ittestnagiosxi toolsadmin]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
i) Installed VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz
ii) We installed below required packages
yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
export PERL_MM_USE_DEFAULT=1
cpan -i App::cpanminus
cpanm --notest Module::Build Crypt::SSLeay
cpan -i Nagios::Monitoring::Plugin Nagios::Monitoring::Plugin::Functions
iii) Downloaded the plugin
cd check_vmware_esx_0.9.19/
[root@ittestnagiosxi check_vmware_esx_0.9.19]# ls
check_vmware_esx.pl command_reference HISTORY LICENSE Makefile modules README
From core config we still see issue like below.
+++++++++++++++++++++++++++++
Re: vmware wizard
Posted: Wed Dec 30, 2020 1:48 pm
by benjaminsmith
Hi
@mejokj,
Please try to re-install the Vmware SDK once more, make sue you see the
"Enjoy, --the VMware team" message once the install has completed. If not post any error output to the thread.
You'll find the installation steps for installing the SDK on page 4 of the following guide:
Monitoring VMware With Nagios XI
Also, let's make sure the plugin is in the directory with the proper permissions and then test this once more.
Code: Select all
ls -l /usr/local/nagios/libexec/check_esx3.pl
Best Regards,
Benjamin
Re: vmware wizard
Posted: Mon Jan 04, 2021 5:26 am
by mejokj
Hi Team,
We have re-installed the SDK. We can see “Enjoy statements in the output. But the issue still persists.
Attached error screenshot for your reference. We have plugincheck_esx3.pl too.
[root@ittestnagiosxi new]# cd vmware-vsphere-cli-distrib/
[root@ittestnagiosxi vmware-vsphere-cli-distrib]# ./vmware-install.pl EULA_AGREED=yesCreating a new vSphere CLI installer database using the tar4 format. Installing vSphere CLI 6.5.0 build-4566394 for Linux. This vSphere CLI installer includes precompiled Perl modules for RHEL.Answering yes will install the precompiled modules, and answering no willinstall from CPAN.
Do you want to install precompiled Perl modules for RHEL?[yes] yes In which directory do you want to install the executable files?[/usr/bin] yes The path "yes" is a relative path. Please enter an absolute path. In which directory do you want to install the executable files?[/usr/bin] Please wait while copying vSphere CLI files... The installation of vSphere CLI 6.5.0 build-4566394 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command:"/usr/bin/vmware-uninstall-vSphere-CLI.pl". This installer has successfully installed both vSphere CLI and the vSphere SDKfor Perl. The following Perl modules were found on the system but may be too old to workwith vSphere CLI: MIME::Base64 3.14 or newerSocket6 0.23 or newerIO::Socket::INET6 2.71 or newer Enjoy, --the VMware team
[root@ittestnagiosxi libexec]# ./check_esx3.pl --help
check_esx3.pl 0.7.1 This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.It may be used, redistributed and/or modified under the terms of the GNUGeneral Public Licence (seehttp://
www.fsf.org/licensing/licenses/gpl.txt). VMware ESX/vSphere plugin Usage:check_esx3.pl -D <data_center> | -H <host_name> [ -C <cluster_name> ] [ -N <vm_name> ] -u <user> -p <pass> | -f <authfile> -l <command> [ -s <subcommand> ] [ -T <timeshift> ] [ -i <interval> ] [ -x <black_list> ] [ -o <additional_options> ] [ -t <timeout> ] [ -w <warn_range> ] [ -c <crit_range> ] [ -V ] [ -h ]
Re: vmware wizard
Posted: Mon Jan 04, 2021 5:27 pm
by benjaminsmith
Hi
@mejokj
That's strange. Please go to Admin > System Extensions > Manage Config Wizards, then select the Check For Updates button, and make sure you have the current version, if not, go ahead and upgrade the config wizard.
I'm not able to read the error message on the screenshot, please post the output to the following command to the ticket.
Code: Select all
LANG=C LC_ALL=C /usr/local/nagios/libexec/check_vmware_api.pl -l check_disk | head --lines=1
Thanks,
Benjamin
Re: vmware wizard
Posted: Wed Jan 06, 2021 12:04 pm
by mejokj
Hi,
We have updated the config wizards. Please find attached a screenshot.
[root@ittestnagiosxi libexec]# LANG=C LC_ALL=C /usr/local/nagios/libexec/check_vmware_api.pl -l check_disk | head --lines=1CHECK_VMWARE_API.PL CRITICAL - Provide either Password/Username or Auth file or Session file [root@ittestnagiosxi libexec]# LANG=C LC_ALL=C /usr/local/nagios/libexec/check_esx3.pl -l check_disk | head --lines=1CHECK_ESX3.PL CRITICAL - Provide either Password/Username or Auth file or Session file[root@ittestnagiosxi libexec]#
Thanks,
Re: vmware wizard
Posted: Wed Jan 06, 2021 3:46 pm
by benjaminsmith
Hi
@mejokj,
That looks correct. I believe there maybe some kind of permissions issue with the wizard. Please run the following tail command as root:
Then load the main page of the wizard (Step 1) with the error message and post the full output of the tail command to the thread.
Best Regards,
Benjamin
Re: vmware wizard
Posted: Thu Jan 07, 2021 2:12 am
by mejokj
Hi,
Please find attached log message.
Thanks
Re: vmware wizard
Posted: Thu Jan 07, 2021 5:54 pm
by benjaminsmith
HI
@mejokj,
Thanks for your patience on this one, the log looks normal. We have may have to move this over to a support ticket for further troubleshooting.
Can you send us the system profile?
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Also, if you can run the tail command once more, load the VMware wizard page and post the apache log output once more, however, let's do this as the nagios user account.
Code: Select all
su - nagios
tail -f /var/log/httpd/*_log
And the run the following command is the nagios user as well and post the output from both commands to the thread.
Code: Select all
LANG=C LC_ALL=C /usr/local/nagios/libexec/check_vmware_api.pl -l check_disk | head --lines=1
Re: vmware wizard
Posted: Mon Jan 11, 2021 4:15 am
by mejokj
Hi,
Please find the details requested. We have sent you the system profile file as PM only to you.
[root@ittestnagiosxi ~]# su nagios
[nagios@ittestnagiosxi root]$ tail -f /var/log/httpd/*_log
tail: cannot open ‘/var/log/httpd/*_log’ for reading: Permission denied
tail: no files remaining
[nagios@ittestnagiosxi root]$ LANG=C LC_ALL=C /usr/local/nagios/libexec/check_vmware_api.pl -l check_disk | head --lines=1
CHECK_VMWARE_API.PL CRITICAL - Provide either Password/Username or Auth file or Session file
[nagios@ittestnagiosxi root]$
Thanks
Re: vmware wizard
Posted: Mon Jan 11, 2021 6:36 pm
by benjaminsmith
Hi mejokj,
Pretty sure this is some type of permissions issue but I'm not able to find anything in the system profile or the log output that's been posted. Please open a support ticket for this issue and reference this thread for further troubleshooting. To open a support ticket, please go to:
https://support.nagios.com/tickets/
Thanks for your patience.
Benjmain