diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-27 00:14:10 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-27 00:14:10 +0200 |
commit | 8f6918c09f9e9f190d4bd86ad84844797304f61f (patch) | |
tree | 69537be2d8905b893a42323343620f73977d5cc4 /bin | |
parent | 0aaa43fc4e1edc46699b8b3820a959a34798cfa6 (diff) |
Add option to set status file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/icli | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |