Monitoring SSL Certificate Age from a Dummy Host

See here for a discussion on the available variables.

But in this case, just leave out the path and call the binary with its filename only.

You’re probably missing the online help :wink:
Click on the book icon in the top right to turn it on. For the “Command line” parameter in an active check, it says:

Please enter the complete shell command including path name and arguments to execute. If the plugin you like to execute is located in either ~/local/lib/nagios/plugins or ~/lib/nagios/plugins within your site directory, you can strip the path name and just configure the plugin file name as command check_foobar.

But if you use SNI to request a specific certificate, then can’t you just use the built-in https active check?

Check HTTP/HTTPS service using the plugin check_http from the standard Monitoring Plugins. This plugin tests the HTTP service on the specified host. It can test normal (HTTP) and secure (HTTPS) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times.