From 0aff58d0cc128e11b4d60ca65a034fe09d3b458b Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 30 Jun 2011 11:41:18 +0200 Subject: [PATCH] check_junos_bgp.pl: Suppress 'wide character in print' warnings. --- check_junos_bgp.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_junos_bgp.pl b/check_junos_bgp.pl index 41dc337..09f3a61 100755 --- a/check_junos_bgp.pl +++ b/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(