소스 검색

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)" : ""));