Explorar o código

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

Sebastian Harl %!s(int64=13) %!d(string=hai) anos
pai
achega
c001002a1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      check_junos.pl

+ 1 - 1
check_junos.pl

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