=================================================================== RCS file: /cvs/nagios/check_openbgpd/check_openbgpd,v retrieving revision 1.11 retrieving revision 1.13 diff -u -r1.11 -r1.13 --- nagios/check_openbgpd/check_openbgpd 2024/06/09 23:34:58 1.11 +++ nagios/check_openbgpd/check_openbgpd 2024/06/10 00:09:20 1.13 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -# $AFresh1: check_openbgpd,v 1.10 2015/03/26 03:44:15 andrew Exp $ +# $AFresh1: check_openbgpd,v 1.12 2024/06/09 23:02:37 afresh1 Exp $ ######################################################################## # check_openbgpd *** A nagios check for OpenBSD bgpd # @@ -16,7 +16,7 @@ my $NAGIOS_OUTPUT = 1; my $LICENSE = <<'EOL'; -Copyright (c) 2009-2015 Andrew Fresh +Copyright (c) 2009-2024 Andrew Fresh Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. @@ -99,7 +99,7 @@ } push @cmd, 'show', 'summary'; - #open my $fh, '<', 'output' # XXX + #open my $fh, '<', 'output' or die $!; # XXX open my $fh, '-|', @cmd or die "Couldn't open bgpctl: $!\n"; while (<$fh>) { chomp; @@ -270,7 +270,7 @@ my $opt = shift @argv; for ($opt) { if ( $_ eq '-V' || $_ eq '--version' ) { - print_revision( $PROGNAME, '$Revision: 1.11 $ ' ); + print_revision( $PROGNAME, '$Revision: 1.13 $ ' ); exit $ERRORS{'OK'} } elsif (/^-?-h(?:elp)?\Z/xms) { print_help(); exit $ERRORS{'OK'} } @@ -377,7 +377,7 @@ EOL - print_revision( $PROGNAME, '$Revision: 1.11 $' ); + print_revision( $PROGNAME, '$Revision: 1.13 $' ); print $LICENSE;