<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Question on the Table plugin and use of Match<br><br>I am trying to collect per numa-node meminfo stats. For some reason, every server we have has the first line of the meminfo file ( only in a numa node ) has a blank line followed by the typical meminfo data.<br><br> <Table "/sys/devices/system/node/node0/meminfo"><br> Instance "numa_meminfo"<br> Separator " "<br> <Result><br> Type gauge<br> InstancePrefix "node0"<br> InstancesFrom 2<br> ValuesFrom 3<br> </Result><br> </Table><br><br>Oct 6 19:40:04 foo collectd[3260]: table plugin: Not enough columns in line (expected at least 4, got 1).<br>Oct 6 19:40:04 foo collectd[3260]: table plugin: Table /sys/devices/system/node/node1/meminfo: Failed to parse line: <br><br>I have tried putting a Match block in both the top level Table ( below Separator ) and within the Result section - neither place works and I get an error<br><br>Oct 6 19:29:55 foo collectd[15596]: table plugin: Ignoring unknown config key "Match" in <Table /sys/devices/system/node/node0/meminfo>.<br><br> <Match> <br> Regex "^Node"<br> </Match><br><br>Here is the firt 5 lines of the meminfo file<br><br>-- begin<br>me@foo:~$ head -5 /sys/devices/system/node/node1/meminfo<br><br>Node 1 MemTotal: <a href="tel:12582912" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="3">12582912</a> kB<br>Node 1 MemFree: <a href="tel:2888544" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="4">2888544</a> kB<br>Node 1 MemUsed: <a href="tel:9694368" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="5">9694368</a> kB<br>Node 1 Active: <a href="tel:4361740" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="6">4361740</a> kB<br>-- end<br><br>Is there a way to either quiet the table plugin or get a match looking for lines starting with Node? I don't mind switching to an exec script but I'd rather not.</span><br><br><div style="-webkit-text-size-adjust: auto; ">Bill Schwanitz</div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">--</div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">"Mindlessness and moral idiocy are not characteristically human attributes; they are symptoms of herd-poisoning."</div><div style="-webkit-text-size-adjust: auto; "> -- Aldous Huxley, Brave New World Revisited ( pg. 44 )</div></div></div></body></html>