소스 검색

check_junos_bgp.pl: Suppress 'wide character in print' warnings.

Sebastian Harl 13 년 전
부모
커밋
0aff58d0cc
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      check_junos_bgp.pl

+ 2 - 0
check_junos_bgp.pl

@@ -47,6 +47,8 @@ use Regexp::IPv6 qw( $IPv6_re );
 
 use JUNOS::Device;
 
+binmode STDOUT, ":utf8";
+
 my $valid_checks = "peers_count|prefix_count";
 
 my $plugin = Nagios::Plugin->new(