Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_dns_rrsig

Rating
1 vote
Favoured:
0
Hits
153496
Files:
FileDescription
check_dns_rrsig.plcheck_dns_rrsig.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This checks to make sure the nameserver (-H) has RRSIG records for the zone specified with more than WARNING or CRITICAL days before expiration.
NAME
check_dns_rrsig.pl - Verify RRSIG expiration for a zone.

SYNOPSIS
check_dns_rrsig.pl -H host -z zone [ options ]

host: The server to query
zone: The DNS zone to monitor.

OPTIONS
-z|--zone zone
The DNS zone to monitor.

-H|--host host
The nameserver to query.

-t timeout
Specify the plugin timeout. Defaults to 15 seconds.

-c|--critical critical threshold in days
Specify the number of days remaining before raising a critical
alert. Defaults to 14 days.

-w|--warning warning threshold in days
Specify the number of days remaining before raising warning
alert. Defaults to 3 days.

-V|--version
Print the version number and exit

-v|verbose
Increase verbosity.

DESCRIPTION
This checks to make sure the nameserver (-H) has RRSIG records for the
zone specified with more than WARNING or CRITICAL days before
expiration.

AUTHOR
Copyright (c) 2010 Chan Wilson
Reviews (1)
bykpiti, September 21, 2015
Just the thing I needed not to be left without a valid signed zone. The issue I had (and spent some hours on it) was that while it was working perfectly from the command line, nagios kept complaining:
Warning: Check of service 'DNSSECexpire' on host xy did not exit properly

And the reason/cure is that the embedded perl finds an error - Variable "%opts" will not stay shared..
The solution is to explicitly turn off EPN by inserting in first 10 lines
# nagios: -epn

Works great since..