voxpupuli / puppet-zabbix

Puppet module for creating and maintaining zabbix components with puppet.
https://forge.puppet.com/puppet/zabbix
Apache License 2.0
79 stars 229 forks source link

Can't contact API, getting 302 because of corporate proxy #873

Open pelacables opened 1 year ago

pelacables commented 1 year ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

run the zabbix server behind a corporate proxy where no_proxy needs to be configured. even if it want to talk to itself as it's the case. Otherwise the API call is routed through the proxy and the zabbix provider shows a HTTP 302 error

IOW, curl bi-bio-zabbix.domain.com without no_proxy set and run from bi-bio-zabbix.domain.com goes first to the corporate proxy.

What are you seeing

Error: Could not prefetch zabbix_host provider 'ruby': HTTP Error: 302 on https://bi-bio-zabbix.domain.com/api_jsonrpc.php
Error: Failed to apply catalog: HTTP Error: 302 on https://bi-bio-zabbix.domain.com/api_jsonrpc.php

What behaviour did you expect instead

API reached.

Output log

Any additional information you'd like to impart