[check_postgres] Embedded Perl problem: "Subroutine ndie redefined"

Nicolas Marchildon nicolas at marchildon.net
Wed Feb 11 21:44:58 UTC 2009


Hello,

I'm trying to use check_postgres with Nagios 3 (nagios3 debian package,
from lenny/testing) and here's what I'm getting in Nagios' debug log:

[1234382605.076933] [016.0] [pid=16303] ** Handling check result for
service 'PostgreSQL Relations in free-space-map' on host 'bd2'...
[1234382605.076938] [016.1] [pid=16303] HOST: bd2, SERVICE: PostgreSQL
Relations in free-space-map, CHECK TYPE: Active, OPTIONS: 0, SCHEDULED:
Yes, RESCHEDULE: Yes, EXITED OK: No, RETURN CODE: 3, OUTPUT: **ePN
failed to compile /check_postgres/check_postgres.pl: "Subroutine ndie
redefined at (eval 8) line 312," at /usr/lib/nagios3/p1.pl line 161.\n
[1234382605.077087] [064.1] [pid=16303] Making callbacks (type 9)...
[1234382605.077097] [016.1] [pid=16303] Service is in a non-OK state!

If I disable the embedded Perl interpreter (enable_embedded_perl=0), it
works perfectly, but I understand there's a performance hit.

Are you aware of this? Is there a better solution?

I'm at commit ae920c1114752e027f88ac802c6aa89f16da5814


More information about the Check_postgres mailing list