3 # Some simple views ...
6 echo "QA output created by $seq"
8 status
=0 # success is the default!
10 trap "_cleanup_qt; exit \$status" 0 1 2 3 15
13 which pmchart
>/dev
/null
2>&1 || _notrun
"pmchart not installed"
15 # real QA test starts here
18 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
20 Version 1.2 host dynamic
23 Plot Color #-cycle Host * Metric cisco.rate_in
26 Plot Color #-cycle Host * Metric cisco.rate_out
32 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
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
42 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
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
56 echo "=== Loadavg ==="
57 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
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"
67 echo "=== Net.bytes ==="
68 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
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"
78 cat <<End-of-File | pmchart -C -c - -Dappl2 2>&1 | _filter_views
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
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
93 optional-plot color #2d2de2 host * metric proc.psinfo.utime matching "/pmda"
94 optional-plot color #e71717 host * metric proc.psinfo.stime matching "/pmda"