Module: check_mk
Branch: master
Commit: b342d0876b83b74fdfd443e21c1053c102c787bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b342d0876b83b7…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Feb 6 16:04:26 2019 +0100
aws_ec2_summary: Removed WARN state if at least one instance is not running
Change-Id: I0071a4de1891d2a5d6cf10672f9acd77afb4db57
---
checks/aws_ec2_summary | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/checks/aws_ec2_summary b/checks/aws_ec2_summary
index b54c5a4..b6684b1 100644
--- a/checks/aws_ec2_summary
+++ b/checks/aws_ec2_summary
@@ -55,11 +55,7 @@ def check_aws_ec2_summary(item, params, parsed):
yield 0, "Instances: %s" % sum([len(v) for v in
instances_by_state.itervalues()])
for instance_state, instances in instances_by_state.iteritems():
- if instance_state == 'running':
- state = 0
- else:
- state = 1
- yield state, "%s: %s" % (instance_state, len(instances))
+ yield 0, "%s: %s" % (instance_state, len(instances))
if long_output:
yield 0, "\n%s" % "\n".join(long_output)