stdevel / check_katello_currency

A Nagios / Icinga plugin for checking patch currency of hosts managed by Foreman/Katello or Red Hat Satellite 6
GNU General Public License v3.0
0 stars 1 forks source link

No connection adapters were found #11

Open MAngel666 opened 2 years ago

MAngel666 commented 2 years ago

Hi, I get this error:

./check_katello_currency.py --debug -a auth_sat.txt -s satellite -A DEBUG:check_katello_currency:Options: Namespace(all_systems=True, authfile='auth_sat.txt', bugs_crit=50, bugs_warn=25, debug=True, environment='', exclude=[], gen_stats=False, hostgroup='', inactive_crit=50, inactive_warn=10, location='', organization='', outdated_crit=80, outdated_warn=50, security_crit=20, security_warn=10, server='satellite', show_perfdata=False, ssl_verify=True, system=[], total_crit=None, total_warn=None) DEBUG:check_katello_currency:Arguments: None DEBUG:check_katello_currency:Using authfile DEBUG:check_katello_currency:File permission matches 0600 ERROR:ForemanAPIClient:No connection adapters were found for '[https://satellite/api/v2]https://satellite/api/v2/status?per_page=1337&page=1' Traceback (most recent call last): File "./check_katello_currency.py", line 600, in main(options) File "./check_katello_currency.py", line 576, in main options.server, sat_user, sat_pass, options.ssl_verify File "/root/ForemanAPIClient.py", line 87, in init self.validate_api_support() File "/root/ForemanAPIClient.py", line 244, in validate_api_support self.api_get("/status") File "/usr/lib64/python2.7/json/init.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer

stdevel commented 1 year ago

Hi @MAngel666, sorry for the late answer - is your problem still existent?

What does your browser show when you access the URL https://satellite/api/v2/status?per_page=1337&page=1?