Hi,
I'm trying to monitor the validity of certificates and trigger a warning a few days before they need to be renewed.
I created an item :
system.run[openssl s_client -connect hostname
ort 2>/dev/null | openssl x509 -noout -enddate | cut -d= -f 2]
It works and stores the expiration date in "latest data" with the following format :
Sep 12 08:45:04 2012 GMT
However, I'm stuck with the item creation. Any idea how I can create the following expression ? : X - current time < 5 days
Regards
I'm trying to monitor the validity of certificates and trigger a warning a few days before they need to be renewed.
I created an item :
system.run[openssl s_client -connect hostname
ort 2>/dev/null | openssl x509 -noout -enddate | cut -d= -f 2]It works and stores the expiration date in "latest data" with the following format :
Sep 12 08:45:04 2012 GMT
However, I'm stuck with the item creation. Any idea how I can create the following expression ? : X - current time < 5 days
Regards

Comment