Skip to main content

Azure Storage Account

Pack Assets​

Templates​

The Centreon Monitoring Connector Azure Storage Account brings 5 different host templates:

  • Cloud-Azure-Storage-StorageAccount-Account-custom
  • Cloud-Azure-Storage-StorageAccount-Blob-custom
  • Cloud-Azure-Storage-StorageAccount-File-custom
  • Cloud-Azure-Storage-StorageAccount-Queue-custom
  • Cloud-Azure-Storage-StorageAccount-Table-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefault
Account-Transactions-AvailabilityCloud-Azure-StorageAccount-Account-Transactions-Availability-ApiCheck storage account availabilityX
Account-Transactions-CountCloud-Azure-StorageAccount-Account-Transactions-Count-ApiCheck storage account transactions numberX
Account-Transactions-LatencyCloud-Azure-StorageAccount-Account-Transactions-Latency-ApiCheck storage successfull requests latency and processing timeX
Account-Transactions-ThroughputCloud-Azure-StorageAccount-Account-Transactions-Throughput-ApiCheck storage ingress and egress data thoughputX
Account-Used-CapacityCloud-Azure-StorageAccount-Account-Used-Capacity-ApiCheck storage usageX
Blob-CapacityCloud-Azure-StorageAccount-Blob-Capacity-ApiCheck Blob type storage usageX
Blob-Container-CountCloud-Azure-StorageAccount-Blob-Container-Count-ApiCheck Bloc container count on the storageX
Blob-CountCloud-Azure-StorageAccount-Blob-Count-ApiCheck object count on the storageX
Blob-Transactions-AvailabilityCloud-Azure-StorageAccount-Blob-Transactions-Availability-ApiCheck storage blob availabilityX
Blob-Transactions-CountCloud-Azure-StorageAccount-Blob-Transactions-Count-ApiCheck storage blob transactions numberX
Blob-Transactions-LatencyCloud-Azure-StorageAccount-Blob-Transactions-Latency-ApiCheck storage blob successfull requests latency and processing timeX
Blob-Transactions-ThroughputCloud-Azure-StorageAccount-Blob-Transactions-Throughput-ApiCheck storage blob ingress and egress data thoughputX
File-CapacityCloud-Azure-StorageAccount-File-Capacity-ApiCheck File type storage usageX
File-CountCloud-Azure-StorageAccount-File-Count-ApiCheck file count on the storageX
File-Share-CountCloud-Azure-StorageAccount-File-Share-Count-ApiCheck share count on the storageX
File-Share-QuotaCloud-Azure-StorageAccount-File-Share-Quota-ApiCheck storage size in bytesX
File-Transactions-AvailabilityCloud-Azure-StorageAccount-File-Transactions-Availability-ApiCheck storage file availabilityX
File-Transactions-CountCloud-Azure-StorageAccount-File-Transactions-Count-ApiCheck storage file transactions numberX
File-Transactions-LatencyCloud-Azure-StorageAccount-File-Transactions-Latency-ApiCheck storage file successfull requests latency and processing timeX
File-Transactions-ThroughputCloud-Azure-StorageAccount-File-Transactions-Throughput-ApiCheck storage file ingress and egress data thoughputX
HealthCloud-Azure-StorageAccount-Health-ApiCheck storage account stateX
Queue-CapacityCloud-Azure-StorageAccount-Queue-Capacity-ApiCheck Queue type storage usageX
Queue-CountCloud-Azure-StorageAccount-Queue-Count-ApiCheck queue count on the storageX
Queue-Message-CountCloud-Azure-StorageAccount-Queue-Message-Count-ApiCheck messages count queueing on the storageX
Queue-Transactions-AvailabilityCloud-Azure-StorageAccount-Queue-Transactions-Availability-ApiCheck storage queue availabilityX
Queue-Transactions-CountCloud-Azure-StorageAccount-Queue-Transactions-Count-ApiCheck storage queue transactions numberX
Queue-Transactions-LatencyCloud-Azure-StorageAccount-Queue-Transactions-Latency-ApiCheck storage queue successfull requests latency and processing timeX
Queue-Transactions-ThroughputCloud-Azure-StorageAccount-Queue-Transactions-Throughput-ApiCheck storage queue ingress and egress data thoughputX
Table-CapacityCloud-Azure-StorageAccount-Table-Capacity-ApiCheck Table type storage usageX
Table-CountCloud-Azure-StorageAccount-Table-Count-ApiCheck table count on the storageX
Table-Entity-CountCloud-Azure-StorageAccount-Table-Entity-Count-ApiCheck entries count in tables on the storageX
Table-Transactions-AvailabilityCloud-Azure-StorageAccount-Table-Transactions-Availability-ApiCheck storage table availabilityX
Table-Transactions-CountCloud-Azure-StorageAccount-Table-Transactions-Count-ApiCheck storage table transactions numberX
Table-Transactions-LatencyCloud-Azure-StorageAccount-Table-Transactions-Latency-ApiCheck storage table successfull requests latency and processing timeX
Table-Transactions-ThroughputCloud-Azure-StorageAccount-Table-Transactions-Throughput-ApiCheck storage table ingress and egress data thoughputX

Discovery rules​

The Centreon Monitoring Connector Azure Storage Account 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 Storage Account:

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​

MetricUnit
usedcapacity_totalB

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 Storage Account resources:
yum install centreon-plugin-Cloud-Azure-Storage-StorageAccount-Api
  1. On the Centreon web interface, on page Configuration > Monitoring Connector Manager, install the Azure Storage Account 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-Storage-StorageAccount-Account-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 Classic Storage 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_storage_storageaccount_api.pl \
--plugin=cloud::azure::storage::storageaccount::plugin \
--mode=transactions-latency \
--resource='/subscriptions/xxx/resourceGroups/rgdev/providers/Microsoft.Storage/storageAccounts/storageaccountdev' \
--resource-group='' \
--subscription='xxx' \
--tenant='xxx' \
--client-id='xxx' \
--client-secret='xxx' \
--proxyurl='' \
--storage-type='' \
--timeframe='' \
--interval='' \
--aggregation='' \
--warning-successserverlatency-average='' \
--critical-successserverlatency-average='' \
--warning-successe2elatency-average='' \
--critical-successe2elatency-average='' \
--use-new-perfdata

The expected command output is shown below:

OK: Resource 'storageaccountdev' (Account) average SuccessServerLatency: 10.00 ms, SuccessE2ELatency: 10.17 ms | 'successserverlatency_average'=10.00ms;;;0; 'successe2elatency_average'=10.17ms;;;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_storage_storageaccount_api.pl \
--plugin=cloud::azure::storage::storageaccount::plugin \
--mode=transactions-latency \
--help

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

/usr/lib/centreon/plugins//centreon_azure_storage_storageaccount_api.pl \
--plugin=cloud::azure::storage::storageaccount::plugin \
--list-mode

Troubleshooting​

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