From 942a7dcc3d391cfd23e138d3e935d896148b645b Mon Sep 17 00:00:00 2001 From: to Date: Wed, 3 Jun 2015 13:37:55 +0300 Subject: [PATCH] Fixed refs to perf counter tables --- check_azure_paas.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/check_azure_paas.py b/check_azure_paas.py index 828a399..d7edaf1 100755 --- a/check_azure_paas.py +++ b/check_azure_paas.py @@ -204,8 +204,10 @@ def get_and_check_counter(counter, cloudservice_name, management, try: storage_account = CloudStorageAccount(storageacct_name, primary_key) table_service = storage_account.create_table_service() - table_name = 'WAD'+ str(production_depl.private_id) + \ - 'PT'+ '1H' +'R'+'Table' +# changed as per https://github.com/MSOpenTech/wamo/pull/2/files +# table_name = 'WAD'+ str(production_depl.private_id) + \ +# 'PT'+ '1H' +'R'+'Table' + table_name = 'WADPerformanceCountersTable' error_code_all = 0 for role in production_depl.role_list: role_clause = 'Role eq \''+ role.role_name + '\'' @@ -228,7 +230,8 @@ def get_and_check_counter(counter, cloudservice_name, management, if len(results) != 0: latest_result = results[len(results)-1] error_code, error = nagios_eval( role.role_name, - latest_result.Total, + #latest_result.Total, + latest_result.CounterValue, warning, critical, counter['nagios_message'],