I’m using a nagios plugin (http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert/details) to do SSL cert checks
When I run it interactively from command line, it runs fine.
# /etc/sensu/plugins/check-ssl-cert.sh -H mydomain.com -w 90 -c 14 -S 3
SSL_CERT OK - X.509 certificate for ‘mydomain.com’ from ‘Go Daddy Secure Certificate Authority - G2’ valid until Jun 23 17:48:28 2015 GMT
When it gets called from within Sensu, it gives the following
SSL_CERT CRITICAL mydomain.com: Cannot verify certificate\nverification error: unable to get local issuer certificate verification error: certificate not trusted\n
Any ideas on what could be causing this difference in behaviours?