virgo-agent-toolkit / rackspace-monitoring-agent

Rackspace Cloud Monitoring Agent
http://virgoagent.com/rackspace-monitoring-agent/
Apache License 2.0
118 stars 39 forks source link

"Connections" Hostinfo call does not work properly #972

Open inflatador opened 6 years ago

inflatador commented 6 years ago

Looking at the docs for the "connections" hostinfo call, the "connections" call is supposed to return the output of "arp" and "netstat": "Runs the arp -an and netstate[sic] -naten commands and retrieves information about any open listening ports and any connections to them."

Looking at the lua code for the call , it does appear that the arp and port information is captured, but not properly passed on to the final output.

Example output from the connections call: rackspace-monitoring-agent -e hostinfo_runner -x connections {"Debug":{"InfoType":"CONNECTIONS", "OS":"linux"}}

{ "metrics":[{ "address":"10.127.109.68" },{ "address":"10.127.109.65" }, "address":"192.168.128.35" }], "timestamp":1539698972000 }