summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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