Browse Source

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

Sebastian Harl 13 years ago
parent
commit
0aff58d0cc
1 changed files with 2 additions and 0 deletions
  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(