Build precise queries to find exactly what you need
Press ESC to close
Works like a charm.
But there is one bug. If the hostname can’t be resolved into an IP address, you get an error on line 141. To fix this, i edited the function blkcheck to look like this:
sub blcheck { my ($ip, $bl) = @_; my $lookupip = $ip; if (!defined($lookupip)) { print (“ERROR: hostname could not be resolved.n”); exit $ERRORS{“UNKNOWN”}; } $lookupip =~ s/([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})/$4.$3.$2.$1.$bl/; if (lookup($lookupip)) { return 1 } else { return 0 } }
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!