summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-21 13:25:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-21 13:25:33 +0100
commit55bc8eb776ca9b095b5f48efe7dbdc2ab3b72ab9 (patch)
treea8f61ded33835a1b03a8f30497c6368e2d0c6962
parentefbe4a66d63d2a55c9e9721e471780b2cfba23ad (diff)
Remove -x option, it works just like -z!o
-rwxr-xr-xbin/icli10
1 files changed, 0 insertions, 10 deletions
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<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