blob: cd5cdcf0572849a419d568f95c5acc5bb8529eaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
#
# Recipe to remake proc archive
#
rm -f proc.0 proc.index proc.meta
. $PCP_DIR/etc/pcp.env
pmcd_pid=`$PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mcd' | $PCP_AWK_PROG '{ print $2 }'`
if [ -z "$pmcd_pid" ]
then
echo "Failed to get pmcd PID"
exit 1
fi
pmlogger_pid=`$PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mlogger -P' | $PCP_AWK_PROG '{ print $2 }'`
if [ -z "$pmlogger_pid" ]
then
echo "Failed to get primary pmlogger PID"
exit 1
fi
cat <<End-of-File | $PCP_BINADM_DIR/pmlogger -s 4 -l proc.log proc
log mandatory on 500msec {
hinv
proc [$pmcd_pid,$pmlogger_pid]
kernel
disk
}
End-of-File
|