- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: configure EMS notications to be sent by e-mail
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
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
тАО11-30-2009 03:27 AM
тАО11-30-2009 03:27 AM
I am new on sendmail configuring.
on my server mailx is working that is i am able to send mails outward to my e-mail ID.
mailx -s "test"' sujitkumar.singh@xxx.com
is working
i need to configure syslog to configure the sudo alerts to send me mail to the same ID.
is this entry for the same /etc/syslog.conf correct
local2.notice^I^Isujitkumar.singh@xxx.com
local2.notice^I^Isujisin
i have added the alias sujisin also.
the same way using the monconfig to send EMS e-mails messages to send the information messages as test so i have given the same mail ID while configuring monconfig, is that correct? sujitkumar.singh@xxx.com
i have added an alias using /etc/mail/aliases to my name sujisin as sujitkumar.singh@xxx.com
and i can see that i am able to send mail to my mail ID that is sujitkumar.singh@xxx.com using that alias that is sujisin like this
mailx -s "test" sujisin < test is able to send mail to sujitkumar.singh@xxx.com,
1) what else i need to configure in /etc/syslog.conf
2) how to do the settings using the monconfig, do i put the mail ID there or alias name if so , what shall be entry for the alias like.
regards
sujit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 05:19 AM
тАО11-30-2009 05:19 AM
Re: configure EMS notications to be sent by e-mail
See the man page for syslogd and scroll down to the paragraph that starts with "The second part of each line describes where the message is to be logged..."
I though that a pipe command utilizing mailx or sendmail might work as a filename but it says in the man page that the filename is kept open in append mode so that would not work.
Not sure why you mentioned EMS and emails in the subject.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 05:50 AM
тАО11-30-2009 05:50 AM
Re: configure EMS notications to be sent by e-mail
i need syslog to be configured to send mails on events of sudo
as well as send EMS events by mail for notification.
thats why mentioned EMS in the subject line too.
we can for now consider only the EMS evenstto be notified by mail as that is more urgent.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 06:17 AM
тАО11-30-2009 06:17 AM
Solutionhttp://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1259590476770+28353475&threadId=517439
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 06:36 AM
тАО11-30-2009 06:36 AM
Re: configure EMS notications to be sent by e-mail
That's fine except that EMS only monitors hardware events. It does not monitor any logging events or files such as the sudo alerts. Have you received any emails from EMS about hardware events?
You need to look within sudo itself if there is such an option or find another way by running a script to monitor the sudo/syslog logs for sudo alerts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 06:42 AM
тАО11-30-2009 06:42 AM
Re: configure EMS notications to be sent by e-mail
Thanks for the replies, i have configured the same using the monconfig command and put in there that alias and done the newaliases.
the corresponding *.sapcfg file shows the the following
MONITOR: /system/events/cpe
Criteria Threshold: INFORMATION
Criteria Operator: >=
Target Type: EMAIL
Target EMAIL address: sujisin
where sujisin is the alias, which we shall need to observe till the corresponding EMS event occurs and then shall get the mail.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 06:59 AM
тАО11-30-2009 06:59 AM
Re: configure EMS notications to be sent by e-mail
HP also provides an EMS developer's kit. I have not looked at it and can not tell if it can be used to set up a monitoring module to do what you are asking. Maybe somebody else that has used it will reply.
There is mention of a "monvols" EMS module to monitor LVM volumes. LVM monitoring is probably based on using standard LVM commands. Therefore what you are asking may be possible.
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B7611BA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:21 AM
тАО12-01-2009 06:21 AM
Re: configure EMS notications to be sent by e-mail
So any mail which comes to root , i.e all ems event in syslog and sudo security alerts will be sent to your email id
# Person who should get root's mail
#root: sujitkumar.singh@xxx.com
I guess it helps
Javed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2009 07:04 AM
тАО12-13-2009 07:04 AM
Re: configure EMS notications to be sent by e-mail
regards
sujit