Enclosed are scripts which can be used to automatically generate and send PDF reports generated from TCR via email.
his solution provides a mechanism to generate and distribute PDF reports from TCR via email to one or more email ids. Examples are also given which will allow TCR PDF reports to be distributed by means of a web page interface and a simple cgi script which will send requested reports via email.
This solution provides a set of sample scripts which provide a process to email previously generated PDF reports from TCR. These were written and tested with reports generated from TCR 1.1.1, here after referred to as TCR. The PDF reports will need to be stored in a directory structure for access by the scripts with correct permissions. Also included is html and cgi example code to which will allow the user to send the same previously created TCR PDF reports to their email ID via a simple web front end.
These scripts were written, tested and in use on Linux RedHat AS4. The application "mutt" is used to send the email containing the PDF reports. Mutt provides the ability to send multiple PDF attachments in one email. Examples are also provided using uunecode to send one PDF attachment at a time via email. During our testing we unable to successfully include multiple attachments using uunecode. We used mutt version: "mutt-1.4.1-12.0.3.el4".
This is NOT a scheduling process to generate reports from TCR. Rather these scripts can used to distribute TCR reports to one or several email accounts.
We automated the email distribution process using crontab. These scripts assume TCR and Apache is running on the same Linux server which will used for the email distribution process. This is not a guide to enable Apache or to install/setup TCR. We used the default Apache setup on Linux AS4, the version used was Apache/2.0.52. We also have included some suggestions and a BAT file if you desire to run TCR on Windows and wish to copy your reports to a Linux machine for distribution. The BAT file should be edited to change the name of the linux server, and the same account name (we used tcradmin) and the samba account password. We used a simple samba setup with only user account password write access to the share.
These scripts provide the ability to send different reports on a daily, weekly or monthly process. Different email distribution list can be used for either daily, weekly or monthly reports respectively.
Consult the IBM Website for more information on IBM Tivoli Monitoring.
To report a problem with downloading this entry, contact the IBM ISM Library Administration.
This package is subject to the terms and conditions displayed upon download.
This download has been prepared and reviewed by IBM. It is offered "AS IS" to existing customers. Support is not provided for this download.
Append a comment and rate this item to provide feedback and questions directly to the content submitter. You can also use the forum or community links under the related product resources to reach the Service Management Connect area for the indicated product.
IBM Tivoli Monitoring
- ITM 6.2 or above
- TCR 1.1.1 or above