- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- EMS on HP-UX 11
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
Forums
Discussions
Discussions
Discussions
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
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
03-22-2001 02:08 PM
03-22-2001 02:08 PM
Is there any way to 'customize' the mails send by EMS?
I configure EMS to send an e-mail to my pager when the severity >= MAJOR WARNING, but my pager only accepts very short messages (250bytes) and I can't see what was the severity. Of course, I have a full copy of the message on my regular e-mail account, but I'd like to be able to tell how critical the message is without having to login.
TIA,
Luis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:13 PM
03-22-2001 07:13 PM
Re: EMS on HP-UX 11
One way would be go get EMS send the emails to a specific local account. In your local mailbox, use mail filtering mechanisms (such as elm filters or simply the .forward file) to pipe your any new EMS mails to a script which trims the new mail and pipe it to your paging software.
Another way is to make use of /var/adm/syslog/syslog.log. Use a script to check for new EMS entries, grep for errors and pipe it to your paging software.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2001 02:21 PM
03-23-2001 02:21 PM
Re: EMS on HP-UX 11
I suspected those were my choices, but I didn't know if setting 'rules' on my unix mailbox was possible. I'll read the elm man pages to see if they show me how to run a script when a message arrives.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2001 03:55 PM
03-24-2001 03:55 PM
SolutionUsing ~/.forward, a user can put a file with the name .forward in his home directory. If this file exists, sendmail redirects mail for that user to the list of recipients in the .forward file. Programs and files are valid recipients eg. in your ~/.forward
abc@company.com
/var/tmp/mail.log
|/usr/local/bin/pagescript
You can pipe your mails to the pagescript for processing and subsequently alerting via paging. man sendmail for further details.
As for elm, you need to use ~/.elm/filter-rules eg.
if (to = BUGTRAQ@NETSPACE.ORG) then save ~/mail/bugtraq
if (from = "root") then execute /home/tracker/pagescript
If you have installed elm from the source tarball, for further information, you can look at /usr/local/doc/elm/Filter.guide (ascii version) or /usr/local/doc/elm/Filter.ps (postscript version).
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 02:23 PM
03-27-2001 02:23 PM
Re: EMS on HP-UX 11
This works great! Thanks for your advise. One more question, I'm defining the ~root/.forward as:
|/u1/scripts/rules.sh
root
IOW, I want to keep the root's mail unaffected by this new procedure, according to the documentation (man 5 aliases): "this will not cause loops, since no message will be sent to any person more than once" and it seems to be true, can you confirm this?
Thanks,
Luis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 08:22 PM
03-27-2001 08:22 PM
Re: EMS on HP-UX 11
Unless you are using both NIS and local aliases, you should not be facing any alias looping issues.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com