- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script help
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
05-08-2002 04:14 PM
05-08-2002 04:14 PM
Script help
I was wondering if anyone has a script already that would check for an "error pattern" in the logs and emails/pages out if that error occurs. I need to cron that every 5 minutes.
Any help would be greatly appreciaed.
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2002 05:01 PM
05-08-2002 05:01 PM
Re: Script help
For now, the script that I am testing currently works if run every 30 minutes. I couldn't think of any other methods that the script could be modified to run more frequently.
I've attached the script.
Any suggestions/ideas ?
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 06:24 AM
05-09-2002 06:24 AM
Re: Script help
echo "[full path of script]|at -m 1
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 06:36 AM
05-09-2002 06:36 AM
Re: Script help
Do you try to put:
if [ "${CTIME}" -le 040000 ]; then
TSPREAD="999999"
else
TSPREAD="0500"
fi
Where are this:
if [ "${CTIME}" -le 040000 ]; then
TSPREAD="999999"
else
TSPREAD="3000"
fi
Hope this helps,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 06:43 AM
05-09-2002 06:43 AM
Re: Script help
Attached is the script that I use.
It does check for named, yp, sendmail syslog etc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 10:28 AM
05-09-2002 10:28 AM
Re: Script help
Initially changing the tspread logic to 5 minutes didn't work and later I changed the logic further down the program and forgot to change it back to 5 minutes.
The testing so far has been successful.
Thanks for pointing me in the right direction Justo !
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 12:48 PM
05-09-2002 12:48 PM
Re: Script help
The date portion parses out only the current month's errors.
Best of Luck.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:06 PM
05-09-2002 11:06 PM
Re: Script help
Cheers,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:11 PM
05-09-2002 11:11 PM
Re: Script help
you coluld set up crontab to do this
dmesg - | mailx ...
this will give you any error messages which have occured since the last time dmesg was run after the first time.
cheers
John.