Error running check_dnsbl

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lvang
Posts: 1
Joined: Fri Jun 29, 2012 11:39 am

Error running check_dnsbl

Post by lvang »

Service Check: Check_dnsbl

The service check has been running fine until a couple of days ago, when Nagios was reporting CRITICAL for our mail gateways. We've been receiving critical notifications and when checking the results, I get a (null) value. When i attempt to run the service check manually (as root), I get the output below:

# ./check_dnsbl
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_dnsbl line 52.
BEGIN failed--compilation aborted at ./check_dnsbl line 52.

Once I switch to our Nagios user, I am able to run the service check without any issues, but Nagios still shows CRITICAL and the service check still returns a (null) for our mail gateways. If I restart my session as root, I am able to reproduce the error above. We are running:

CentOS 6
Nagios 3.2.3

Any help is appreciated,

Thanks!

-Lee
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Error running check_dnsbl

Post by agriffin »

Where is the plugins directory on your system? Are you testing the plugin from its directory or elsewhere (i.e. are you calling it like ./check_dnsbl or like /full/path/check_dnsbl)?
Locked