- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Re: Custome Email Subject for events
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2004 07:51 AM
тАО01-12-2004 07:51 AM
Custome Email Subject for events
Sincerley,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2004 08:48 AM
тАО01-12-2004 08:48 AM
Re: Custome Email Subject for events
If this doesn't work for you, you could process the email entirely yourself using a custom command (application launch renamed) that runs your own script to create an email containing exactlye what you want. Refer to the help on Custom Commands to see how to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2004 08:49 AM
тАО01-12-2004 08:49 AM
Re: Custome Email Subject for events
IM passes a number of variables to any script it calls. You can then format this and do what you want.
I use blat as my SMTP Mailer.
Something like:
#Perl Script
use Env;
open MAILTMP, '>mailfile.tmp';
print MAILTMP "$NOTICEPLAINTEXT";
close MAILTMP;
system 'blat mailfile.tmp - to "phredd@mycompany.co.nz" -subject "Server Outage Detected "';
unlink 'mailfile.tmp';
exit;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 03:30 AM
тАО01-15-2004 03:30 AM
Re: Custome Email Subject for events
Example.
NAME = Environment("%DEVICENAME%")
DATE = Timedate( )
text = "A CRITICAL EVENT OCCURED FOR SERVER %NAME% ON %DATE%, PLEASE INVESTIGATE AS SOON AS POSSIBLE"
AddExtender("WWPST34I.DLL")
host="EXCHSERVER.domain.com"
fromaddr="fromaddress@domain.com"
userid=""
password=""
port=""
tolist="distribution@domain.com"
cclist=""
bcclist=""
subject="CRITICAL EVENT NOTIFICATION FROM HPSIM"
msg="%text%"
attachments=""
flags="1"
kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendText(subject,msg,attachments,flags)
EXIT
The problem that arises from this configuration is that it seems I need to install OPENSSH on all servers in the environment to make it run correctly, I was assuming it should run the exe locally versus remotely via openssh. I receive a MX_DTF error whenever I have tested it... I will try your example, and let you know how it goes. Thanks for the responses everyone. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2004 10:31 PM
тАО03-01-2004 10:31 PM
Re: Custome Email Subject for events
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 06:07 AM
тАО03-02-2004 06:07 AM
Re: Custome Email Subject for events
Not sure why you're getting the error.
I had all kinds of problems with OpenSSH. My workaround is to change the Run As on the Event Notification that calls the Command to use the account IM was installed in.
But I don't understand why you're getting the error you are.
I can generate an e-mail using the Custom Command from a Notification task. It calls perl directly and runs the script. But it does log into itself with OpenSSH to run the Command.