Pandora FMS community forums

Full Version: Checking HTTPS site status
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All

Does anyone know of a way to check the status of a https site?

I have managed to get the http checks working but https always seems to fail, running a telnet to port 443 also fails so i am guessing it is to do with the SSL.

Any ideas?

Thanks
Hi,
Goliat is an stress/load audit tool for WEB applications and URL can use https as well as http.
This is an example for GET task (in goliat.config file):

task_begin
get https://Server/nps/servlet/portal?render=on
check_string iManager de Novell
task_end

More information: http://goliat.sourceforge.net/en/index.php
I've tested it and GET works fine, but I don't get that the POST task working properly.
Regards!
Elena.
Hi

You can build a script (using bash, python, perl, whatever you like) which uses [i]Curl[/i] to check your SSL website not caring about the certificate and so on. With it you can get lots of information such as the response code (200, 404, 503 and so on), time total for the website to be loaded and many others. After that, register this script as a command on PandoraFMS.

A good starting point is for you to explore the following command line: [tt]curl -IksL -X GET -w '%{http_code}' --url 'https://www.google.com.br' | tail -n 1[/tt]

Another good reference is the man page: [tt]http://linux.die.net/man/1/curl[/tt]

I hope it helps. Regards.