Author Archives: Luciano Gomes

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!

Monitoring NSX Edge, SSL VPN, Firewall and Logical Switch

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

In this post, I would like to show you how you can monitor NSX Edge, SSL VPN, Firewall and Logical Switch using only one dashboard.

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

  1. vRealize Operations (Advanced/Enterprise License)
  2. vCenter + NSX
  3. vR Ops Management Pack for NSX

My friend Romain Decker has covered the installation of the Management Pack. Read it here first.

Another friend (life is good when you have many experts as friends!), Lan Nguyen, has documented how to import the dashboard here.

With the above done, go download the Dashboard to be imported here

One done, follow the steps below to configure the Metric Config XML Files.

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.

Give the name exactly below:

Copy and paste this XML below:

<?xml version="1.0" encoding="UTF-8"?>

<AdapterKinds>
 <AdapterKind adapterKindKey="NSX">
 <ResourceKind resourceKindKey="SSLVPNEdgeService">
 <Metric attrkey="clients|clients_active" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="clients|auth_failures" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="clients|tx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="clients|rx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="clients|utilization" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="clients|workload" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="status|service_status" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="FirewallEdgeService">
 <Metric attrkey="rule|used" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="status|service_status" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="EdgeServicesGateway">
 <Metric attrkey="cpu|used_percent" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="disk|used_percent" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface|tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface|tx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface|rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface|rx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|rx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|tx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|connection_health" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="interface:Uplink|connected" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="net|usage_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="net|used_percent" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="net|maxObserved_KBps" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="status|attached_vms" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="status|running" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="status|status" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="mem|used_percent" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 <ResourceKind resourceKindKey="LogicalSwitch">
 <Metric attrkey="port|max" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|dropped_packet_pct" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|dropped_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|broadcast_tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|dropped_tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|multicast_tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|used" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|utilization" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|maxobserved_util" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|maxobserved_rx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|maxobserved_tx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|unicast_rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|rx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|multicast_rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|dropped_rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|broadcast_rx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|unicast_tx_packets" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="port|tx_traffic" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="summary|attached_vms" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

That’s it!

To use the Dashboard, see the image below:

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

Monitoring vSphere Replication

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

In this post, I will share how you can monitor your vSphere Replication using vRealize Operations Manager. This can be done with a simple custom dashboard.

First, enable the vSphere Replication metrics in the Policy (yes, I agree, there are only 3 metrics coming from vSphere, more would be nice)

repo01

vRops is now collecting these 3 metrics. You can see in the ESXi object.

I’ve created a simple dashboard. You can import it to monitor your vSphere Replication.

rep02

You can grab the dashboard here.

The dashboard uses custom interaction, which is an XML file. Create a new XML file, then copy paste the text into it. The file name has to be replication.xml, as that’s what the imported dashboard expects.

<?xml version="1.0" encoding="UTF-8"?>
 <AdapterKinds>
 <AdapterKind adapterKindKey="VMWARE">
 <ResourceKind resourceKindKey="HostSystem">
 <Metric attrkey="hbr|hbrNumVms_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="hbr|hbrNetRx_average" label="" unit="" yellow="" orange="" red=""/>
 <Metric attrkey="hbr|hbrNetTx_average" label="" unit="" yellow="" orange="" red=""/>
 </ResourceKind>
 </AdapterKind>
 </AdapterKinds>

So long you make the name of the file that the dashboard refer to, and the actual file name, consistent, you can name them whatever you want.

If you don’t know how to use custom interaction in vROps, take a look at this article.

I am thinking of blogging about Log Insight and vSphere Replication, let me know if it will be useful for you.

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