- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- route syslogs HW events via sendmail
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
тАО01-02-2009 03:24 AM
тАО01-02-2009 03:24 AM
route syslogs HW events via sendmail
Happy new year to everyone.
i have a problem regarding hardware monitoring.
i want every hardware related event (like over temperature, card failures etc.etc.) to be routed to a mailing list. and i dont have option to install some software for this purpose except sendmail that is already there.
your reply will be much appreciated in this regard.
--Asghar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2009 05:31 AM
тАО01-02-2009 05:31 AM
Re: route syslogs HW events via sendmail
You might have all your alerts go to one central server by modifying your syslog.conf file. For the alerts you want emailed just add a line like this:
*.alert /var/adm/syslog/syslog.log
*.alert @
*.lbolt /var/adm/syslog/syslog.log
*.lbolt @
...and so on...
Second
Create a file UNIXMAIL.lis that has the email accts where you want it to go:
your.name@theircomany.com
his.name@theircomany.com
Third
I like to add this to the root account .profile. That's up to you, but you will need to add this line to the top of everything you want an email alert from:
UNIXADMIN=`cat /root/UNIXMAIL.lis | awk '{print $2}'`
export UNIXADMIN
Note in my file the email addr is $2, check how you did your file and adjust accordingly.
Fourth
Write a script on that central server to check your now centralized syslog and extract all the things you want emailed. I put mine off into a file, that I move the file & log for historical reasons. You might just delete it after it sends. In that script near the top put that UNIXADMIN & export line and then just use it as a variable in a simple loop stmt.
if [[ -s /var/adm/syslog/alert.mail ]]
then
elm -s "ALERT" $UNIXADMIN < alert.mail
fi
Last Step...
OK...you got your syslog emailing only what you want. Now whenever a UNIX person comes or goes you can edit one file and copy it to your other servers & your done.
You can use the same method and set it into anything you want alerts on. Once you have it everywhere you want it - upkeep is just fixing that one file....and copying it to the rest of your boxes.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2009 05:39 AM
тАО01-02-2009 05:39 AM
Re: route syslogs HW events via sendmail
Without adding *any* extra software, including scripts, you'll have to rely on system's internal emails to the root account and the syslog messages.
Use /etc/mail/aliases to forward emails sent to root@localhost to some central user account (maybe even directly to your mailing list, but some server with advanced email filtering features would be preferred).
Use /etc/syslog.conf to configure the syslog daemon to send the log messages to some central log server for filtering and emailing. If syslog-ng can be installed to the central log server, that is good: a standard syslog daemon offers very limited facilities for classifying messages.
One machine can handle the log collection and email filtering for a large group of machines: the processing power requirement is minimal. Any old machine you can spare should be more than powerful enough for these purposes, but you might want something with mirrored disks for better reliability.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2009 01:54 PM
тАО01-02-2009 01:54 PM
Re: route syslogs HW events via sendmail
its obvious that i'll have to use sendmail. can have one email forwarded to email gateway that can in turn route to a mailing list.
Actual thing lies with the precision of "choosing" required event from a log file.
any precise help in this regard will be much appreciated. also i feel someone out there, like me, may have the same issue implemented?
or how you people manage to get alerts about hardware failures from server to a mail account? i mean think away from the specifications of my problem, in general what could be the other ways to monitor hardware from system/MP using alerts in emails? SNMP? id,,pg etc.etc ?
i hope i have reshaped my question. at first it will feel like annoying but i feel it will help me to get to a conclusion.
Regards,
Asghar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2009 03:12 PM
тАО01-02-2009 03:12 PM
Re: route syslogs HW events via sendmail
As I understand you want to define kind of filter between relevant messages and those which are not and I think Rita's answer was a good one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2009 07:44 AM
тАО01-04-2009 07:44 AM
Re: route syslogs HW events via sendmail
Thanks anyways!
Regards,
Asghar