How to set Icinga2 to use proxy?

This forum was archived to /woltlab and is now in read-only mode.
  • I have a script for sending sms. Within the script I am calling curl to specified hostname. If I run the script in bash with root user or icinga user, everything goes well:

    But when the Icinga itself runs the script it does not work( Could not resolve host: <hostname>; Name or service not known ) :

    So my guess is that the problem is in proxy. How can I configure icinga to connect to the proxy? Thank you for your help.