Home Directory Addons Active Checks check_expiration_rdap

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_expiration_rdap

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2021-05-26
Compatible With
  • Nagios 3.x
Owner
Twitter Handle
buanzo
License
MIT
Hits
878
Files:
FileDescription
nagios_check_domain_expiration_rdap.zipnagios_check_domain_expiration_rdap.zip
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Domain Expiration check. Uses the Registration Data Access Protocol (RDAP), does NOT use WHOIS. Python3.
Checks how far is a domain from expiring. Uses the Registration Data Access Protocol (RDAP, supporting Bootstrap), does NOT use whois.

INSTALLATION DEPENDENCIES: pip3 install requests nagiosplugin

Works with many ccTLDs such as Argentina. It is compatible with a large number of TLDs. Allows to indicate warning/critical days-to-expiration ranges. By default CRITICAL < 15 days, WARNING < 30 days.

NOTE: I only tested with Nagios 3.x - If someone tests with other versions please let me know. Also, the rdap expiration event timestamp is split at the 'T' marker, thus ignoring time, date or timezone for expiration-today calculation this might introduce an error. I suggest running this plugin with these settings to avoid any potential bans from excessive rdap calls:

define service{
use generic-service
host_name localhost
service_description EXPIRATION example.net
check_command check_rdap_expire!example.net
check_interval 1440 ; Server are checked every 1 day when in OK state
retry_interval 180 ; Server checked every 3 hours if in problem state
max_check_attempts 3 ; Server checked 3 times to determine if its Up or Down state
}

define command{
command_name check_rdap_expire
command_line /usr/local/bin/check_rdap_expire $ARG1$
}

replace example.net and /usr/local/bin/check_rdap_expire according to your installation path.