pmrep: really drop non-ascii
[pcp.git] / qa / 1004
blobf74558f979e86e6f9d1b3901039c0f6ad790b5e7
1 #!/bin/sh
2 # PCP QA Test No. 1004
3 # Some simple views ...
5 seq=`basename $0`
6 echo "QA output created by $seq"
8 status=0 # success is the default!
9 . ./common.qt
10 trap "_cleanup_qt; exit \$status" 0 1 2 3 15
12 _check_display
13 which pmchart >/dev/null 2>&1 || _notrun "pmchart not installed"
15 # real QA test starts here
17 echo "=== Cisco ==="
18 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
19 #pmchart
20 Version 1.2 host dynamic
22 Chart Style plot
23 Plot Color #-cycle Host * Metric cisco.rate_in
25 Chart Style plot
26 Plot Color #-cycle Host * Metric cisco.rate_out
28 End-of-File
30 echo
31 echo "=== Disk ==="
32 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
33 #pmchart
34 Version 1.1 host dynamic
35 Chart Title "Disk Activity" Style stacking
36 Plot Color yellow Host * Metric disk.all.read
37 Plot Color violet Host * Metric disk.all.write
38 End-of-File
40 echo
41 echo "=== CPU ==="
42 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
43 #pmchart
44 Version 1.1 host dynamic
45 Chart Title "CPU Utilization" Style utilization
46 Plot Color #2d2de2 Host * Metric kernel.all.cpu.user
47 Plot Color #e71717 Host * Metric kernel.all.cpu.sys
48 Optional-Plot Color rgbi:0.9/0.1/0.5 Host * Metric kernel.all.cpu.sxbrk
49 Optional-Plot Color rgbi:0.4/0.9/0.4 Host * Metric kernel.all.cpu.nice
50 Plot Color rgbi:0.8/0.8/0.0 Host * Metric kernel.all.cpu.intr
51 Optional-Plot Color rgbi:0.0/0.8/0.8 Host * Metric kernel.all.cpu.wait.total
52 Plot Color #16e116 Host * Metric kernel.all.cpu.idle
53 End-of-File
55 echo
56 echo "=== Loadavg ==="
57 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
58 #kmchart
59 version 1 host dynamic
60 chart title "Average Load" style plot
61 plot legend "1 min" metric kernel.all.load instance "1 minute"
62 plot legend "5 min" metric kernel.all.load instance "5 minute"
63 plot legend "15 min" metric kernel.all.load instance "15 minute"
64 End-of-File
66 echo
67 echo "=== Net.bytes ==="
68 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
69 #kmchart
70 version 1
71 chart title "Network Interface Activity" style stacking
72 plot metric network.interface.in.bytes not-matching "^lo|^sl|^ppp"
73 plot metric network.interface.out.bytes not-matching "^lo|^sl|^ppp"
74 End-of-File
76 echo
77 echo "=== PMCD ==="
78 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
79 #kmchart
80 version 1 host dynamic
82 chart title "PDUs In and Out for PMCD" style stacking
83 plot color #-cycle host * metric pmcd.pdu_in.total
84 plot color #-cycle host * metric pmcd.pdu_out.total
86 chart title "CPU Time for PMCD and DSO PMDAs" style stacking
87 # for Linux
88 optional-plot color #2d2de2 host * metric proc.psinfo.utime matching "/usr/share/pcp/bin/pmcd"
89 optional-plot color #e71717 host * metric proc.psinfo.stime matching "/usr/share/pcp/bin/pmcd"
91 chart title "CPU Time for Other PMDAs" style stacking legend off
92 # for Linux
93 optional-plot color #2d2de2 host * metric proc.psinfo.utime matching "/pmda"
94 optional-plot color #e71717 host * metric proc.psinfo.stime matching "/pmda"
95 End-of-File
97 exit