Home » Categories » Support Documents » Technical and Support Anouncements

Overcoming lack of VMware SDK with VMware Wizard

Overcoming lack of VMware SDK with VMware Wizard

 

Nagios has developed a new vSphere Wizard/plugin that uses Python, and no longer relies on the Perl SDK, which has been deprecated and removed from Broadcom’s assets. The vSphere Wizard/plugin shipped with XI 2024R1.1. You can re-create your checks using the new vSphere Wizard/plugin. Please make sure your Components and Wizards are updated: Nagios XI - Update Components And Wizards

 

If you had previously set up and used the VMware Wizard or plugin (were able to download and install the Perl SDK), in the past, it should continue to work properly. If you are migrating your XI server or installing a new XI instance, you may run into issues using checks set up with the VMware Wizard.

 

You can quickly modify the existing commands to switch from the VMware Perl script to the vSphere Python script to fix the existing VMware checks that are migrated to the new system. You will need to be on Nagios XI 2024R1.1 or greater.

 

First, you will need to make sure you install the Python pyvmomi module. To install the module, run this command (you will need to be connected to the internet):
 

                python3 -m pip install --upgrade pip
                python3 -m pip install --upgrade setuptools wheel
                python3 -m pip install --upgrade pyvmomi
                python3 -m pip install --upgrade pyvim


Next, go to the Configure > Core Config Manager > Commands menu and edit the following command

 

                check_vmware_api_guest

 

Change the command line from

 

                $USER1$/check_vmware_api.pl -H "$HOSTADDRESS$" -f "$ARG1$" -N "$ARG2$" -l "$ARG3$" $ARG4$

 

to

 

                python3 $USER1$/check_vsphere_xi.py -H "$HOSTADDRESS$" -f "$ARG1$" -N "$ARG2$" -l "$ARG3$" $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ 

 

Save it and edit this command.

 

                check_vmware_api_host

 

Change the command line from

 

                $USER1$/check_vmware_api.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" $ARG3$

 

to

 

                python3 $USER1$/check_vsphere_xi.py -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$" "$ARG6$" 

 

Save and Apply the Configuration.



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
404 errors after upgrade from 2024R1.1.2 to 2024R1.1.3
Viewed 550 times since Thu, Nov 14, 2024
/usr/local/nagiosxi/var/xi-itype: No such file or directory error
Viewed 565 times since Thu, Nov 14, 2024
Error: Invalid max_check_attempts value for host
Viewed 831 times since Thu, Nov 14, 2024
Linux Distributions Reaching End of Life
Viewed 1413 times since Fri, Dec 27, 2024
Upgrade error with XI and non-standard Broker Modules
Viewed 730 times since Thu, Nov 14, 2024
XI 5.10.0 and newer Postgress to MySQL Conversion
Viewed 273 times since Fri, Mar 7, 2025
Nagios Software / Operating System (OS) compatibility matrix
Viewed 10944 times since Tue, Nov 12, 2024