Proxy Servers
This page applies only when OpenNMS reaches the internet through an HTTP proxy. When OpenNMS connects to ServiceNow directly, no proxy setup is necessary.
The plugin has no proxy settings.
It reads the proxy from the OpenNMS JVM and from the environment of the OpenNMS process, in the same way as curl.
For the https:// instance URL, the plugin uses the first of these values that is set:
-
The JVM properties
https.proxyHostandhttps.proxyPort, withhttps.proxyUserandhttps.proxyPasswordfor a proxy that needs a login. -
The environment variable
HTTPS_PROXYorhttps_proxy. -
The environment variable
HTTP_PROXYorhttp_proxy.
A proxy variable holds a URL that starts with http://.
The plugin does not support TLS to the proxy.
An https:// proxy URL or an invalid proxy value stops every ServiceNow call with an error that names the setting.
Correct the value and restart OpenNMS.
The instance URL must start with https://.
The proxy only opens a tunnel to ServiceNow and does not see the content of the requests.
Put the user and password of a proxy that needs a login in the URL. Encode special characters in the URL form:
HTTPS_PROXY=http://svc%40corp:secret@proxy.example.com:3128
Hosts in NO_PROXY connect directly.
The list is comma separated.
A name or a leading dot matches the host and its subdomains.
Hosts in the JVM property http.nonProxyHosts connect directly too.
That list is pipe separated, with exact names or * wildcards, like the JDK.
Localhost addresses always connect directly.
Set the values where the OpenNMS JVM sees them.
With a package installation, add them to $OPENNMS_HOME/etc/opennms.conf:
export HTTPS_PROXY=http://proxy.example.com:3128
export NO_PROXY=.internal.example.com
# or, as JVM properties:
ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=3128"
With a container, set them as environment variables of the container. Restart OpenNMS after a change. At start, the plugin logs the proxy it uses, without the password:
ServiceNow HTTP proxy: https via proxy.example.com:3128 (user svc@corp) from HTTPS_PROXY