{"action":"created","issue":{"url":"https://api.github.com/repos/perfwatcher/collectm/issues/7","labels_url":"https://api.github.com/repos/perfwatcher/collectm/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/perfwatcher/collectm/issues/7/comments","events_url":"https://api.github.com/repos/perfwatcher/collectm/issues/7/events","html_url":"https://github.com/perfwatcher/collectm/issues/7","id":64082769,"number":7,"title":"Receiving interface rx values as both rx and tx","user":{"login":"dimrozakis","id":5428237,"avatar_url":"https://avatars.githubusercontent.com/u/5428237?v=3","gravatar_id":"","url":"https://api.github.com/users/dimrozakis","html_url":"https://github.com/dimrozakis","followers_url":"https://api.github.com/users/dimrozakis/followers","following_url":"https://api.github.com/users/dimrozakis/following{/other_user}","gists_url":"https://api.github.com/users/dimrozakis/gists{/gist_id}","starred_url":"https://api.github.com/users/dimrozakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimrozakis/subscriptions","organizations_url":"https://api.github.com/users/dimrozakis/orgs","repos_url":"https://api.github.com/users/dimrozakis/repos","events_url":"https://api.github.com/users/dimrozakis/events{/privacy}","received_events_url":"https://api.github.com/users/dimrozakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T19:38:19Z","updated_at":"2015-03-25T15:25:14Z","closed_at":null,"body":"I'm noticing something strange. It seems that for each network interface, the rx and tx metrics sample the same data source. I tried downloading a large file from the monitored server, and both rx and tx dataseries displayed exactly the same spikes. Could this be a bug in collectm's collectdCompat plugin? It seems like the interface metrics (if_octets, if_packets) send the rx values properly as rx, but incorrectly as tx as well."},"comment":{"url":"https://api.github.com/repos/perfwatcher/collectm/issues/comments/86081385","html_url":"https://github.com/perfwatcher/collectm/issues/7#issuecomment-86081385","issue_url":"https://api.github.com/repos/perfwatcher/collectm/issues/7","id":86081385,"user":{"login":"ymettier","id":2285664,"avatar_url":"https://avatars.githubusercontent.com/u/2285664?v=3","gravatar_id":"","url":"https://api.github.com/users/ymettier","html_url":"https://github.com/ymettier","followers_url":"https://api.github.com/users/ymettier/followers","following_url":"https://api.github.com/users/ymettier/following{/other_user}","gists_url":"https://api.github.com/users/ymettier/gists{/gist_id}","starred_url":"https://api.github.com/users/ymettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymettier/subscriptions","organizations_url":"https://api.github.com/users/ymettier/orgs","repos_url":"https://api.github.com/users/ymettier/repos","events_url":"https://api.github.com/users/ymettier/events{/privacy}","received_events_url":"https://api.github.com/users/ymettier/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T15:25:14Z","updated_at":"2015-03-25T15:25:14Z","body":"Right now, I have no server with several interfaces. So I cannot reproduce the problem.\r\n\r\nHere is the algo we run, if you can give a try and find what is going wrong : \r\n\r\n1/ get the list of interfaces\r\n```\r\nC:\\> typeperf -qx \"Network Interface\"\r\n```\r\n\r\n2/ then, for each line, run typeperf with that metric. Example : \r\n```\r\nC:\\> typeperf \"\\Network Interface(your interface here)\\Bytes Received/sec\"\r\n```\r\n\r\nIf you can do that, could you check if the problem comes from typeperf, from how Collectm uses typeperf, or a bug in Collectm code ?\r\n\r\nNote : you can also use the log this way : \r\nat the beginning of collectdCompat.js, add this line (useful for `util.inspect()`):\r\n```\r\nvar util = require('util');\r\n```\r\nThen, when you want, use `logger.log('info', 'DEBUG : your message')`. Example :\r\n```\r\nfunction get_interface() { // {{{\r\n    perfmon.list('Network Interface', function(err, datas) {\r\n        var newcounters = datas.counters.sort();\r\n        if((newcounters.length!=known_interfaces.length)\r\n                || ! (newcounters.every(function(v,i) { return (v === known_interfaces[i]); } ))) {\r\n            known_interfaces = newcounters;\r\n\t\t\tlogger.log('info', 'DEBUG : Found interfaces : '+util.inspect(known_interfaces, { showHidden: true, depth: null}));\r\n\r\n            perfmon(known_interfaces, function(err, data) {\r\n```\r\n\r\nThen check the log file in logs directory.\r\n\r\nNote for me : if there is a bug in Collectm code, also check `get_disk()` that has a similar code to `get_interface()`.\r\n\r\nRegards,\r\nYves"}}