for integrating with Nagios on alterting when an SSL cert is going to expire.
Seems like the script should work ok, unless there are other suggestions, then I'm open to ideas.
Thanks!
P.S.: We are currently using Nagios 3.0.6 on centOS 5.3. Upgrades are planned to happen in the near future, but want to get the above alterting going on our current version.
Actually, the Website configuration wizard that ships with XI already includes an option for SSL certificate expiry built right in, so you don't have to do anything!
Hmm, that one does appear to be specific to HTTPS ($USER1$/check_http -H $HOSTADDRESS$ -C $ARG1$), but I wouldn't be surprised if it could be faked by providing a different port either. Not sure. If you do need something else, you'd be defining things in the Core Config Manager, by creating a command definition and then assigning it to your service. I know mguthrie was working on some documentation of that stuff, but I'm not sure of the status.
Nagios has a number of standard check plugins that it's shipped with. The check_http plugin has support to check certificates built in. It may be usable to check ldap certificates. We may investigate adding ldap support directly into XI, if we do checking certificates will be part of that wizard.