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
Error running check_dnsbl
Re: Error running check_dnsbl
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)?