GLPI agent unable to contact server when proxy set in environement variables #799
-
Documentation & bug reporting acknowledgmentYes, I read it Describe your problemHi, I read that GLPI agent automatically uses HTTP_PROXY and HTTPS_PROXY environment variables if set, however this behavior prevents the agent from talking to my server. Everything works as expected if I remove the environment variables, but I have other software that depend on those variables to function properly, so that is not a fix. How can I tell the agent to avoid the ENV completely? I've tried modifying the agent.cfg file and not installing the agent as a service to no avail. My log file after a fresh reinstall :
To reproduceSet environment variables for proxy server Expected behaviorThe agent should successfully reach the glpi server and upload it's inventory Operating systemWindows 10 GLPI Agent version1.11 GLPI version10.0.16 GLPI server OSUbuntu 22 LTS |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @gothiksnake stupid question, are you sure the proxy was really working at that time ? You provide nothing showing the proxy is alive. My first reflex is to tell you the error is only telling the proxy is unavailable and you just have to fix this problem. Did you try also to use Anyway, try to set your GLPI server hostname in
Don't forget to restart service after that. |
Beta Was this translation helpful? Give feedback.
-
Hi there, for your information, I just updated glpi-agent to support Can you test it using next nightly build ? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Just tried a trick, I just set the server as proxy using the proxy option itself, meaning I set the same url as "server" and "proxy". This may be a workaround but of course this is not fully correct.