summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-27 00:14:10 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-27 00:14:10 +0200
commit8f6918c09f9e9f190d4bd86ad84844797304f61f (patch)
tree69537be2d8905b893a42323343620f73977d5cc4
parent0aaa43fc4e1edc46699b8b3820a959a34798cfa6 (diff)
Add option to set status file
-rwxr-xr-xbin/icli10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/icli b/bin/icli
index 869bc9d..427d12e 100755
--- a/bin/icli
+++ b/bin/icli
@@ -103,8 +103,9 @@ sub display_host {
}
GetOptions(
- 'C|no-colours' => sub { $colours = 0 },
- 'h|host=s' => \$for_host,
+ 'C|no-colours' => sub { $colours = 0 },
+ 'f|status-file=s' => \$status_file,
+ 'h|host=s' => \$for_host,
);
read_status();
@@ -146,6 +147,11 @@ services and their states.
Disable colours in output
+=item B<-f>/B<--status-file> I<file>
+
+Read the status from I<file> instead of the default
+F</var/lib/icinga/status.dat>
+
=item B<-h>/B<--host> I<host>
Only show I<host>'s services