You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gatus does not correctly parse expiration dates for .CZ and .ME domains, causing [DOMAIN_EXPIRATION] to return incorrect or invalid values. This affects domain expiration monitoring by triggering false alerts or failing to detect actual expiration dates.
What do you see?
For .CZ and .ME domains, Gatus returns incorrect values:
Gatus should correctly parse expiration dates for .CZ and .ME domains and return the actual number of hours or days until expiration, instead of incorrect negative or zero values.
List the steps that must be taken to reproduce this issue
Add a .CZ or .ME domain to the Gatus configuration for [DOMAIN_EXPIRATION] monitoring.
Start Gatus and wait for it to fetch WHOIS data.
Observe the logs and alerts for the incorrect expiration values.
Version
v5.15.0
Additional information
It looks like Gatus does not handle .CZ and .ME expiration date formats correctly. Similar to how .UK is handled in (https://github.com/TwiN/whois/blob/master/whois.go), support for .CZ and .ME should be added:
Describe the bug
Gatus does not correctly parse expiration dates for .CZ and .ME domains, causing [DOMAIN_EXPIRATION] to return incorrect or invalid values. This affects domain expiration monitoring by triggering false alerts or failing to detect actual expiration dates.
What do you see?
For .CZ and .ME domains, Gatus returns incorrect values:
WHOIS response:
whois my_example.cz | grep -i expire expire: 16.10.2025
Gatus results:
❌ - [DOMAIN_EXPIRATION] (-9223372036854) > 720h (2592000000)
WHOIS response:
whois my_example.me | grep Expiry Registry Expiry Date: 2026-05-11T02:24:08Z
Gatus results:
❌ - [DOMAIN_EXPIRATION] (0) > 720h (2592000000)
What do you expect to see?
Gatus should correctly parse expiration dates for .CZ and .ME domains and return the actual number of hours or days until expiration, instead of incorrect negative or zero values.
List the steps that must be taken to reproduce this issue
Add a .CZ or .ME domain to the Gatus configuration for [DOMAIN_EXPIRATION] monitoring.
Start Gatus and wait for it to fetch WHOIS data.
Observe the logs and alerts for the incorrect expiration values.
Version
v5.15.0
Additional information
It looks like Gatus does not handle .CZ and .ME expiration date formats correctly. Similar to how .UK is handled in (https://github.com/TwiN/whois/blob/master/whois.go), support for .CZ and .ME should be added:
`case strings.HasSuffix(domain, ".cz"):
response.ExpirationDate, _ = time.Parse("02.01.2006", value)
case strings.HasSuffix(domain, ".me"):
response.ExpirationDate, _ = time.Parse(time.RFC3339, value)
`
This should correctly parse expiration dates for .CZ (DD.MM.YYYY) and .ME (YYYY-MM-DDTHH:MM:SSZ).
The text was updated successfully, but these errors were encountered: