Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Relic Solution: Monitoring SSL Certificate Expiration

ssl
synthetics
levelup
synthetics-script
rfb

#61

It appears that you do not have the correct API permissions to insert Insights data. Check the documentation for the type of key you require.


#62

Folks this is great but How evaluate self signed certificates? Is it possible?


#63

Hi,

I have an issue with this script when an “url to monitor” has no A record but only a CNAME record where it refers to. When executing the script it 's aborting with this error when executing the check on the url with the CNAME:

Error: getaddrinfo ENOTFOUND myURL myURL:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)

How can I change the script CNAME is also resolved? Or how to change the script it doesn’t stop when one of the “urls_to_monitor” have a DNS resolving issue and putting something in the logging to monitor through NRQL but still execute the checks on the other “urls_to_monitor”

thanks


#64

Hi all,

Need some help. For some reason one of my certs is not formatted correctly. The data formatter is fine for all the other certs. Any reason for this? Can it be fixed? see pics


#65

Hmm! Could you share a link to that query @Ralphm3?


#66

See below

https://insights.newrelic.com/accounts/1367065/dashboards/1159644?now=1586871255510

Thx Ryan.


#67

Hi @Ralphm3 - it appears as though the Expiration date is coming in as an epoch timestamp. Normally that is recognised by Insights and auto-converted. It seems that in this case, the timestamp in question is a large number, so large that Insights doesn’t recognise it as an epoch timestamp, and therefore is not converting it.

That particular date is some time in 2022.

From the data formatter you can specify that this should always be treated as a timestamp.

Something like this should work:


#68

Ryan, I tried different combinations earlier with no luck. All the expiration dates show same date. Here is the outcome with your selections.


#69

it looks like in that case you altered the Days to Expiration in the Data formatter, rather than the Expiration Date


#70

Ah ok. I got it to work.

Thx Sir!


#71

No problem! Glad it’s sorted out now :smiley: