Преглед изворни кода

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

Sebastian Harl пре 13 година
родитељ
комит
c001002a1f
1 измењених фајлова са 1 додато и 1 уклоњено
  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)" : ""));