Giter Site home page Giter Site logo

Howto handle authentication about check_json HOT 3 CLOSED

c-kr avatar c-kr commented on July 26, 2024
Howto handle authentication

from check_json.

Comments (3)

c-kr avatar c-kr commented on July 26, 2024

Hi,

strange, I never tried it. Thought maybe it would work within the url.

Or you could try to add this to line 109 with your credentials:

$ua->credentials("www.example.com:80", "Some Realm", "foo", "secret");

http://search.cpan.org/dist/libwww-perl/lib/LWP/UserAgent.pm
http://www.perlfect.com/freescripts/search/list/2002-November/001566.html

Let me know if this works, so I can add this to a new version

from check_json.

DennisHoy avatar DennisHoy commented on July 26, 2024

Hi Christopher
I have the same Issue. It would be very useful if it were possible to give the credentials as parameters to the plugin.
I am not sure how to use your example above. Is the host:port in the first parameter supposed to be then host you check? Can you use localhost if the resource you are checking resides on the same host as Icinga?

from check_json.

jvkassi avatar jvkassi commented on July 26, 2024

hi,

i've found it ! This as simple as that :
https://USER:PASSWORD@URL

😄

from check_json.

Related Issues (20)

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.