summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-19 19:26:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-19 19:26:00 +0100
commit0eab1e66dfce62d603d4ccde50bcee9378bd620d (patch)
tree75b4cfe0beb880d31c942badc6ca68d36f3abcbf
parent3ed204b663c7ae66f2e010215af7635493436025 (diff)
Add 'N' flag
-rwxr-xr-xbin/icli12
1 files changed, 11 insertions, 1 deletions
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<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