Monitor a VMware NSX Implementation

By | 11/06/2018

In this post I will cover objective 5.2 of VCAP6-NV Deploy exam and will be discussing on following topics

  • Configure logging for NSX components according to a deployment plan
  • Monitor health of networking services
  • Monitor health and status of infrastructure components:
    • vSphere
    • NSX Manager
    • Control Cluster
  • Enable data collection for single/multiple virtual machines

Lets get started.

         Configure logging for NSX components according to a deployment plan

1: Configure Syslog on NSX Manager

To configure NSX mmanger to send logs to a centralized syslog server, login to NSX manager UI and click on “Manage Appliance Settings”

nsxm-1.PNG

Under Syslog server click on Edit button

nsxm-2

Punch in your syslog server IP and port 514 and select UDP as protocol and hit OK.

nsxm-3

Post configuring syslog on NSX manager, I verified that it is forwarding the logs to syslog manager.

nsxm-4

Configure Syslog on NSX Controllers

There is no method available from GUI to set syslog settings on NSX controller and you can only set it via Rest API. The steps of configuring syslog on controllers via Rest API is explained on page 57 of NSX API Guide

1: Get a list of deployed controllers: You can fire below API call to get list of all the deployed controllers

You will get details of all the deployed controllers (if you have more than one). Make a note of the controller-id

nsxm-5.PNG

Controller’s ID can also be feteched by logging into vCenter and navigating to Networking & Security > Installation & Upgrade tab

nsxm-6.PNG

2: Set syslog on controller: 

Method : POST

URL : https://NSXMGR-FQDN/api/2.0/vdn/controller/{controllerId}/syslog

Content-Type : application/xml

Request Body

Example: curl -sik -u ‘admin’ -H ‘Content-Type:application/xml’ -X POST https://nsxmgr-01a.corp.local/api/2.0/vdn/controller/controller-6/syslog -d @syslogctlr.xml

where syslogctlr.xml file contains the content mentioned under Request Body

Now if you do a GET against controller-6, you will see that syslog info has been populated there.

nsxm-7.PNG

Configure Syslog on NSX Edge Services Gateway

To configure syslog on an ESG, double click on the edge and navigate to Manage > Settings > Configuration and select Syslog servers and click on change.

nsxm-8.PNG

Enter syslog server IP and select UDP as protocol and hit OK.

nsxm-9.PNG

And syslog status will change to Up

nsxm-10.PNG

                                       Monitor health of networking services

I am not sure what exactly this objective is about but I guess we can check for

  • EAM status.
  • firewall/VXLAN health status.
  • Hosts prepration status are reporting as prepared. 
  • Communication Channel health status.

nsxm-14.PNG

                         Monitor health and status of infrastructure components

1: Monitoring vSphere Health : Make sure CPU/Memory utilization of your cluster is under threshold. 

vsphere-health.PNG

Also look for any triggered alarms etc and if found any, then rectify the issue.

vsphere-health-2

vsphere-health3

2: Monitor NSX Manager Health: Login to NSX manager UI and from home page verify that all services are running.

Also verify CPU/Memory/Disk utilization has not crossed any configured threshold.

nsxm-11.PNG

Check for connectivity status of lookup service and vCenter server. Inventory sync should always be recent. 

nsxm-12.PNG

Check for Audit Logs, System Events and Tasks etc by logging into web client and navigating to Networking and Security > NSX Manager > Monitor tab.

nsxm-13.PNG

Monitor NSX Controllers Health

Controllers general health statistics can be monitored by logging into vCenter and navigating to Networking & Security > Installation Management > NSX Controllers node

nsxm-16.PNG

To verify  cluster join status and majority status etc, connect the controller node via ssh and run comamnd: show control-cluster status 

nsxm-17.PNG

To verify the Controller Node’s intra-cluster communication connections status, run command: show control-cluster connections

nsxm-18

Enable Data Collection for Single/Multiple Virtual Machines

Will update this section soon.

And that’s it for this post.

I hope you find this post informational. Feel free to share this on social media if it is worth sharing. Be sociable 🙂

Category: NSX

About Alex Hunt

Hi All I am Manish Jha. I am currently working in OVH US as Operations Support Engineer (vCloud Air Operations). I have around 7 Years of IT experience and have exposure on VMware vSphere, vCloud Director,vSphere Replication, vRealize Automation, NSX and RHEL. If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post. Disclaimer: All the information on this website is published in good faith and for general information purpose only. I don’t make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this blog is strictly at your own risk. The Views and opinions published on this blog are my own and not the opinions of my employer or any of the vendors of the product discussed.