combining check_http commands

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tin_can
Posts: 1
Joined: Fri Jun 08, 2012 12:16 pm

combining check_http commands

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: combining check_http commands

Post 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.
helzerr
Posts: 5
Joined: Thu Jun 14, 2012 12:39 pm
Location: Orlando, FL
Contact:

Re: combining check_http commands

Post 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.
Locked