mirror of
https://github.com/a-stoyanov/zabbix-domain-expiry.git
synced 2025-12-14 18:32:30 +00:00
Merge 339eaf9165 into 9b8e1279fb
This commit is contained in:
commit
61c0647662
1 changed files with 8 additions and 1 deletions
|
|
@ -447,6 +447,13 @@ get_expiration() {
|
|||
$0 ~ "expires: *" DATE_YYYY_MM_DD_DASH_HH_MM_SS_TZOFFSET {split($2, a, "-"); printf("%s-%s-%s", a[1], a[2], a[3]); exit}
|
||||
# FIXME: XXX: weak patterns
|
||||
|
||||
# expiration date: 2025.06.24 14:00:00
|
||||
/[Ee]xpiration date:/ && $(NF-1) ~ DATE_YYYY_MM_DD_DOT {
|
||||
split($(NF-1), a, ".");
|
||||
printf("%s-%s-%s", a[1], a[2], a[3]);
|
||||
exit;
|
||||
}
|
||||
|
||||
# renewal: 31-March-2016
|
||||
/renewal:/{split($2, a, "-"); printf("%s-%s-%s\n", a[3], month2moy(a[2]), a[1]); exit}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue