summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/icli b/bin/icli
index a26f0a8..ddf295d 100755
--- a/bin/icli
+++ b/bin/icli
@@ -240,8 +240,10 @@ sub filter_generic {
or ( $f eq '!P' and $x->{'active_checks_enabled'} )
or ( $f eq 'S' and check_is_soft($x) )
or ( $f eq '!S' and not check_is_soft($x) )
+ or ( $f eq 'p' and $x->{'has_been_checked'} == 0 )
+ or ( $f eq '!p' and $x->{'has_been_checked'} != 0 )
or ( $f eq 'o' and $x->{'current_state'} == 0 )
- or ( $f eq '!o' and $x->{'current_state'} != 0 )
+ or ( $f eq '!o' and($x->{'current_state'} != 0 or $x->{'has_been_checked'} == 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 )
@@ -1249,6 +1251,10 @@ Service state is Critical
Service state is Unknown
+=item B<p>
+
+Host or service state is Pending
+
=item B<d>
Host state is Down