Comments (3)
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.
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.
hi,
i've found it ! This as simple as that :
https://USER:PASSWORD@URL
😄
from check_json.
Related Issues (20)
- Plugin Check Error HOT 2
- check_json returns unknown if attributes does not exist HOT 1
- Doesn't seem to handle 302 connections HOT 1
- Global symbol "@host" requires explicit package name HOT 3
- format of response? HOT 1
- check_value_str change breaking HOT 2
- uninitialized value when warn/crit thresholds not specified
- unable to output perfdata from traversed object HOT 9
- Feature request: Add arbitrary header support HOT 1
- Can't locate Nagios/Plugin.pm in @INC HOT 3
- Feature request: return perfvars, even if expected value doesn't match actual
- Use of uninitialized value $output_value in concatenation (.) or string at check_json.pl line 252 HOT 4
- I'm too stupid to do the simplest lookups HOT 4
- Nagios::Plugin is not supported anymore on cpan HOT 2
- RESTful API JSON Moxa Remote IO Module
- Booleans do not work
- Ignore SSL cert? HOT 3
- Bearer Token not supported
- Concatening metrics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check_json.