- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- process monitoring
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
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-21-2007 08:16 PM
01-21-2007 08:16 PM
I have certain issues here with jobs that are run from a cron schedule .... I have over 250 jobs with various levels of importance and impact and I want to look at putting monitoring around these jobs that run.
I have created a script that checks for the most critical jobs and alerts around them wether they have completed in time or have started - this only alerts on about 5 jobs and cron starts the check. I dont want to use cron to check all 250 jobs.
My question is .....
Is there any free software that will run these checks for all 250 schedules that can be programmed for average run time and alerts if the job doesn't start or hasn't finished on time?
or
If I was to code it what is the best way to run a script that checks all these process's and there start and finish times? Has anyone got some examples?
any help will be greatly appreciated.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2007 09:27 PM
01-21-2007 09:27 PM
SolutionNot free: Glance does a pretty good job of process tracking.
Free: tusc
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/
Be careful, the Q&A on the above link is suspect. HP maintains binary versions on it ftp servers though you may need to open a response center call to gain access.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2007 09:51 PM
01-21-2007 09:51 PM
Re: process monitoring
for jobs started by cron there are valuable entries in the cron-logfile:
It contains information about the command submitted, including the username, the start- and endtime as well as its non-zero exit-status.
I think this logfile is worth reading/parsing.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2007 11:53 PM
01-21-2007 11:53 PM
Re: process monitoring
Consider using 'timex'. Call a job with 'timex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 09:24 AM
01-22-2007 09:24 AM
Re: process monitoring
Note that this is the simplest method. But this assumes that none of the jobs hang or never complete. If the job is important, the front end of each job should first make sure that the previous run finished properly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 03:10 AM
01-23-2007 03:10 AM
Re: process monitoring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2007 01:59 AM
01-25-2007 01:59 AM
Re: process monitoring
use can use the log file for crontab (as guusgest) and see if teh start time contained into this matching teh star time in crontab. To see the log file for crontab type man crontab and look under the FILES section. In my case (HP-UX11i) the file is
/var/adm/cron/log:
FILES
/var/adm/cron Main cron directory
/var/adm/cron/cron.allow List of allowed users
/var/adm/cron/cron.deny List of denied users
/var/adm/cron/log Accounting information
/var/spool/cron/crontabs Directory containing the crontab files
To check about the 'strange' duration the only sure way is to touch a file when the script finished. I suggest you to develop a simple script as like this:
can x
#/usr/bin/ksh
script_to_run=$1
touch $script_to_run.BEG
$script_to_run 1>$script_to_run.out 2> $script_to_run.err
touch $script_to_run.END
and for all teh script in crontab use 'x' to run them.
This is only and example, you can improve the script as you prefere.
HTH,
Art