Looking for the Perfect Dashboard: InfluxDB, Telegraf and Grafana – Part XXVI (Monitoring Veeam Backup for Nutanix)

Greetings friends, since a few years ago, Veeam has native protection for workloads in Nutanix Acropolis, I told you how to deploy the Proxy and configure jobs, also the article contained the new report of Veeam ONE.

But it is true that the monitoring of jobs, restore points, etc. in Veeam ONE can not include as much information as we need, so I decided to expand the possibilities with Grafana.

Once you have finished this tutorial, you will have something similar to this, it’s better to give it several hours or days to see the whole potential:

Veeam Backup for Nutanix – RESTful API

To get this Dashboard, I’m using the RESTFul API that Veeam Backup for Nutanix includes natively.

Attention: This RESTFul API is not supported by Veeam, we can’t ask anything in the forums or open support cases, use it only under your responsibility.

To access this RESTFul API, it’s as simple as going to the IP of our Veeam Backup for Nutanix Proxy, and adding /swagger in the URL, like this

Once inside, and once we understand that it is a temporary product, and that it can change, we can click on Account to get our token:Once logged in, for example, if I go to the Sync Policy Sessions, we can see the following:And so on with all the other endpoints that this API offers us.

Diagram of the RESTful API, InfluxDB and Grafana monitoring Veeam Backup for Nutanix AHV

Although I have already shown you on some occasions the diagram of how the monitoring would be using Grafana and InfluxDB, I leave you again the diagram, this time monitoring Veeam Backup for Nutanix AHV:

Download and configure the script veeam_nutanixahv.sh

Let’s download the script that will make all this work, we will download the latest version from the Github repository:

This shell script can be downloaded and run from the telegraf server, or InfluxDB, or any other Linux. We will have to edit the configuration parameters:

# Endpoint URL for InfluxDB
veeamInfluxDBURL="http://YOURINFLUXSERVERIP" #Your InfluxDB Server, http://FQDN or https://FQDN if using SSL
veeamInfluxDBPort="8086" #Default Port
veeamInfluxDB="telegraf" #Default Database
veeamInfluxDBUser="USER" #User for Database
veeamInfluxDBPassword='PASSWORD' #Password for Database

# Endpoint URL for login action

We will make the script executable with this simple step:

chmod +x veeam_nutanixahv.sh

We will make sure we have jq installed, an apt-get install jq or yum install jq if we use CentOS:

sudo apt-get install jq

And when we launch it, with the typical ./veeam_nutanixahv.sh if everything went well, we will see the following:

Writing veeam_nutanix_repository to InfluxDB
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: d8c5a770-e134-11ea-a250-dca632b112f7
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.8.2
X-Request-Id: d8c5a770-e134-11ea-a250-dca632b112f7
Date: Tue, 18 Aug 2020 09:26:07 GMT

Besides, it would be nice to put it in the cron to run every 30 minutes:

crontab -e
*/30 * * * * /home/oper/veeam_nutanixahv.sh >> /var/log/veeam_nutanixahv.log 2>&1

We have everything ready, let’s move to the next step.

Grafana Dashboards

I created a Dashboard from scratch by selecting the best requests to the database, finishing off colors, thinking about graphics, and how to display them, and everything is automated so that it fits our environment without any problem and without having to edit anything manually. The Dashboard can be found here, once imported, you can see all the graphics:

How to easily Import the Grafana Dashboard

So that you don’t have to waste hours configuring a new dashboard, and ingesting and debugging you want, I have already created four wonderful dashboards with everything necessary to monitor our environment in a very simple way, it will look like the image I showed you above.Select the name you want and enter the ID: 12839, which is the unique ID of the Dashboard, or the URL:

We’ll have everything popping up without any problem:That’s all folks, if you want to follow the full Blog series about Grafana, InfluxDB, Telegraf, please click on the next links:

Author: jorgeuk

Father, writing in https://www.jorgedelacruz.es and https://jorgedelacruz.uk Blogger, Systems Engineer @veeam - vExpert 2014/2020 & NTC 2018/19

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.