From 0eab1e66dfce62d603d4ccde50bcee9378bd620d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 19 Nov 2010 19:26:00 +0100 Subject: Add 'N' flag --- bin/icli | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/icli b/bin/icli index 0760507..eb84fdb 100755 --- a/bin/icli +++ b/bin/icli @@ -347,6 +347,9 @@ sub display_service { if ($s->{'is_flapping'}) { $flags .= 'F'; } + if ($s->{'notifications_enabled'} == 0) { + $flags .= 'N'; + } if ($s->{'active_checks_enabled'} == 0 and $s->{'passive_checks_enabled'} == 1) { $flags .= 'P'; @@ -548,9 +551,12 @@ B [B<-x>] [B<-h> I] [B<-g> I] [B<-s> I] =head1 DESCRIPTION -B is a command line interface to Icinga. By default it lists all +B is a command line interface to B. By default it lists all services and their states. +Note that when supplying custom config and status file paths, B also +works with B. 100% compatibility is not guranteed, however. + =head1 OPTIONS =over @@ -690,6 +696,10 @@ The host this service belongs to is Down or Unreachable Service is flapping between states +=item B + +Notifications for this service are disabled + =item B

Only passive checks are enabled. Note that B simply means that active -- cgit v1.2.3