ewypych / icinga-domain-expiration-plugin Goto Github PK
View Code? Open in Web Editor NEWIcinga2/Nagios plugin for checking domain expiration
License: MIT License
Icinga2/Nagios plugin for checking domain expiration
License: MIT License
Ok, so here's an odd one - if we do a whois lookup against .net domains, we get different results in different geographical locations making the check fail at our remote production site.
Both sites are in DCs with no proxying in front of them.
Honestly not sure what to say.
[edit - deleted wrong broken file]
working.txt
When whois server doesn't return expire date in an expected format (or any format), the script doesn't work as expected. There is no error handling for such a situation. That's the output for kiev.ua
:
$ ./check_domain_expiration.sh -d kiev.ua -w 60 -c 30
date: invalid date '+%Y-%m-%d'
date: invalid date '+%s'
CRITICAL - domain has expired!```
Whois doesn't return any expiration date field for this domain.
add .im (Isle of Man) checks.
Please see PR #16
Hi Emil,
Need help with plugin output.
centos 6
GNU Awk 3.1.7
jwhois version 4.0
[plugins]$ whois google.com
[Querying whois.verisign-grs.com]
[whois.verisign-grs.com]
Domain Name: GOOGLE.COM
Registry Domain ID: 2138514_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.markmonitor.com
Registrar URL: http://www.markmonitor.com
Updated Date: 2018-02-21T18:36:40Z
Creation Date: 1997-09-15T04:00:00Z
Registry Expiry Date: 2020-09-14T04:00:00Z
[plugins]$ ./check_domain_expiration.sh -d google.com -w 60 -c 30
date: invalid date `2020-09-14T04:00:00Z\r'
date: invalid date `+%s'
CRITICAL - domain has expired!
The plugin sounds interesting.
Unfortunately, it's useless as long as virtually 100% of all relevant domains are unsupported.
Now there is no option to monitor multi-level subdomains like
mail.com.ua
but it would be good to allow that.
Hi there, I have a PR for .ie domains.
Please add the github URL to the README.md and header in the script.
This means when the script is found in the wild (or anywhere that isn't github) it's possible to check for the latest version and allows easy attribution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.