Back to Geneos FAQ

How to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

Users can configure gateway actions which provide alert details as environment variables for sending email alerts. Starting from Gateway version GA5.14 (AA-6415), Gateway REST service supports a new endpoint to request a snapshot of a dataview.

This article includes example scripts for users to make use of these functions. The scripts are provided under the terms of the MIT License.

Note: Geneos users who engaged implementation services from ITRS more recently (since mid-2023) may have the “cordial” package installed with similar tools. Please check with the responsible project team members or ITRS Professional Services.

Pre-requisites Copied

Linux Server Copied

Gateway Copied

Installation Copied

  1. Download the scripts attached at the bottom of this article. Place them at the Geneos gateway server. You may need Linux chmod command to give execute permission to the scripts.

  2. We have created a shell script to test the gateway connection and REST command output. Open the file snapshot_test.sh with a text editor, and update the following variables:

Update the username and password variables that can connect the gateway to run REST Commands.

  1. Execute the ./snapshot_test.sh script. If the provided user can connect the gateway successfully, it should return the whole dataview in HTML format.

  2. There is a shell script for use in gateway actions. Open the file geneos_action_email.sh with a text editor. Please make the following updates:

  1. As general security practice, users should avoid putting plain text passwords in scripts according to their company policies and environment. Users who may not have an existing password management tool may consider creating a key-file with OpenSSL commands. We have provided a link to the Gateway Secure Passwords documentation below with example commands.

Usage Copied

Action to Email Copied

  1. Users can now define a gateway action to utilize the scripts for sending email alerts. Geneos - how to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

  2. If the gateway startup script does not have the GatePort variable defined, user can create a Macro at the Operating Environment. This should be pointing to the gateway port. Geneos - how to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

  3. The Rule Block can be configured like this:

Geneos - how to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

Command to Email Copied

  1. Users may make use of the scripts in Active Console right-click commands as well.

  2. Please update the geneos_command_email.sh script with environment variables similar to gateway actions above.

  3. The command should include XPath parameters to populate _VARIABLEPATH variable similar to gateway actions. We have attached a sample XML format configuration in this article.

Geneos - how to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

Email Output Copied

Geneos - how to receive email updates with screenshots of my dataviews? (Gateway version GA5.14 and above)

Common Errors Copied

Further Reading Copied

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?