Skip to main content

Azure ExpressRoute

Pack Assets​

Templates​

The Centreon Monitoring Connector Azure ExpressRoute brings a host template:

  • Cloud-Azure-Network-ExpressRoute-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefault
Circuit-StatusCloud-Azure-Network-ExpressRoute-Circuit-Status-ApiCheck circuit statusX
HealthCloud-Azure-Network-ExpressRoute-Health-ApiCheck circuit stateX
TrafficCloud-Azure-Network-ExpressRoute-Traffic-ApiCheck circuit inbound and outbound trafficX

Discovery rules​

The Centreon Monitoring Connector Azure ExpressRoute includes a Host Discovery provider to automatically discover the Azure instances of a given subscription and add them to the Centreon configuration. This provider is named Microsoft Azure Express Route:

image

This discovery feature is only compatible with the api custom mode. azcli is not supported.

More information about discovering hosts automatically is available on the dedicated page.

Collected metrics & status​

Metric NameUnit
Deployment status of the circuit

Prerequisites​

Please find all the prerequisites needed for Centreon to get information from Azure on the dedicated page.

Setup​

  1. Install the package on every Centreon poller expected to monitor Azure Express Route resources:
yum install centreon-plugin-Cloud-Azure-Network-ExpressRoute-Api
  1. On the Centreon web interface, on page Configuration > Monitoring Connector Manager, install the Azure ExpressRoute Centreon Monitoring Connector.

Configuration​

Host​

  • Log into Centreon and add a new host through Configuration > Hosts.
  • In the IP Address/DNS field, set the following IP address: 127.0.0.1.
  • Aplly the Cloud-Azure-Network-ExpressRoute-custom template to the host.
  • Once the template is applied, fill in the corresponding macros. Some macros are mandatory. These mandatory macros differ depending on the custom mode used.

Two methods can be used to set the macros:

  • Full ID of the Resource (/subscriptions/<subscription_id>/resourceGroups/<resourcegroup_id>/providers/XXXXX/XXXXX/<resource_name>) in AZURERESOURCE
  • Resource name in the AZURERESOURCE macro, and resource group name in the AZURERESOURCEGROUP macro.
MandatoryMacroDescription
xAZUREAPICUSTOMMODECustom mode api
xAZURECLIENTIDClient ID
xAZURECLIENTSECRETClient secret
xAZURERESOURCEID or name of the Azure Express Route resource
AZURERESOURCEGROUPResource group name if resource name is used
xAZURESUBSCRIPTIONSubscription ID
xAZURETENANTTenant ID

How to check in the CLI that the configuration is OK and what are the main options for?​

Once the plugin is installed, log into your Centreon poller's CLI using the centreon-engine user account (su - centreon-engine) and test the plugin by running the following command:

/usr/lib/centreon/plugins//centreon_azure_network_expressroute_api.pl \
--plugin=cloud::azure::network::expressroute::plugin \
--mode=traffic \
--custommode='api' \
--resource='' \
--resource-group='' \
--subscription='' \
--tenant='' \
--client-id='' \
--client-secret='' \
--proxyurl='' \
--filter-metric='' \
--timeframe='900' \
--interval='PT5M' \
--aggregation='Average' \
--warning-traffic-in='' \
--critical-traffic-out='' \

The expected command output is shown below:

OK: Circuit '%s' Traffic In '%s'b/s Traffic Out '%s'b/s | 'azexpressroute.traffic.in.bitspersecond'=9000b/s;;;0; 'azexpressroute.traffic.in.bitspersecond'=9000b/s;;;0;

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins//centreon_azure_network_expressroute_api.pl \
--plugin=cloud::azure::network::expressroute::plugin \
--mode=traffic \
--help

All available modes can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins//centreon_azure_network_expressroute_api.pl \
--plugin=cloud::azure::network::expressroute::plugin \
--list-mode

Troubleshooting​

Please find the troubleshooting documentation for the API-based plugins in this chapter.