diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-11-21 13:25:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-11-21 13:25:33 +0100 |
commit | 55bc8eb776ca9b095b5f48efe7dbdc2ab3b72ab9 (patch) | |
tree | a8f61ded33835a1b03a8f30497c6368e2d0c6962 | |
parent | efbe4a66d63d2a55c9e9721e471780b2cfba23ad (diff) |
Remove -x option, it works just like -z!o
-rwxr-xr-x | bin/icli | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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<services> (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 |