diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-05-31 18:47:42 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-05-31 18:47:42 +0200 |
commit | 375f44c5f8ab1710e098e1b1807d9493de743642 (patch) | |
tree | 37c7690afe8ef5c13109b170678da33e91319ea5 | |
parent | 90a2dad63b8668413c7b92043cf7c283b8a3c8cc (diff) |
Fix -zN and -z!N not working
-rw-r--r-- | Changelog | 4 | ||||
-rwxr-xr-x | bin/icli | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +git HEAD + + * Fix --filter N and --filter !N + icli 0.44 - Sat Mar 16 2013 * Ignore 'module' field in the icinga status file @@ -230,6 +230,8 @@ sub filter_generic { or ( $f eq '!D' and not check_is_host_down($x) ) or ( $f eq 'F' and $x->{'is_flapping'} ) or ( $f eq '!F' and not $x->{'is_flapping'} ) + or ( $f eq 'N' and not $x->{'notifications_enabled'} ) + or ( $f eq '!N' and $x->{'notifications_enabled'} ) or ( $f eq 'P' and $x->{'passive_checks_enabled'} and not $x->{'active_checks_enabled'} ) |