File: solaris.ini

package info (click to toggle)
ps-watcher 1.08-11.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 772 kB
  • sloc: sh: 2,907; perl: 1,281; makefile: 104
file content (18 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $Id: solaris.ini,v 1.3 2000/04/09 20:40:21 rocky Exp $
# Processes one might want to monitor under Solaris

[(/usr/sbin/)?cron]
  trigger = $count=1  
  action  = echo "$command not running" | /usr/ucb/mail -s "$command down" root

[(/usr/sbin/)?sylogd]
  trigger = $count=1  
  action  = echo "$command not running" | /usr/ucb/mail -s "$command down" root

[.]
  trigger = $pcpu > 70
  occurs  = every
  action  = <<EOT
   echo "$command used $pcpu% CPU" | /usr/ucb/mail -s "$command was a hog" root
   kill -TERM $pid
EOT