Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check A/PTR records for a host. Support for checking returnval vs. an array for matching valid response(s), threshhold for number of returned responses, and timeout values.
Current Version
Last Release Date
June 22, 2009
Owner
Nagios Exchange
Initial public release, 1.0
Perl, uses (requires):
Net::DNS Getopt::Long Array::Compare Pod::Usage Time::HiRes
/ Example service definition:
define service{
use generic-service hostgroup_name deathstar* servicegroups dns_alerts service_description DNS_forward check_command check_dns_host_forward_match!1 notification_options c }
use generic-service hostgroup_name deathstar* servicegroups dns_alerts service_description DNS_reverse check_command check_dns_host_reverse_match!1 notification_options c }
/ Example command definition:
define command{
command_name check_dns_host_forward_match command_line $USER1$/check_dns_host.pl -H $HOSTALIAS$ -q FORWARD -w 50 -c 500 -m $HOSTADDRESS$ -r $ARG1$ }
command_name check_dns_host_reverse_match command_line $USER1$/check_dns_host.pl -H $HOSTADDRESS$ -q REVERSE -w 50 -c 500 -m $HOSTALIAS$ -r $ARG1$ }
Checking for reverse doesn't work, eg.: #check_dns_host.pl -H 8.8.8.8.in-addr.arpa -Q REVERSE -W 1000 -C 1000 DNS OK! QUERYRETURNCODE=(NOERROR => 8.8.8.8.in-addr.arpa) ANSWERS=(0) QUERY_RETURNVAL=() ELAPSED=(8 ms) | DurationMS=8 Reverse checks always return ANSWERS=(0). Forward seems to work fine.
from the commnd line runs without error ONLY if I change the line in the sub query_check like "if (defined ($match)) {" But Nagios always report the error "(Service check did not exit properly) " Any suggestion?
On sub query_check, match verification: if (defined $match) replaced by: if (defined @match)
You must be logged in to submit a review.
To:
From:
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!