This file is indexed.

/var/lib/pcp/testsuite/1004 is in pcp-testsuite 3.9.10.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/sh
# PCP QA Test No. 1004
# Some simple views ...
#
seq=`basename $0`
echo "QA output created by $seq"
. ./common.qt

_check_display
which pmchart >/dev/null 2>&1 || _notrun "pmchart not installed"

status=0	# success is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here

echo "=== Cisco ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#pmchart
Version 1.2 host dynamic

Chart Style plot
	Plot Color #-cycle Host * Metric cisco.rate_in

Chart Style plot
	Plot Color #-cycle Host * Metric cisco.rate_out

End-of-File

echo
echo "=== Disk ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#pmchart
Version 1.1 host dynamic
Chart Title "Disk Activity" Style stacking
	Plot Color yellow Host * Metric disk.all.read
	Plot Color violet Host * Metric disk.all.write
End-of-File

echo
echo "=== CPU ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#pmchart
Version 1.1 host dynamic
Chart Title "CPU Utilization" Style utilization
	Plot Color #2d2de2 Host * Metric kernel.all.cpu.user
	Plot Color #e71717 Host * Metric kernel.all.cpu.sys
	Optional-Plot Color rgbi:0.9/0.1/0.5 Host * Metric kernel.all.cpu.sxbrk
	Optional-Plot Color rgbi:0.4/0.9/0.4 Host * Metric kernel.all.cpu.nice
	Plot Color rgbi:0.8/0.8/0.0 Host * Metric kernel.all.cpu.intr
	Optional-Plot Color rgbi:0.0/0.8/0.8 Host * Metric kernel.all.cpu.wait.total
	Plot Color #16e116 Host * Metric kernel.all.cpu.idle
End-of-File

echo
echo "=== Loadavg ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#kmchart
version 1 host dynamic
chart title "Average Load" style plot
    plot legend "1 min" metric kernel.all.load instance "1 minute"
    plot legend "5 min" metric kernel.all.load instance "5 minute"
    plot legend "15 min" metric kernel.all.load instance "15 minute"
End-of-File

echo
echo "=== Net.bytes ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#kmchart
version 1
chart title "Network Interface Activity" style stacking
    plot metric network.interface.in.bytes not-matching "^lo|^sl|^ppp"
    plot metric network.interface.out.bytes not-matching "^lo|^sl|^ppp"
End-of-File

echo
echo "=== PMCD ==="
cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
#kmchart
version 1 host dynamic

chart title "PDUs In and Out for PMCD" style stacking
    plot color #-cycle host * metric pmcd.pdu_in.total
    plot color #-cycle host * metric pmcd.pdu_out.total

chart title "CPU Time for PMCD and DSO PMDAs" style stacking
# for Linux
    optional-plot color #2d2de2 host * metric proc.psinfo.utime matching "/usr/share/pcp/bin/pmcd"
    optional-plot color #e71717 host * metric proc.psinfo.stime matching "/usr/share/pcp/bin/pmcd"

chart title "CPU Time for Other PMDAs" style stacking legend off
# for Linux
    optional-plot color #2d2de2 host * metric proc.psinfo.utime matching "/pmda"
    optional-plot color #e71717 host * metric proc.psinfo.stime matching "/pmda"
End-of-File

exit