Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Kolos
byKolos, March 5, 2017
now date format for ".ru" and cyrillic ".xn--p1ai" domains is ISO
so you should change
this string
/paid-till:/ && $NF ~ DATE_YYYY_MM_DD_DOT {split($2, a, "."); printf("%s-%s-%s", a[1], a[2], a[3]); exit}
to this one
/paid-till:/ && DATE_ISO_FULL { get_iso_date($0, ":", 2) }
so you should change
this string
/paid-till:/ && $NF ~ DATE_YYYY_MM_DD_DOT {split($2, a, "."); printf("%s-%s-%s", a[1], a[2], a[3]); exit}
to this one
/paid-till:/ && DATE_ISO_FULL { get_iso_date($0, ":", 2) }