Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to check if a backup process has hung. That is, the backups on the system being checked normally finish in under 2 hours, so I would like to find any backup process that is older than 2 hours.
The nagios plugin check_procs lists the option of elapsed time, but does not seem to work in my environment. I have compiled plugins version 1.4.12 on AIX 5.3.
This does find a process (when it exists) but no matter how much elapsed time this process has, this command returns
ELAPSED OK: 1 process with the command name "tsm_db2_backup"
Note: I have tried to check commands like init and sshd, but still, no success.
In doing this follow up, I see that check_procs version 1.4.12 for AIX does not have the option metric=ELAPSED. (The Linux version does) And, AIX is where I need this option.
In the end, what I need is a way to find a runaway process. If you know of other checks for this, please share.
Thanks for taking a look at this problem. All suggestions are welcome.
I noticed the 'tsm' in the command name you used so I imagine that you're checking up on Tivoli Storage Manager backups. Have a look at this script: Check TSM on AIX. Maybe it'll give you better results.
From the same site there's also this one.
That's great news. Glad to hear you found a solution and thanks for posting the link here. If you consider your problem/question solved please mark this thread as solved using the Thread tools.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.