From 55bc8eb776ca9b095b5f48efe7dbdc2ab3b72ab9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 21 Nov 2010 13:25:33 +0100 Subject: Remove -x option, it works just like -z!o --- bin/icli | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bin') diff --git a/bin/icli b/bin/icli index a2f061e..065ded3 100755 --- a/bin/icli +++ b/bin/icli @@ -19,7 +19,6 @@ my $status_file = '/var/lib/icinga/status.dat'; my $rw_file = '/var/lib/icinga/rw/icinga.cmd'; my $context; my $colours = 1; -my $short = 0; my $list_type = 's'; my $verbosity = 1; my $recheck = 0; @@ -106,10 +105,6 @@ sub filter_generic { my ($x) = @_; my $filters_unfulfilled = @filters; - if ($short and not $x->{'current_state'}) { - return 0; - } - foreach my $f (@filters) { if ( ($f eq 'A' and $x->{'problem_has_been_acknowledged'}) or @@ -604,7 +599,6 @@ GetOptions( 's|service=s' => sub { push(@for_services, split(/,/, $_[1])) }, 'v|verbose+' => \$verbosity, 'V|version' => sub { say "icli version $VERSION"; exit 0 }, - 'x|critical-only' => \$short, 'z|filter=s' => sub { push(@filters, split(/,/, $_[1])) }, ) or die("Please see perldoc -F $0 for help\n"); @@ -749,10 +743,6 @@ Limit selection to I (comma separated lists). Can be combined with B<-h>/B<-g> to further narrow down the selection, but may also be used stand-alone. -=item B<-x>|B<--short> - -Only show services which are not OK - =item B<-v>|B<--verbose> Increase output verbosity -- cgit v1.2.3