[check_postgres] Problem with perl 5.8.0
Greg Sabino Mullane
greg at endpoint.com
Tue Sep 23 13:10:22 UTC 2008
On Tue, 23 Sep 2008 11:19:36 +0100
Chris Butler <chrisb at zedcore.com> wrote:
> Our monitoring server is running CentOS 3.9, which has perl version
> 5.8.0. The latest version of check_postgres.pl fails to run on this
> version of perl, with the following error:
>
> Bareword "STDERR" not allowed while "strict subs" in use at
> check_postgres.pl line 919. Execution of check_postgres.pl aborted due
> to compilation errors.
>
> Line 919 is the following:
>
> open my $oldstderr, '>&', STDERR or ndie "Could not dupe
> STDERR\n";
>
> To fix, I replaced that with:
>
> open my $oldstderr, '>&', \*STDERR or ndie "Could not dupe
> STDERR\n";
>
--
Greg Sabino Mullane greg at endpoint.com
End Point Corporation 610-983-9073
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : https://mail.endcrypt.com/pipermail/check_postgres/attachments/20080923/f84e6bc6/signature.bin
More information about the Check_postgres
mailing list