HTTP Get/Post action

The HTTP Get/Post action sends a HTTP Get or Post request to a web server.

Parameters

  • Alarm number - The alarm count this action triggers on.
  • Connect to - Monitor host or Specific host. If specific host, enter the Hostname.
  • Host name - Host name or IP number. Leave blank to use the address of the asset.
  • Get/Post - Method to use when sending request to web server.
  • URL - The URL can be an absolute URL or an relative URL to the asset.
  • SSL - Check option to use SSL. Remember that the web server normally listens to a different port then the default port of 80 for SSL traffic. If necessary, change the port number when selecting this option. The action accepts server side certificates with an invalid Common Name, expired date or invalid certificate authority. Checking and unchecking this box changes the port number between 80 (unchecked) and 443 (checked).
  • Port - Port number. Defaults to 80.
  • Parameters - Post request only. Enter parameters using the format name=value, one parameter per row. The following formatting variables can be included in a parameter.
    • %[system.time] - current time
    • %[asset.name] - asset name
    • %[asset.address] - asset address
    • %[monitor.name] - monitor name
    • %[monitor.error] - monitor error message
    • %[monitor.error2] - monitor error message, no time stamp
    • %[asset.description] - asset description
    • %[group.name] - group name
    • %[group.contact] - group contact
  • Character encoding - ISO-8859-1 or UTF-8. The encoding used by the request.
  • HTTP authentication - If checked, enter a credential to authenticate the request.
  • Credentials - Monitor credentials or Stored credentials.
  • Inherit credentials - If stored credentials is selected, the Inherit credential option displays. If checked, inherits credentials from the asset. If blank, enter action-specific credentials.
  • Domain or Computer/Username/Password - Credential used to authenticate access for this action.
  • Proxy settings
    • Proxy server - Address of proxy server.
    • Proxy port - Proxy server port number.

Example: Get and post request with absolute URL

This example demonstrates two different ways of sending requests with variables to a web server, using either the get request or post request.

Get request

  • URL - http://www.yourserver.com/test.php?test1=1&test2=2

Post request

  • URL - http://www.yourserver.com/test.php
  • Parameters
    • test1=1
    • test2=2

Example: Get and post request with a relative URL

This example demonstrates two different ways of sending requests with variables to a web server, using either the get request or post request. The URL is relative to the address of the asset calling the action.

Get request

  • URL - test.php?test1=1&test2=2

Post request

  • URL - test.php
  • Parameters
    • test1=1
    • test2=2