Home Directory Plugins Operating Systems Linux Check process runtime

Search Exchange

Search All Sites

Nagios Log Server Now Available - Download Now

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check process runtime

Bookmark and Share

Don't miss your chance to attend the 2015 Nagios World conference!

Don't miss your chance to attend the 2015 Nagios World Conference, Sep 28-30th. Informative Sessions, Networking, Food and Cocktails! Visit conference.nagios.com for more information or to register.


Rating
2 votes
Favoured:
0
Hits
145725
Files:
FileDescription
check_proc_time.shBash script
A script that checks, if a given process has exceeded a defined runtime in seconds
command: /usr/local/nagios/libexec/check_proc_time.sh -p -w -c

expects parameters:

p) a pattern to grep the processlist
w) runtime in seconds as a threshold for warning state
c) runtime in seconds as a threshold for critical state

uses:
- ps
- grep
- awk
Reviews (1)
byformwandler, April 2, 2012
The time calculated in seconds is wrong on my actual Linux system. check_proc_age.sh works better.