Author Archives: Luciano Gomes

WaveFront – How to deploy and use – PART I

This blog is contributed by my friend Luciano Gomes, a VMware Technical Account Manager in Rio de Janeiro Area, Brazil. Thank you, Lucky!

Today, I am super excited to share about Wavefront, a new acquisitions by VMware. I’ve been playing with it as it’s been awesome!

First, what is Wavefront?

It is cloud-hosted service, not a product you install in your premise. You send your time-series (metric) data – from CollectD, StatsD, JMX, Ruby’s logger, AWS, anything basically, to it.

You can then perform arbitrary mathematical operations on any number of those series, render charts to see anomalies or KPI dashboards, and ultimately create truly intelligent alerts to proactively watch over your entire stack.

It scales seamlessly, it’s reliable, it’s feature complete, and the support is great. It’s everything you have always wanted but never get. Find more details here.

How to use Wavefront

I will share the instructions in how you can setup your environment and start today to monitor your environment. Yeah, today! Wavefront is a SaaS solution, so you only need to set up a proxy on-premises and connect to Wavefront in the cloud.

Step 0: Prerequisites

  1. Setup your account in Wavefront (You can use a trial here)
  2. A Linux (or Windows) machine to be used as a WaveFront Proxy (need to have Internet Access).
  3. A Linux or Windows machine that you want to monitor (need access to Internet, at least for installing the Agent).
    • If you want to see Application Monitoring, like a MySQL Database, you need it
    • If you want to explore integration, like Zabbix (yeah, we have it OOTB), you need it.

Step 1: Install Proxy

Login in your WaveFront account and click in Browse -> Proxies (Choose Linux) and copy the code.

Go to your Linux machine, that you choose to be your WaveFront proxy, and paste the code. (remember, you need to have Internet access).

Tip: to avoid errors, copy and paste the code in one single line, like below:

sudo bash -c "$(curl -sL https://wavefront.com/install)" -- install --proxy --wavefront-url https://vmware.wavefront.com --api-token 09090099-7405993030033-a403904930907d

If you already are the root, you don’t need to use sudo.

After the installation concludes, go to the same place and check if your proxy is listed.

If the proxy does not appear, check /var/log/wavefront/wavefront.log to verify the installation.

Step 2: Install Agents

Once your proxy is setup, time to install an agent inside the machines that we want to monitor.

Click in Integration, and then Click Linux Host

After that, click Setup

If your Wavefront Proxy is not reachable with the hostname that appears in the code, change it before pasting.

Tip: put the code in one single line, like below:

bash -c "$(curl -sL https://wavefront.com/install)" -- install --agent --proxy-address ahutchings --proxy-port 2878

After this command concludes with success, you can click in the Metrics tab and check if your metrics are available in awesome dashboard, like below:

This concludes the first part of a series of blog post about Wavefront.

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!

Monitoring IIS with vRealize Operations

This blog is contributed by my friend Luciano Gomes, a VMwareTAM in Rio de Janeiro Area, Brazil. Thank you, Lucky!

In this post, I would like to show how you can monitor Microsoft IIS. By the end of it, you will get a dashboard like this.

First, let’s get the prerequisites out of the way:

  1. vRealize Operations (Enterprise edition, not Advance. IIS is considered as application, not infrastructure)
  2. Endpoint Operations Agent running on each IIS machine you are monitoring.
  3. IIS Solution for vR Ops (here). Download and install it.

With the above done, download the dashboard I created. Import it into vR Ops.

Once done, follow the steps below to configure the Metric Config XML files. The files are required to drive the widgets, so they show the metrics you want. You can certainly configure the files if you want to show a different metrics.

The above will take you to the Manage Metric Config screen.

  1. Click ReskndMetric folder to expand
  2. Click Green Plus Sign to create a new file.

Use the name exactly like listed below. The filename no extension.

IIS ALL METRICS

<?xml version="1.0" encoding="UTF-8"?>
<AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="IIS AppHostSvc">
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessCpuUsage" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessResidentMemorySize" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessPageFaultsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessOpenFileDescriptors" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessThreads" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessVirtualMemorySize" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="IIS WAS Service">
 <Metric attrkey="UTILIZATION|ProcessThreads" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessResidentMemorySize" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessPageFaultsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessOpenFileDescriptors" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessCpuUsage" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessCpuTotalTimeperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ChildProcesses" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="IIS WAS Service Application Pool">
 <Metric attrkey="UTILIZATION|CurrentApplicationPoolUptime" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalWorkerProcessesCreatedperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalWorkerProcessStartupFailuresperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalApplicationPoolUptime" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalApplicationPoolRecyclesperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|RecentWorkerProcessFailures" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|CurrentWorkerProcesses" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|MaximumWorkerProcessesperMinute" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="IIS WWW Service">
 <Metric attrkey="THROUGHPUT|BytesReceived/sec" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|BytesSent/sec" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|ConnectionAttempts/Sec" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|CurrentConnections" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|MeasuredAsyncI/OBandwidthUsage" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|ProcessCpuUsage" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalGetRequestsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|TotalNotFoundErrorsperMinute" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
</AdapterKinds>

That’s it!

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!

Monitoring Active Directory with vRealize Operations

This blog is contributed by my friend Luciano Gomes, a VMwareTAM in Rio de Janeiro Area, Brazil. Thank you, Lucky!

In this post, I would like to show how you can monitor Microsoft Active Directory.

First, let’s get the prerequisites out of the way:

  1. vRealize Operations (Enterprise, not Advance. AD is considered as application, not infrastructure)
  2. Endpoint Operations Agent running on each AD machine you are monitoring.
  3. AD Solution for vR Ops (here)

With the above done, download the dashboard I created. Import it into vR Ops.

Once done, follow the steps below to configure the Metric Config XML Files. This is required to drive the widgets, so they show the correct metrics.

The above will take you to the Manage Metric Config screen.

  1. Click ReskndMetric folder to expand
  2. Click Green Plus Sign to create a new file.

You will need to repeat this step 4 times, please, make a note and repeat the name exactly like listed below:

ad-server.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Active Directory">
 <Metric attrkey="AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|DSClientBindsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="THROUGHPUT|DSDirectorySearchesperMinute" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

ad-ldap.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Active Directory">
<Metric attrkey="Active Directory LDAP:LDAP|AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
<Metric attrkey="Active Directory LDAP:LDAP|THROUGHPUT|LDAPSearchesperMinute" label="" unit="" yellow="" orange="" red=""/>
<Metric attrkey="Active Directory LDAP:LDAP|THROUGHPUT|LDAPNewConnectionsperMinute" label="" unit="" yellow="" orange="" red=""/>
</ResourceKind>
</AdapterKind>
</AdapterKinds>

ad-authentication.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Active Directory">
 <Metric attrkey="Active Directory Authentication:Authentication|AVAILABILITY|ResourceAvailability" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="Active Directory Authentication:Authentication|THROUGHPUT|NTLMAuthenticationsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="Active Directory Authentication:Authentication|THROUGHPUT|KerberosAuthenticationsperMinute" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="Active Directory Authentication:Authentication|THROUGHPUT|KDCTGSRequestsperMinute" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

VM-OS-AD-metrics.xml

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="EP Ops Adapter">
 <ResourceKind resourceKindKey="Windows">
 <Metric attrkey="FileServer Logical Disk:C:|UTILIZATION|Avg.Disksec/Transfer" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Mount:C:\ (local/NTFS)|UTILIZATION|UsePercent" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Physical Disk:0 C:|UTILIZATION|%DiskTime" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Physical Disk:0 C:|UTILIZATION|Avg.DiskQueueLength" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Physical Disk:0 C:|UTILIZATION|CurrentDiskQueueLength" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Physical Disk:0 C:|UTILIZATION|DiskReadBytes/sec" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="FileServer Physical Disk:0 C:|UTILIZATION|DiskWriteBytes/sec" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="NetworkServer Interface:Network Interface eth10 (ethernet)|THROUGHPUT|BitsReceivedperSecond" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="NetworkServer Interface:Network Interface eth10 (ethernet)|THROUGHPUT|BitsTransmittedperSecond" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|CpuUsage" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|PercentUsedMemory" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="UTILIZATION|PercentUsedSwap" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 <AdapterKind adapterKindKey="VMWARE">
 <ResourceKind resourceKindKey="VirtualMachine">
 <Metric attrkey="cpu|capacity_contentionPct" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="cpu|usage_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="diskspace|actual.capacity.normalized" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="diskspace|underusedpercent" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="mem|host_contentionPct" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="mem|usage_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="storage|totalReadLatency_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="storage|totalWriteLatency_average" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

That’s it!

To use the Dashboard, watch the 45 seconds video below:

PS: If you like the soundtrack, the music is Plain Truth offered for free by Gunnar Olsen. Nice right! 🙂

Hope you find it useful. Do reach out via Linkedin and Twitter. Thanks for reading!