pcp
[Top] [All Lists]

qa/709 failing on Mac OS X - pmcollectl

To: PCP <pcp@xxxxxxxxxxx>
Subject: qa/709 failing on Mac OS X - pmcollectl
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 17 Mar 2016 08:19:27 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
There are no network.interface.in.compressed metrics from the darwin PMDA, 
leading to ...

! Traceback (most recent call last):
! File "/usr/local/bin/pmcollectl", line 9, in <module>
! ssx.print_line()
! File "/usr/local/bin/pmcollectl", line 9, in print_line
! self.print_verbose()
! File "/usr/local/bin/pmcollectl", line 9, in print_verbose
! sum(self.ss.get_metric_value('network.interface.in.compressed')),
! TypeError: 'int' object is not iterable

My questions are:

(a) should pmcollectl handle this case correctly?
(b) should qa/709 be _notrun for darwin (and other platforms where required 
metrics are unavailable)?

<Prev in Thread] Current Thread [Next in Thread>