diff options
Diffstat (limited to 'bin/icli')
-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 |