MeetMe / newrelic-plugin-agent

Multi-Plugin python-based Agent for NewRelic's Platform
BSD 3-Clause "New" or "Revised" License
425 stars 265 forks source link

Memcache - Agent Crash #161

Open darksheer opened 10 years ago

darksheer commented 10 years ago

INFO 2013-10-05 17:26:41 17449 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.12 started INFO 2013-10-05 17:26:41 17449 MainProcess MainThread newrelic_plugin_agent.agent process L93 : Polling INFO 2013-10-05 17:26:41 17449 MainProcess MainThread newrelic_plugin_agent.plugins.memcached poll L143 : Polling Memcached Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 846, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 723, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 464, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 328, in getMessage msg = msg % self.args TypeError: not enough arguments for format string Logged from file memcached.py, line 109 Traceback (most recent call last): File "/usr/lib/python2.7/logging/handlers.py", line 77, in emit if self.shouldRollover(record): File "/usr/lib/python2.7/logging/handlers.py", line 156, in shouldRollover msg = "%s\n" % self.format(record) File "/usr/lib/python2.7/logging/init.py", line 723, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 464, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 328, in getMessage msg = msg % self.args TypeError: not enough arguments for format string Logged from file memcached.py, line 109 Exception: AttributeError("'NoneType' object has no attribute 'send'",)

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 742, in run process.run() File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 384, in run self.process() File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/agent.py", line 95, in process self.start_plugin_polling() File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/agent.py", line 221, in start_plugin_polling self.application_config.get(plugin)) File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/agent.py", line 84, in poll_plugin thread.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.target(_self.__args, *_self.kwargs) File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/agent.py", line 276, in thread_process obj.poll() File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/plugins/memcached.py", line 154, in poll self.send_command(connection) File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent-1.0.12-py2.7.egg/newrelic_plugin_agent/plugins/memcached.py", line 201, in send_command connection.send("stats\n") AttributeError: 'NoneType' object has no attribute 'send'

gmr commented 10 years ago

So the connection info in the configuration is not allowing it to connect to memcached. Please check your config or paste it here for validation.