Is there a way I can receive email updates with screenshots of my dataviews? Users with newer gateway versions please refer to the updated article using Gateway snapshot function (GA5.14 and above). This article provides a method with gateway rule to launch a Perl script which captures a dataview from Webslinger. |
Additional Information
Setting up Webslinger
A dataview shown in the Webslinger and the Active Console, respectively:
Configuring an Action that runs the Perl script
Configuring a rule to fire a Perl script
Modifying the Perl script that captures the data from the Webslinger and sends the email
End resultAfter configuring the Webslinger, action, rule and Perl script, you should end up with mail sent to your email address when your rules are triggered. See sample screenshot of the generated email below:
|
Comments
3 comments
If you encounter the error below from the gateway log you need to convert the file into unix format first.
/bin/sh: /usr/local/sup/geneos/gateway-email-action/scripts/email_ws.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
Step 1: install dos2unix
(on centos - yum install dos2unix)
Step 2: convert the file
[root@galorio-centos:/usr/local/sup/geneos/gateway]
# dos2unix /usr/local/sup/geneos/gateway-email-action/scripts/email_ws.pl
dos2unix: converting file /usr/local/sup/geneos/gateway-email-action/scripts/email_ws.pl to Unix format ...
seem the email_ws.pl is no more in place.
Hi Raymod
We have double checked and the files are in place under the section 'gateway-email-action'
Inside you will find a folder to be able to download the script mentioned in this article.
(PS - Make sure your company proxy/firewall allow connections to "https://github.com/ITRS-Group/")
Please sign in to leave a comment.