Skip to content

Commit

Permalink
Increasing threshold of disk usage alarm to 90
Browse files Browse the repository at this point in the history
Earlier threshold of 50% was too low, increasing it to 90%
Closes-Bug: 1593172

Change-Id: I31beb83c3aff2c935f774c4d255151593f99ffb1
  • Loading branch information
bansalnikhil committed Jun 20, 2016
1 parent cbbbb99 commit 0a70dc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/opserver/plugins/alarm_disk_usage/main.py
Expand Up @@ -13,7 +13,7 @@ class DiskUsage(AlarmBase):
'operand1': 'NodeStatus.disk_usage_info.' + \
'percentage_partition_space_used',
'operation': '>=',
'operand2': '50',
'operand2': '90',
'vars': ['NodeStatus.disk_usage_info.partition_name']
}
]
Expand Down
6 changes: 3 additions & 3 deletions src/opserver/test/test_alarm_plugins.py
Expand Up @@ -572,7 +572,7 @@ def test_alarm_disk_usage(self):
'partition_space_used_1k': 73819750,
'partition_name': 'dev/sda2',
'partition_type': 'ext4',
'percentage_partition_space_used': 55
'percentage_partition_space_used': 95
}
]
}
Expand All @@ -582,10 +582,10 @@ def test_alarm_disk_usage(self):
{
'and_list': [
('NodeStatus.disk_usage_info.' +\
'percentage_partition_space_used >= 50',
'percentage_partition_space_used >= 90',
['NodeStatus.disk_usage_info.' +\
'partition_name'],
[('55', None, {
[('95', None, {
'NodeStatus.disk_usage_info.' +\
'partition_name': '"dev/sda2"'})]
)
Expand Down

0 comments on commit 0a70dc5

Please sign in to comment.