Team Leader - Nutanix Technology Champion - Nutanix NTC Storyteller

Julien DUMUR
Infrastructure in a Nutshell

Continuously monitoring your cluster is the best option to ensure everything is running as you expect.

In this blog post, I’ll explain how to monitor your Nutanix cluster on Centreon using SNMP v2c.

Prerequisites

There are a few prerequisites you must meet to add your Nutanix cluster to the Centreon solution. Here’s a list of what you need:

  • A Nutanix cluster with admin access to the web interface
  • A running Centreon server with the Nutanix connector installed
  • SSH access to the Centreon VM
  • Flux must be open in the firewall

Configuring SNMP v2c on the Nutanix Cluster

To configure SNMP on your Nutanix cluster, start by connecting to the Prism Element and then going to “Settings > SNMP”. Check “Enable SNMP” and click “+ New Transport” to add port 161 in UDP:

Then, under “Traps,” click “+ New Trap Receiver” and fill in the following fields:

  • Receiver Name: The name you wish to assign to your Receiver
  • Check v2c
  • Community: Indicate the SNMP community you wish to use
  • Address: The address of your Centreon server
  • Port: 161
  • Transport protocol: UDP

Click “Save” to save the configuration.

Adding a Nutanix Cluster to Centreon

To add your Nutanix cluster to Centreon, log in to your monitoring system’s web interface, go to “Configuration > Hosts” and click “Add”:

On the page that appears, there is a first block of information to fill in:

  • 1: Cluster name
  • 2: Cluster IP address
  • 3: The community you specified on the trap receiver
  • 4: SNMP version 2c
  • 5: The Centreon server that will monitor the cluster
  • 6: The time zone associated with your cluster
  • 7: The templates you wish to add
  • 8: Check “Yes” to ensure that all services associated with the previously added templates are automatically created.

On the second part of the page, there are a few things to configure, including the amplitude and frequency of the checks:

Once all the information has been entered, confirm so that the new host is created on the server. You must then export the configuration to the pollers. To do this, click on “Pollers” in the top left corner, then on “Export configuration”:

Then click on “Export & Reload” in the small window that appears:

To check that your host is being taken into account, go to “Monitoring > Resources Status”, your first checks should start to come up:

If all goes as planned, you should have all your probes green within minutes!

Troubleshooting

If you unfortunately have a monitor that looks like this:

I recommend checking the following:

  • Opening SNMP streams (port 161/UDP) in the firewall
  • Configuring the Traps Receiver on the Nutanix cluster
  • Configuring the community on the Centreon server

0 comments

Leave a Reply