- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mailing errors appended to syslog
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
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
01-07-2003 04:25 PM
01-07-2003 04:25 PM
In order to monitor errors written to the syslog file, I've decided to write a cron job that greps words like "error" and "CRITICAL" in the syslog file and mailing them to me.
Should I include more words other than the two? Or is there a better way of notifiying me of errors or problems? thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 04:32 PM
01-07-2003 04:32 PM
Re: Mailing errors appended to syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 04:35 PM
01-07-2003 04:35 PM
Re: Mailing errors appended to syslog
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 04:35 PM
01-07-2003 04:35 PM
SolutionYou can use a script to grep for error and critical from syslog file and mail you.
also check syslog.conf file, you can make syslog to send the error and critical messages to other file also.
So you can just mail that file only to you.
If your application supports, set it to send alerts to your mail id directly. Like we have omniback configured to send mails to us incase of any alerts.
Happy Monitoring
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 04:46 PM
01-07-2003 04:46 PM
Re: Mailing errors appended to syslog
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x21ee56bd90a9d611abdb0090277a778c,00.html
Hope this helps ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 05:59 AM
01-08-2003 05:59 AM
Re: Mailing errors appended to syslog
Of course you'll still have to be fairly specific to make sure that you don't accidentally ignore something you need to know about, but that's not that difficult since you have logs to build your patterns from.
The idea is that when nothing unusual is happening, you don't get any error reports, but when something unexpected happens (ie a line you haven't told the script to ignore), you get a report on it.
Logwatch (http://www.logwatch.org) works that way and swatch can work that way as well. There are tons of log handling tools listed here as well:
http://www.counterpane.com/log-analysis.html