diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-11-19 19:26:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-11-19 19:26:00 +0100 |
commit | 0eab1e66dfce62d603d4ccde50bcee9378bd620d (patch) | |
tree | 75b4cfe0beb880d31c942badc6ca68d36f3abcbf | |
parent | 3ed204b663c7ae66f2e010215af7635493436025 (diff) |
Add 'N' flag
-rwxr-xr-x | bin/icli | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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<icli> [B<-x>] [B<-h> I<hosts>] [B<-g> I<hostgroups>] [B<-s> I<services>] =head1 DESCRIPTION -B<icli> is a command line interface to Icinga. By default it lists all +B<icli> is a command line interface to B<Icinga>. By default it lists all services and their states. +Note that when supplying custom config and status file paths, B<icli> also +works with B<Nagios>. 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<N> + +Notifications for this service are disabled + =item B<P> Only passive checks are enabled. Note that B<!P> simply means that active |