|
| 1 | +# Welcome to check VMware API |
| 2 | +Check VMware API is a plugin developed by op5 to primarily be used with op5 |
| 3 | +Monitor, but can also be used in Naemon or Nagios installations, to monitor |
| 4 | +VMware ESX and vSphere servers. You can monitor either a single ESX(i)/vSphere |
| 5 | +server or a VMware VirtualCenter/vCenter Server and individual virtual |
| 6 | +machines. If you have a VMware cluster you should monitor the data center |
| 7 | +(VMware VirtualCenter/vCenter Server) and not the individual ESX/vSphere |
| 8 | +servers. |
| 9 | + |
| 10 | +## Prerequisites |
| 11 | +'VMware vSphere SDK for Perl', available at |
| 12 | +https://my.vmware.com/group/vmware/downloads (requires a free account that you |
| 13 | +sign up for at the same page). |
| 14 | + |
| 15 | +## Installation |
| 16 | +This is how to install the plugin on CentOS with VMware vSphere SDK for Perl |
| 17 | +5.1. |
| 18 | +- Download the latest version of the vSphere SDK for Perl package from VMware |
| 19 | + support page. |
| 20 | +- In this example we use VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz. |
| 21 | +- Make sure the following packages are installed. |
| 22 | +```bash |
| 23 | +$ sudo yum install openssl-devel perl-Archive-Zip perl-Class-MethodMaker uuid-perl perl-SOAP-Lite perl-XML-SAX perl-XML-NamespaceSupport perl-XML-LibXML perl-MIME-Lite perl-MIME-Types perl-MailTools perl-TimeDate uuid libuuid perl-Data-Dump perl-UUID cpan libxml2-devel perl-libwww-perl perl-Test-MockObject perl-Test-Simple perl-Monitoring-Plugin perl-Class-Accessor perl-Config-Tiny |
| 24 | +``` |
| 25 | +- Upload the file "VMware-vSphere-Perl-SDK*.tar.gz" to your op5 Monitor server’s |
| 26 | +/root directory. |
| 27 | +```bash |
| 28 | +$ cd /root/ |
| 29 | +$ tar xvzf VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz |
| 30 | +$ cd vmware-vsphere-cli-distrib |
| 31 | +$ export ftp_proxy= |
| 32 | +$ export http_proxy= |
| 33 | +$ ./vmware-install.pl |
| 34 | + |
| 35 | + "Creating a new vSphere CLI installer database using the tar4 format. |
| 36 | +
|
| 37 | + Installing vSphere CLI 5.1.0 build-780721 for Linux. |
| 38 | +
|
| 39 | + You must read and accept the vSphere CLI End User License Agreement to |
| 40 | + continue. |
| 41 | + Press enter to display it." |
| 42 | + "Do you accept? (yes/no) |
| 43 | +``` |
| 44 | +- Type “yes” and press "enter". |
| 45 | +- In which directory do you want to install the executable files? |
| 46 | +```bash |
| 47 | +[/usr/bin] |
| 48 | +``` |
| 49 | +- Press Enter |
| 50 | +```bash |
| 51 | +Please wait while copying vSphere CLI files... |
| 52 | +
|
| 53 | +The installation of vSphere CLI 5.1.0 build-780721 for Linux completed |
| 54 | +successfully. You can decide to remove this software from your system at any |
| 55 | +time by invoking the following command: |
| 56 | +"/usr/bin/vmware-uninstall-vSphere-CLI.pl". |
| 57 | +
|
| 58 | +This installer has successfully installed both vSphere CLI and the vSphere SDK |
| 59 | +for Perl. The following Perl modules were found on the system but may be too |
| 60 | +old to work with vSphere CLI: |
| 61 | +Compress::Zlib 2.037 or newer |
| 62 | +Compress::Raw::Zlib 2.037 or newer |
| 63 | +version 0.78 or newer |
| 64 | +IO::Compress::Base 2.037 or newer |
| 65 | +IO::Compress::Zlib::Constants 2.037 or newer |
| 66 | +LWP::Protocol::https 5.805 or newer |
| 67 | +Enjoy, |
| 68 | +--the VMware team |
| 69 | +root@op5-system:~/vmware-vsphere-cli-distrib# |
| 70 | +``` |
| 71 | +- Note that the the issues with old Perl modules DOES NOT need to be resolved. |
| 72 | + This does not impact the plugins functionality. |
| 73 | +- Now, clone or download this repository. |
| 74 | +- Within the check_vmware_api repository, type `make` to run the test suit. |
| 75 | +- Copy the check_vmware_api.pl to a suitable location and make sure it is |
| 76 | + exicutable. Will vary between installations. |
| 77 | +```bash |
| 78 | +$ cp check_vmware_api.pl /opt/plugins/check_vmware_api |
| 79 | +$ cd /opt/plugins/ |
| 80 | +$ chmod 755 check_vmware_api |
| 81 | +``` |
| 82 | +
|
| 83 | +## Usage |
| 84 | +Simply run the plugin with: |
| 85 | +```bash |
| 86 | +$ /opt/plugins/check_vmware_api --help |
| 87 | +``` |
| 88 | +
|
| 89 | +## License |
| 90 | +See LICENSE. |
0 commit comments