check_junos: Improved OK output for interfaces,@with_description+<iface>.

This commit is contained in:
Sebastian Harl 2012-01-03 10:24:51 +01:00
parent d051c32019
commit c001002a1f

View file

@ -301,7 +301,7 @@ sub check_interfaces
} }
if ((! $down_count) && (! $phys_down_count)) { if ((! $down_count) && (! $phys_down_count)) {
if (! scalar(@targets)) { if ((! scalar(@targets)) || $opts->{'with_description'}) {
$plugin->add_message(OK, "all interfaces up" $plugin->add_message(OK, "all interfaces up"
. ($have_lag_ifaces . ($have_lag_ifaces
? " (including all LAG member interfaces)" : "")); ? " (including all LAG member interfaces)" : ""));