1 #
   2 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 config.execSuffix=
  25 # pattern will be replaced with the PID
  26 config.getChildren.pattern=%p
  27 config.getChildren.app=pgrep
  28 config.getChildren.args=-P %p
  29 ################################################################################
  30 # prepareProcess info to gather
  31 ################################################################################
  32 onTimeout=\
  33   native.pmap \
  34   native.pfiles \
  35   native.stack native.core
  36 ################################################################################
  37 # solaris specific
  38 ################################################################################
  39 native.pattern=%p
  40 native.javaOnly=false
  41 
  42 native.pmap.app=pmap
  43 native.pmap.args=-F %p
  44 
  45 native.pfiles.app=pfiles
  46 native.pfiles.args=-F %p
  47 
  48 # native.locks  TODO find 'analog for solaris' for Linux lslocks
  49 
  50 native.stack.app=pstack
  51 native.stack.args=-F %p
  52 native.stack.params.repeat=6
  53 
  54 native.core.app=gcore
  55 native.core.args=-F -o ./core %p
  56 native.core.params.timeout=3600000
  57 ################################################################################
  58 # environment info to gather
  59 ################################################################################
  60 environment=\
  61   users.current users.logged users.last \
  62   disk \
  63   env \
  64   system.dmesg system.prtconf system.sysdef \
  65   process.ps process.top \
  66   memory.swap memory.vmstat.default memory.vmstat.statistics memory.pagesize \
  67   netstat.av netstat.m netstat.s netstat.i
  68 ################################################################################
  69 # common unix
  70 ################################################################################
  71 users.current.app=id
  72 users.current.args=-a
  73 users.logged.app=who
  74 users.logged.args=-a
  75 users.last.app=last
  76 users.last.args=-10
  77 
  78 disk.app=df
  79 disk.args=-h
  80 
  81 env.app=env
  82 
  83 system.dmesg.app=dmesg
  84 system.prtconf.app=prtconf
  85 system.sysdef.app=sysdef
  86 
  87 memory.swap.app=swap
  88 memory.swap.args=-l
  89 
  90 process.ps.app=ps
  91 process.ps.args=-Leo pid,lwp,ppid,tty,s,wchan,pcpu,time,stime,pmem,vsz,osz,rss,args
  92 
  93 process.top.app=top
  94 process.top.args=-b -n
  95 
  96 memory.vmstat.app=vmstat
  97 memory.vmstat.default.args=3 3
  98 memory.vmstat.statistics.args=-s
  99 
 100 memory.pagesize.app=pagesize
 101 
 102 # TODO: how to start prstat to show statistics and exit?
 103 # prstat.app=prstat
 104 # prstat.args=-a
 105 
 106 netstat.app=netstat
 107 netstat.av.args=-av
 108 netstat.m.args=-m
 109 netstat.s.args=-s
 110 netstat.i.args=-i 1 5
 111 ################################################################################