소스 검색

Merge branch 'evgeni-patch-1'

Sebastian Wolf 3 년 전
부모
커밋
66f3df34b6
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      NEWS
  2. 2 0
      plugins-scripts/check_mailq.pl

+ 2 - 1
NEWS

@@ -2,7 +2,8 @@ This file documents the major additions and syntax changes between releases.
 
 
 2.4.3 2022-01-??
 2.4.3 2022-01-??
 	FIXES
 	FIXES
-	check_dig: improve matching logic when using -a (#652)
+	check_dig: Improve matching logic when using -a (#652)
+	check_mailq: Fix garbled output when checking postfix (#663)
 
 
 2.4.2 2022-11-08
 2.4.2 2022-11-08
 	FIXES
 	FIXES

+ 2 - 0
plugins-scripts/check_mailq.pl

@@ -342,6 +342,8 @@ elsif ( $mailq eq "postfix" ) {
 
 
 
 
 	@lines = reverse <MAILQ>;
 	@lines = reverse <MAILQ>;
+	
+	close(MAILQ);
 
 
         if ( $? ) {
         if ( $? ) {
 		print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ$mailq_args",$/;
 		print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ$mailq_args",$/;