Coder Social home page Coder Social logo

proxy support about check_sslscan HOT 7 CLOSED

MAngel666 avatar MAngel666 commented on June 8, 2024
proxy support

from check_sslscan.

Comments (7)

philfry avatar philfry commented on June 8, 2024

Hi and thanks.

Using a proxy is already supported by using the http_proxy and https_proxy environment. Or do you mean specifying a proxy via switch (like: --proxy=http://foo.domain.example:3128)?

from check_sslscan.

MAngel666 avatar MAngel666 commented on June 8, 2024

yeah that would be cool

from check_sslscan.

philfry avatar philfry commented on June 8, 2024

Please try the current version (1.2).

from check_sslscan.

MAngel666 avatar MAngel666 commented on June 8, 2024

it works with proxy but there seems to be an other bug. If the checked host could be resolved via dns but it's not reachable for ssllabs then I get an OK status:

/usr/lib64/nagios/plugins/check_sslscan.py --crit C --host myhostname --proxy 192.168.110.100:8080 --warn B --debug

{'host': 'myhostname', 'port': 443, 'protocol': 'http', 'isPublic': False, 'status': 'READY', 'startTime': 1649926244500, 'testTime': 1649926260141, 'engineVersion': '2.1.10', 'criteriaVersion': '2009q', 'cacheExpiryTime': 1649926860141, 'endpoints': [{'ipAddress': '...', 'serverName': 'myhostname', 'statusMessage': 'Unable to connect to the server', 'statusDetails': 'TESTING_PROTO_2_0', 'statusDetailsMessage': 'Testing SSL 2.0', 'progress': -1, 'duration': 15024, 'eta': -1, 'delegation': 1}]}

OK: score(s)

IMHO it should be an UNKNOWN

from check_sslscan.

philfry avatar philfry commented on June 8, 2024

Qualys doesn't seem to consider an unreachable host to be an error, otherwise status would return ERROR instead of READY. Which is okay if you have multiple ip addresses for a host name and do not want to fail the whole test in case of one ip address not responding. Still, I agree it is advisable to return UNKNOWN if any of the ip addresses fails.
It should be fixed in 1.3.

from check_sslscan.

MAngel666 avatar MAngel666 commented on June 8, 2024

this change works but found something new :) If I start a new check, it ends immediately with "UNKNOWN: 'endpoints'". I need to start it for the second time to get the right rating.

from check_sslscan.

philfry avatar philfry commented on June 8, 2024

Merde, yes, my bad. Fixed in 1.3.1.

from check_sslscan.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.