Process Time Limits
This process_times_objects.cfg example specifies process time limits, which if exceeded, alert e-mail may be sent and/or the indicated processes may be killed. Note that it would also be possible, for example, to add thresholds to log excess process times, or to page the system administrators.
/////////////////////////////////////////////////////////////////////////////// // // process_times_objects.cfg // /////////////////////////////////////////////////////////////////////////////// ProcessTimes // process report incr kill #ifndef debug fsflush 1200 10 999999 sshd 120 5 999999 inetd 60 10 999999 # if solaris Xsun 120 10 999999 dtsession 120 10 999999 # endif // local stuff follows # if nismaster ypserv 120 10 999999 # endif # if db iigcc 120 10 999999 iidbms 2400 30 999999 gzip 120 10 999999 # endif # if ! paris7 matlab 240 20 999999 # endif # if brussels goserver 60 10 999999 # endif # if mailserver imapd 15 5 30 # endif [...] #endifdef // debug DEFAULT 60 10 999999 ///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the ProcessTimes.obj file to each PIKT slave system with the command:
# piktc -iv +O ProcessTimes +H all [or: ... -H down]
For more examples, see Samples.