Red Hat Bugzilla – Bug 859102
sadf -x produces bad xml
Last modified: 2012-11-22 22:13:51 EST
Created attachment 614945 [details]
Description of problem:
sar2pcp seems badly broken...
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sar2pcp /var/log/sa/sa20 /tmp/foo
mismatched tag at line 75, column 5, byte 4773 at /usr/share/perl5/vendor_perl/XML/TokeParser.pm line 353
sa file attached.
sadf -x /var/log/sa/saNN | xmllint fails:
-:17: parser error : Opening and ending tag mismatch: statistics line 12 and timestamp
From the XML:
<timestamp date="2012-09-12" time="04-10-01" utc="1" interval="600"/>
<cpu number="all" user="7.10" nice="0.00" system="1.29" iowait="0.27" steal="0.00" idle="91.34"/>
Note the extraneous / in the opening <timestamp tag.
sysstat-10.0.2-2.fc16 appears to have this bug;
RHEL6's sysstat 9.0.4 doesn't.
However, xmllint --valid fails sadf -x's output on each of rhel5, rhel6, f16, so there is a more systemic problem here.
Checked latest version of sysstat, and this issue has been fixed. Have a patch for sysstat-10.0.2 ... will attach shortly.
Created attachment 616777 [details]
Fix XML timestamp unbalance-close-tag issue
sysstat-10.0.2-3.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sysstat-10.0.2-3.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
sysstat-10.0.2-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.