Você está na página 1de 13

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Free Download

Download this guide on Administering VMware View 4.5 Over 188 detailed pages of vendor neutral tips on administering VMware View 4.5 Download

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy Login Become a member RSS Part of the TechTarget network SearchVMware.com News
Latest Headlines

IT pros cast wary eyes on new VMware cloud, desktop certifications So long, farewell, auf wiedersehen, goodbye to Eric Siebert VMworld 2011 breakout sessions: End-user computing, SRM and vSphere 5 View All News
Featured

Modern Infrastructure E-Zine Subscribe today to ensure you receive the premier issue of this online magazine focused exclusively on building enterprise data centers, while keeping an eye on tectonic shifts in trends like cloud computing, virtualization and consumerization. You'll also get a free copy of Technology Priorities for 2012! VMware Topics
Topics
VMware desktop software and desktop virtualization

VMware View, VMware Workstation, Fusion and Player, VMware Server

1 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

VMware infrastructure management services

DRS and DPM, VMware Consolidated Backup, VMware High Availability and Fault Tolerance, vMotion and Storage vMotion
VMware initiatives and new releases

VMware mobile virtualization, VMware new releases and updates, VMworld conference coverage
vSphere and cloud computing

Using vSphere to create a private cloud, Creating and managing a cloud architecture
VMware ESX and ESXi administrative tips

Creating and upgrading VMware servers and VMs, VMware performance enhancements, Using monitoring and performance tools with VMware, Scripting administrative tasks, Troubleshooting VMware products, Remote administrative options, Backing up VMware host servers and guest OSes, Securing a VMware environment, VMware basics
Data center architecture for VMware ESX and ESXi

Selecting storage and hardware, VMware and networking


VMware certifications and training

VMware Certified Design Expert (VCDX), VMware Certified Professional (VCP), VMware how-tos, VMware training videos and mediacasts
Hot Topics

VMware ESX and ESXi administrative tips vSphere and cloud computing VMware initiatives and new releases Tutorials
Advice & Tutorials

VMware vSphere beginner's guide VMware management and performance monitoring guide VMware networking strategies and architecture: An FAQ guide VMware security best practices guide VMware scripts and commands: A management guide VMware High Availability and Fault Tolerance FAQ
Technology Dictionary

Find definitions and links to technical resources Powered by WhatIs.com Expert Advice

2 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Tips

Choose the right VMware certification path: Data center, cloud or EUC Moving VMs between VMware Workstation 9 and vSphere, and other tips VMware for small business owners: The wrong kit could cost you View All Tips
Answers

How to set up a home virtualization lab for about $1,000 To virtualize or not to virtualize vCenter Server Get the most out of VMware Fusion 5 with a custom setup View All Answers
Ask a Question

Get help from our technical community Powered By ITKnowledgeExchange.com Vendor Content
Research Library

White Papers Business Webcasts Downloads Powered by Bitpipe.com Blogs


Blogs

The Virtualization Room Powered By ITKnowledgeExchange.com Search this site

Home Topics VMware ESX and ESXi administrative tips Using monitoring and performance tools with VMware Monitor VMware ESXi with your existing Nagios application

3 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Sander van Vugt E-Mail Print A AA AAA LinkedIn Facebook Twitter Share This RSS Reprints
Share

Nagios is plug-in-oriented management software typically installed on a Linux server. Many corporate system administrators use Nagios to keep track of the current state of their servers and other vital devices in the network. This makes Nagios a good choice if you're looking for VMware monitoring tools. Here's a look at how to integrate VMware ESXi monitoring in an existing Nagios environment. Any device with a plug-in -- even the software in your department's coffeemaker -- can be managed through Nagios, which makes the open source network monitoring system popular and well-known. If you already have a Nagios monitoring environment in place, you can use it to monitor VMware infrastructures by installing the VMware plug-in on the Linux server. The open source development company OP5 offers the most common VMware monitoring software plug-in: the OP5 Check ESX Plug-in. Since it is written in Perl scripting language, you'll need Perl support on your Linux server and the free VMware vSphere Perl SDK software. Download the VMware vSphere Perl SDK to the Linux server that hosts Nagios and then extract it using tar zxvf VMwareThis will create the subdirectory called vmware-vsphere-cli-distrib. In this subdirectory, you'll find the installer script vmware-install.pl. Before running this script, use yum install perl-PodPerldoc perl-CPAN openssl-devel to ensure that all software requirements are met on your server.

vSphere-Perl-SDK-<version-number>.tar.gz.

After installing the prerequisites, use the ./vmware-install.pl command and follow the script's directions. Now, you can download the Nagios plug-in from OP5 or do an Internet search for download check_esx3.pl to find the plug-in script in text format. Download this script, save it to the directory /usr/lib64/nagios/plugins and use chmod +x check_esx3.pl to make it executable. Nagios can now begin monitoring ESXi. You can now define the commands for Nagios to use to monitor VMware ESXi hypervisors. Add the monitoring commands to the Nagios /etc/nagios/objects/command.cfg file. Put a user name and password in variables in the /etc/nagios /resource.cfg file. In this example, a variable ESXUSER is defined, as well as the user's password. Nagios can use these credentials to access the ESXi host. The file could have the following contents:
# cat /etc/nagios/resource.cfg $ESXUSER$=username $ESXPASSWORD$=password

Based on this, you can add the ESXi monitoring commands to the /etc/nagios/objects/command.cfg file. If you want to monitor ESXi CPU usage, use this command:
# check vmware ESXi CPU

define command
{ command_name check_esx_cpu command_line $ESXUSER$/check_esx -H $HOSTADDRESS$ -u $ESXUSER$ -p $ESXPASSWORD$ -l cpu -s usage -w $ARG1$ -c $ARG2$ }

Once you've defined commands, create a configuration file for your ESXi host. If the ESXi host is called esxi01, you could put its configuration in a /etc/nagios/hosts/esxi01.cfg file containing the following:
# Host esx01

define host

4 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

use

Linux-server

host_name

esxi01 address 192.168.1.10

define service
{ use generic-service } host_name esxi01 service_description ESXi CPU Load check_command check_esx_cpu!80!90

This is just a taste of what you can do with the ESXi monitoring plug-in for Nagios. Depending on what functions the plug-in defines, you can monitor other aspects of the ESXi host. Work with your Nagios administrator to define more commands for monitoring VMware. More News and Tutorials Articles Nagios setup: Installing and configuring the network monitoring tool Installing Nagios on Solaris for network and server monitoring Installing Nagios on Solaris for network and server monitoring Using Nagios plugins for configuration and system testing Remote server monitoring with Nagios

Tags VMware ESX VMware ESXi VMware Inc

Related glossary terms Terms for Whatis.com - the technology online dictionary VMware Virtual SMP (Symmetric Multi-Processing) This was first published in November 2012
Storage Management, Backup and Recovery: On a Smarter Planet, you dont worry about storage, backup and recovery. Your software does.

Join the conversationComment

5 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Share
Tweet 3 Like 0
Share Share 1

Does your IT shop already use Nagios?

Comments

1. Post 4089115 Dec 201212:25 PM zReport Nagios is great! Welcome ESXi!

6 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

2. Post 4087645 Dec 20125:26 AM zReport OP5 company does an excellent job on Nagios implementation. 3. Post 4087375 Dec 20123:35 AM zReport thanks 4. Post 4087555 Dec 20123:29 AM zReport OK 5. Post 4084474 Dec 201210:46 AM zReport I'm looking forward to monitor our ESX farm with Nagois. 6. Post 4084454 Dec 201210:31 AM zReport Yes we do use nagios extensively. All our switches, remote/local,servers are getting monitered by nagios 7. SearchVMwareTT3 Dec 20129:17 AM zReport Many IT shops already use #Nagios monitoring -- why not add #VMware to Nagios' workload? Here's how from @sandervanvugt http://t.co/SRrWrhme via twitterView Profile 8. xinity_bot30 Nov 20124:54 PM zReport Monitor VMware ESXi with your existing Nagios application (VMware tips and tricks) http://t.co/ex9bvLJY via twitterView Profile 9. fionason30 Nov 20124:30 PM zReport Monitor VMware ESXi with your existing Nagios application - TechTarget http://t.co/yb1Q7sNO via twitterView Profile

Results Contribute to the conversation

7 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

All fields are required. Comments will appear at the bottom of the article.

1. Comment: 2. Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk. Back to top

You May Also Be Interested In...


More Background

VMware vCenter guide: An overview of VMware management tools VMware management and performance monitoring guide
More Details

VMware vCenter Ops Manager identifies real-world problems Optimizing resources with vSphere memory management techniques Email Alerts Register now to receive SearchVMware.com-related news, tips and more, delivered to your inbox.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy Ads by Google Gold Is The New EconomyStop Working And Start investing Dont Hate The 1%, Be One Of Them.WealthWire.com/Gold_Mining Control de aplicacionesIdentifica y controla aplicaciones sin importar puerto y protocolo.www.smartekh.com/webinars

8 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Comenzar descargaDescarga ahora conversor vdeo Comienza aqu!www.Download.pconverter.com Free Coupon CodesYour One Stop For Daily Deals, Freebies, & Free Coupons! Get App.www.CouponXplorer.com News
Latest Headlines

IT pros cast wary eyes on new VMware cloud, desktop certifications So long, farewell, auf wiedersehen, goodbye to Eric Siebert VMworld 2011 breakout sessions: End-user computing, SRM and vSphere 5 View All News
Featured

Modern Infrastructure E-Zine Subscribe today to ensure you receive the premier issue of this online magazine focused exclusively on building enterprise data centers, while keeping an eye on tectonic shifts in trends like cloud computing, virtualization and consumerization. You'll also get a free copy of Technology Priorities for 2012! VMware Topics
Topics
VMware desktop software and desktop virtualization

VMware View, VMware Workstation, Fusion and Player, VMware Server


VMware infrastructure management services

DRS and DPM, VMware Consolidated Backup, VMware High Availability and Fault Tolerance, vMotion and Storage vMotion
VMware initiatives and new releases

VMware mobile virtualization, VMware new releases and updates, VMworld conference coverage
vSphere and cloud computing

Using vSphere to create a private cloud, Creating and managing a cloud architecture
VMware ESX and ESXi administrative tips

Creating and upgrading VMware servers and VMs, VMware performance enhancements, Using monitoring and performance tools with VMware, Scripting administrative tasks, Troubleshooting VMware products, Remote administrative options, Backing up VMware host servers and guest OSes, Securing a VMware environment, VMware basics
Data center architecture for VMware ESX and ESXi

9 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Selecting storage and hardware, VMware and networking


VMware certifications and training

VMware Certified Design Expert (VCDX), VMware Certified Professional (VCP), VMware how-tos, VMware training videos and mediacasts
Hot Topics

VMware ESX and ESXi administrative tips vSphere and cloud computing VMware initiatives and new releases Tutorials
Advice & Tutorials

VMware vSphere beginner's guide VMware management and performance monitoring guide VMware networking strategies and architecture: An FAQ guide VMware security best practices guide VMware scripts and commands: A management guide VMware High Availability and Fault Tolerance FAQ
Technology Dictionary

Find definitions and links to technical resources Powered by WhatIs.com Expert Advice
Tips

Choose the right VMware certification path: Data center, cloud or EUC Moving VMs between VMware Workstation 9 and vSphere, and other tips VMware for small business owners: The wrong kit could cost you View All Tips
Answers

How to set up a home virtualization lab for about $1,000 To virtualize or not to virtualize vCenter Server Get the most out of VMware Fusion 5 with a custom setup View All Answers
Ask a Question

Get help from our technical community Powered By ITKnowledgeExchange.com Vendor Content
Research Library

10 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

White Papers Business Webcasts Downloads Powered by Bitpipe.com Blogs


Blogs

The Virtualization Room Powered By ITKnowledgeExchange.com Search this site

More from Related TechTarget Sites

Server Virtualization Virtual Desktop Data Center Cloud computing Server Virtualization
Server virtualization trends and predictions to watch for in 2013

We're at the end of another year, and our experts are polishing their crystal balls to tell you what server virtualization trends to expect in 2013.

Making sense of new Hyper-V 2012 PowerShell cmdlets

Windows Sever 2012 Hyper-V changes will make administration easier, but new PowerShell cmdlets means admins will have to update old scripts.

Geek gift ideas for the holiday season

Need a geek gift idea for the techie you love? Read what our panel of IT pros would like to unwrap this holiday season.

Virtual Desktop
Top 10 VDI news stories of 2012

11 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

2012 may not be a great year according to the Mayans, but desktop virtualization vendors and IT pros saw positive changes in the VDI market this year.
Want VDI success? Stop putting it on a pedestal!

VDI success doesn't come easily, but you can get started on the right path if you consider the best use case for your environment.
Top 5 quotes of 2012: Desktop virtualization pros say what?

Relive the year with these sound bites from desktop virtualization pros and execs. See which ones were -- almost -too improper to print. Data Center
Five things to keep in mind when planning a server refresh cycle

Businesses are shortening server refresh cycles to benefit from more powerful and capable computing platforms.
IT equipment recycling: What do you do with old servers?

When it's time to replace old servers, make IT equipment recycling and disposal an important factor in your technology refresh decisions.
What memory compression can do for VM consolidation

Using memory compression to extend a server's effective memory space can save money and increase consolidation with little processing overhead. Cloud computing
Rackspace CTO discusses cloud trends, reveals 2013 cloud automation plans

Rackspace CTO predicts major IT skill changes due to cloud trends in 2013 and offers a glimpse into upcoming cloud automation tools.
Red Hat ups IaaS ante with ManageIQ acquisition

Heterogeneous hybrid clouds are officially all the rage in IaaS, as Red Hat shores up its CloudForms with cloud management software from ManageIQ.
Verizon Terremark CTO: VMware is 'suspect number one' in cloud vendor lock-in

Verizon Terremark's CTO talks hybrid clouds, cloud brokers and cloud portability, and he shares his concerns about vendors that hold back the market. All Rights Reserved,Copyright 2007 - 2012, TechTarget About Us Contact Us Site Index Privacy policy Advertisers Business partners Events

12 of 13

26/12/2012 04:40 p.m.

Monitor VMware ESXi with your existing Nagios application

http://searchvmware.techtarget.com/tip/Monitor-VMware-ESXi-with-you...

Media kit TechTarget Corporate site Reprints Site map

Does your IT shop already use Nagios? Yes, not for VMware Yes, including for VMware View Comments (9)

No

13 of 13

26/12/2012 04:40 p.m.

Você também pode gostar