Skip to main content

Azure Classic Storage

Pack Assets​

Templates​

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

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

It brings the following service templates:

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

Discovery rules​

The Centreon Monitoring Connector Azure Classic Storage 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 Classic 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 Classic Storage resources:
yum install centreon-plugin-Cloud-Azure-ClassicStorage-StorageAccount-Api
  1. On the Centreon web interface, on page Configuration > Monitoring Connector Manager, install the Azure Classic Storage 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-ClassicStorage-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_classicstorage_storageaccount_api.pl \
--plugin=cloud::azure::classicstorage::storageaccount::plugin \
--mode=transactions-latency \
--custommode='api' \
--resource='/subscriptions/xxx/resourceGroups/rgdev/providers/Microsoft.ClassicStorage/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_classicstorage_storageaccount_api.pl \
--plugin=cloud::azure::classicstorage::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_classicstorage_storageaccount_api.pl \
--plugin=cloud::azure::classicstorage::storageaccount::plugin \
--list-mode

Troubleshooting​

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