From 8a864309d5e63ee76b46bb97f0dc4b8a57036552 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 20 Sep 2024 05:46:50 +0200 Subject: [PATCH] fix for: Undefined subroutine &main::debuglog called at /usr/lib64/nagios/plugins/check_rbl line 154. --- check_rbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_rbl b/check_rbl index ba271da..a741dc2 100644 --- a/check_rbl +++ b/check_rbl @@ -151,7 +151,7 @@ sub init_dns_resolver { capture { $resolver->nameservers( $options->nameserver ); }; if ( @servers == 0 ) { - debuglog("DNS nameserver error: $stderr"); + debug("DNS nameserver error: $stderr"); $plugin->nagios_exit( Monitoring::Plugin->CRITICAL, 'Invalid nameserver ' . $options->nameserver ); }