Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SolarWinds Server & Application Monitor: Deployment and Administration

You're reading from   SolarWinds Server & Application Monitor: Deployment and Administration Ensuring high availability for your IT services can be problematic, but with this tutorial on SolarWinds SAM it suddenly becomes a lot more feasible. It's the perfect primer for one of the most intuitive, enterprise-level monitors around.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781783551019
Length 116 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Justin Brant Justin Brant
Author Profile Icon Justin Brant
Justin Brant
Arrow right icon
View More author details
Toc

VMware host monitoring prerequisites


This section discusses configuring your Virtual Machine Hosts (VMHost) for SolarWinds SAM integration. Procedures will outline how to enable Secure Shell (SSH) and SNMP on a VMHost, and then walk through the creation process of a VMware service account.

Tip

Ideally, you should also monitor each virtual server within a VMHost via SNMP or WMI. VMware Tools should be installed on all virtual servers. Note that the free version of VMware ESXi does not support SNMP.

Enabling and configuring SNMP

There are a variety of ways to enable and configure SNMP on a VMHost. We will explain two methods, which should cover most VMHost types and versions. The first method only applies to VMware ESXi 5.1 and explains how to remotely enable SNMP via SSH. The second method involves logging in to the VMHost console itself, and should translate well to most versions.

Method 1 – enabling and configuring SNMP via Secure Shell

There are two parts to this method; first we will enable SSH on the VMHost, and then use PuTTY to connect to the host and edit its snmp.xml file.

Note

PuTTY is a free open source terminal emulator that supports network protocols, such as SSH, SCP, Telnet, and rlogin. We will be using SSH in this procedure. Download PuTTY from the following URL: http://www.putty.org/

Part 1 of 2 – enabling SSH on ESXi 5.1 using vSphere

The following steps explain how to enable SSH and open the firewall to allow SSH connections.

Tip

We recommend only temporarily enabling SSH access, for security reasons.

  1. Launch the vSphere Client and log in with administrator credentials, such as root.

  2. Click on the Inventory icon in the Inventory panel.

  3. In the left panel, select the host.

  4. Click on the Configuration tab.

  5. Click on Security Profile in the Software panel.

  6. Click on Properties in the Services section.

  7. Select SSH in the Service Properties window.

  8. Click on the Options button and select one of the following:

    • Start and stop manually: This enables temporary SSH access.

    • Start and stop with host: This enables SSH indefinitely. There are security implications to consider when enabling this feature.

  9. Click on Start to enable the service.

  10. Click on OK at the SSH Options window and the Service Properties window.

  11. While still on the Configuration tab, select Properties in the Firewall section.

  12. Check the box under Required Services | Secure Shell | SSH Server.

  13. With SSH Server still selected, click on the Firewall button.

  14. Select Allow connections from any IP address radio button and click on OK.

  15. Click on OK at the Firewall Properties window.

Part 2 of 2 – enabling and configuring SNMP using PuTTY

The following steps explains how to use PuTTY to connect to the host and edit its snmp.xml file.

  1. Run putty.exe.

    Note

    The author assumes that the reader is familiar with PuTTY. A detailed tutorial for its use is beyond the scope of this book. For a PuTTY tutorial, visit the author's blog at http://justinmbrant.blogspot.com/.

  2. Connect to your VMHost. A command line window will appear.

  3. Enter your root login credentials.

  4. Click on Yes if you see a PuTTY Security Alert.

  5. Navigate to the VMware folder:

    ~ # cd /etc/vmware
    /etc/vmware #
    
  6. List folder contents to ensure snmp.xml is available:

    /etc/VMware/ # ls
    
  7. Edit snmp.xml using vi editor:

    /etc/VMware # vi snmp.xml
    
  8. You will see a single line; press I to enter the edit mode and use the arrow keys to navigate.

  9. Enable SNMP by changing false to true between <enable> and </enable>.

  10. Assign the community string by entering one between <communities> and </communities>. For example, we used S4MVMH0st!

  11. Press Esc and type :wq to save and quit. If you made a mistake, type :q! to quit without saving, and repeat steps 6 through 12.

  12. Restart the host daemon:

    /etc /VMware/ # cd
    ~ # /etc/init.d/hostd restart
    watchdog-hostd: Terminating watchdog process with PID 201623
    hostd stopped.
    hostd started.
    

    Tip

    After successfully enabling and configuring SNMP on a VMHost, you should go back and disable SSH, then close the firewall to disallow SSH access.

Method 2 – enabling SNMP on ESXi 5.1 or prior via the console

This method explains how to enable SNMP via the VMware ESXi console, by directly logging in to the VMHost server.

  1. Go to the ESXi console on the server itself, that is, not remote.

  2. Press Alt + F1 to access the hidden console.

  3. If using ESXi 5.1, then skip to step 6.

  4. If using versions prior to ESXi 5.1 then type unsupported in the hidden console and press Enter.

    Note

    You will not see any text you as you type the password.

  5. You will see Tech Support Mode warning.

  6. Type the root Login Credentials.

  7. Now follow steps 6 to 12 outlined in the Part 2 of 2 – enabling and configuring SNMP using PuTTY section.

Creating a service account for VMHost

Before SolarWinds SAM can start polling a VMHost, a service account should be created for it to use, opposed to using the root credentials. The following procedure will explain how to create a VMware service account, to pass along to SolarWinds SAM.

  1. Launch the vSphere Client and log in with administrator credentials, such as root.

  2. Click on Ignore if you are prompted with an untrusted SSL certificate warning.

  3. In the left panel select the host.

  4. Select the Local Users & Groups tab in the right panel

  5. Click on the Users button under view.

  6. Right-click within the right panel, and then select Add.

  7. On the Add New User window:

    • Enter both a Login and a User Name. For example, we used SAMVMHOST.

    • Enter and confirm a Password.

    • Click on OK.

  8. Select the Permissions tab.

  9. Right-click within the right panel, and then select Add Permission.

  10. On the Assign Permissions window, click on Add.

  11. Click on the Add button.

  12. Select the user you just created and click on Add, then click on OK on the Select Users and Groups window.

  13. Under the Assigned Role area, select Read-only and then click on OK on the Assign Permissions window.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image