Pandora FMS community forums
Checking HTTPS site status - Printable Version

+- Pandora FMS community forums (http://pandorafms.org/forum)
+-- Forum: Pandora FMS (http://pandorafms.org/forum/forum-3.html)
+--- Forum: General monitoring discussion (http://pandorafms.org/forum/forum-6.html)
+--- Thread: Checking HTTPS site status (/thread-4056.html)



Checking HTTPS site status - Morphius143 - 10-05-2011

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


Re: Checking HTTPS site status - gelenmb - 01-19-2012

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.


Re: Checking HTTPS site status - thiagolima - 08-05-2016

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.