Page 1 of 1

combining check_http commands

Posted: Mon Jun 11, 2012 3:00 pm
by tin_can
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.

Re: combining check_http commands

Posted: Mon Jun 11, 2012 3:54 pm
by agriffin
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

Posted: Thu Jun 14, 2012 12:46 pm
by helzerr
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.