- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: error generated
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
тАО12-07-2006 03:58 AM
тАО12-07-2006 03:58 AM
I have an issue accross our environment which is being addressed by changing the application connection protocol however this needs testing before implementing.
The issue:
Occassionally an error code is being generated when an application connects to the informix database regarding share memory and entered to a logfile.
There are approx 250 scripts that run from cron that connect to the database and have the potential to fail with this error. All scripts run a inf.ksh script which setup the environments and protocols.
I want to monitor the log file for each job that runs for the error 25594 however each logfile is located in a different directory for each script.
Is there a way I can run a wrapper that does not use lots of resource for when the script is started can monitor the logfile for each error? Maybe setting something in inf.ksh?
Thanks for any help.
regards, Chris.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2006 04:10 AM
тАО12-07-2006 04:10 AM
SolutionYou can use find command to goes thru a list of folders looking inside files that end in ".log" (another assumption) and parses and greps for the string 25594 and notifies you via email. Even if the output dirs are different maybe they reside on a single device in which case you can limit the search to that particular device i.e.
# find
~hope it helps
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2006 04:24 AM
тАО12-07-2006 04:24 AM
Re: error generated
I can use this within a check however to run this on our systems would be too intensive as the filesystems are rather large.
We have created a script to check a single file for the error however due to the quantity of logfiles.
I has hoping there was a way to trap the error by setting a monitor on the relevant log file when the script is initiated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2006 04:59 AM
тАО12-07-2006 04:59 AM
Re: error generated
You can add '-xdev' to the 'find' *and* more importantly, specify multiple directories as arguments to its search. The '-xdev' keeps 'find' from crossing mountpoints. Potentially, this will reduce your searching time. Ideally, *all* of you scripts should reference a common log directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 01:41 AM
тАО12-12-2006 01:41 AM
Re: error generated
not quite what I was looking for but is a solution to my problem.
Chris