From d388b41eb9947f527e6ef67f08c4334ae9027eaa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Nov 2010 23:37:22 +0100 Subject: More filters based on service state --- bin/icli | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/icli b/bin/icli index 0a40f94..6ec8042 100755 --- a/bin/icli +++ b/bin/icli @@ -89,7 +89,19 @@ sub filter_generic { ($f eq '!F' and not $x->{'is_flapping'}) or ($f eq 'P' and $x->{'passive_checks_enabled'} and not $x->{'active_checks_enabled'}) or - ($f eq '!P' and $x->{'active_checks_enabled'}) + ($f eq '!P' and $x->{'active_checks_enabled'}) or + ($f eq 'o' and $x->{'current_state'} == 0) or + ($f eq '!o' and $x->{'current_state'} != 0) or + ($f eq 'w' and $x->{'current_state'} == 1) or + ($f eq '!w' and $x->{'current_state'} != 1) or + ($f eq 'c' and $x->{'current_state'} == 2) or + ($f eq '!c' and $x->{'current_state'} != 2) or + ($f eq 'u' and $x->{'current_state'} == 3) or + ($f eq '!u' and $x->{'current_state'} != 3) or + ($f eq 'd' and $x->{'current_state'} == 2) or + ($f eq '!d' and $x->{'current_state'} != 2) or + + 0 # Terminator to ease adding new lines ) { $filters_unfulfilled--; } -- cgit v1.2.3