Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Fixed refs to perf counter tables
Browse files Browse the repository at this point in the history
  • Loading branch information
oikarinen committed Jun 3, 2015
1 parent 1158c39 commit 942a7dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions check_azure_paas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '\''
Expand All @@ -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'],
Expand Down

1 comment on commit 942a7dc

@oikarinen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested in by @andreminelli in microsoftarchive#2

Please sign in to comment.