vicioussn / zabbix-azure

Solution to enable monitoring of Azure resources with Zabbix.
https://b-blog.info/en/monitoring-azure-resources-with-zabbix.html
GNU General Public License v3.0
11 stars 12 forks source link

Cannot bind argument to parameter 'subscriptionId' because it is an empty string. #6

Open mysticops opened 3 years ago

mysticops commented 3 years ago

Issue while executing script "/usr/lib/zabbix/externalscripts/get.azure.metrics.values.sh "

VERBOSE: Building result array for pushing to Zabbix server. VERBOSE: VERBOSE: Item 20/20 VERBOSE: Parsing item key 'azure.resource[ASP-appserviceRG-914f, appServicePlan, TcpTimeWait , PT1M]' and getting variables to make REST request. VERBOSE: Getting time span for item 'ASP-appserviceRG-914f/ASP-appserviceRG-914f TCP Time Wait' (id=29338) to determine period to pull metrics from Azure. VERBOSE: Getting Zabbix history for item '29338'. VERBOSE: Successfully fetched Zabbix history for item '29338'. VERBOSE: Item 'ASP-appserviceRG-914f/ASP-appserviceRG-914f TCP Time Wait' (id=29338) has no values (possibly new item?). VERBOSE: Current Epoch time (-3 minutes): 1620122220. VERBOSE: Timespan = '2021-05-01T10:00:00Z - 2021-05-04T09:57:00Z'. Get-ZaAzureMonitorMetricValue: /usr/lib/zabbix/externalscripts/helpers/Set-ZaAzureMonitorZabbixHostItemValue.ps1:80 Line | 80 | $metrics = Get-ZaAzureMonitorMetricValue @params; | ~~~ | Cannot bind argument to parameter 'subscriptionId' because it is an empty string.

VERBOSE: Building result array for pushing to Zabbix server. VERBOSE: Writing metrics to 'imports' file. VERBOSE: Finished write to file. VERBOSE: /usr/lib/zabbix/externalscripts//imports/appservice_2021-05-04T10-00-00Z.imports VERBOSE: Pushing '/usr/lib/zabbix/externalscripts//imports/appservice_2021-05-04T10-00-00Z.imports' to Zabbix server. sent: 0; skipped: 0; total: 0 VERBOSE: Sending 'azureMonitor.lastUpdated' semaphore to the Zabbix host. Response from "localhost:10051": "processed: 0; failed: 1; total: 1; seconds spent: 0.000023" sent: 1; skipped: 0; total: 1 VERBOSE: Logging out from Zabbix. VERBOSE: Successfully logged out from Zabbix. True Removing lock file 'get-azure-metrics-values_appservice.lck'. Transcript stopped, output file is /var/log/azure-script/PowerShell_transcript.nginx.O+Azuz4a.20210504095954.txt

Any help would be appreciated.