I want to use the check_http command to see if the server is available AND check the SSL certificate for expiration at the same time.
I have tried running "check_http -H localhost -S -C 30", but all I get is information about the certificate.
Is there a way to monitor both the availability and certificate status within a single command and have both pieces of information reported in the same HTTP "Service State Information" window?
Thanks.
combining check_http commands
Re: combining check_http commands
No, you need to create two separate checks to do this, or else write or find another plugin that does both at the same time.
Re: combining check_http commands
Also, it's likely preferable to implement them as individual checks, each optimized for the service being checked - do you really need / want to check the SSL certificate every time you check HTTP?
Generally, check_http is scheduled to run every 5 minutes or so; whereas checking the SSL certificate expiration on a daily basis is probably sufficient.
Generally, check_http is scheduled to run every 5 minutes or so; whereas checking the SSL certificate expiration on a daily basis is probably sufficient.