diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-11-27 14:59:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-11-27 14:59:33 +0100 |
commit | 0b8057261213843250fef84676679e0fa5af732e (patch) | |
tree | 07f85ede1bc3dcdb31fb0b60bb6175cfe327c965 /bin | |
parent | 941596d77ea8b943486d83027f493aece584beeb (diff) |
Support -vvv for host listing as well
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/icli | 60 |
1 files changed, 58 insertions, 2 deletions
@@ -568,7 +568,7 @@ sub display_host_single { printf(" %d/%d", $h->{'current_attempt'}, $h->{'max_attempts'}); } - printf(" %s\n", $h->{'plugin_output'}); + printf(" %s", $h->{'plugin_output'}); } else { printf( @@ -618,8 +618,64 @@ sub display_host_single { ), $h->{'percent_state_change'}, ); - print "\n"; } + if ($v > 3) { + printf( + $format, + 'Check Type', + ($h->{'check_type'} ? 'PASSIVE' : 'ACTIVE'), + ); + printf( + "%-16s : %5.3fs\n%-16s : %5.3fs\n", + 'Check Latency', + $h->{'check_latency'}, + 'Check Duration', + $h->{'check_execution_time'}, + ); + printf( + "%-16s : o %s d %s u %s\n", + 'Last State Times', + pretty_date($h->{'last_time_up'}), + pretty_date($h->{'last_time_down'}), + pretty_date($h->{'last_time_unreachable'}), + ); + printf( + $format, + 'In Downtime', + 'FIXME' + ); + printf( + $format, + 'Active Checks', + pretty_yesno($h->{'active_checks_enabled'}), + ); + printf( + $format, + 'Passive Checks', + pretty_yesno($h->{'passive_checks_enabled'}), + ); + printf( + $format, + 'Obsessing', + pretty_yesno($h->{'obsess_over_host'}), + ); + printf( + $format, + 'Notifications', + pretty_yesno($h->{'notifications_enabled'}), + ); + printf( + $format, + 'Event Handler', + pretty_yesno($h->{'event_handler_enabled'}), + ); + printf( + $format, + 'Flap Detection', + pretty_yesno($h->{'flap_detection_enabled'}), + ); + } + print "\n"; } |