Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache requests graph blank #20

Closed
toneplex opened this issue Jun 19, 2013 · 7 comments
Closed

Apache requests graph blank #20

toneplex opened this issue Jun 19, 2013 · 7 comments

Comments

@toneplex
Copy link

I've got the plugin installed on two servers with Apache/2.2.22. For both servers the requests graph is blank, but the cpu load, worker status, etc. graphs all have data.

@gmr
Copy link
Contributor

gmr commented Jun 19, 2013

Can you turn on DEBUG level logging in the config and paste in a few cycles of stats (need at least 2 minutes) so I can see what is going on?

@rcalosso
Copy link
Contributor

I am also not seeing any metrics for apache

root@dev-01:~# apache2ctl -v
Server version: Apache/2.2.14 (Ubuntu)
Server built: Mar 8 2013 16:46:38

Log output:
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.11 started
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 76
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.02 seconds
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.18 seconds, next wake in 59.82
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 74
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.00 seconds
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.15 seconds, next wake in 59.85
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 76
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.00 seconds
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:14:57 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:14:57 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:14:57 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 6.29 seconds, next wake in 53.71

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49
Scoreboard: W.......................................................................................................___________________.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

@iainhubbard
Copy link

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49

You need to set ExtendedStatus to On in your Apache config for the pattern match to work

@rcalosso
Copy link
Contributor

Thanks that did the trick. The read me should be updated to reflect the fact you need extend status on.

Richard Calosso
Streetline
richard@streetline.com

From: Iain <notifications@github.commailto:notifications@github.com>
Reply-To: MeetMe/newrelic-plugin-agent <reply@reply.github.commailto:reply@reply.github.com>
Date: Thu, 20 Jun 2013 03:30:43 -0700
To: MeetMe/newrelic-plugin-agent <newrelic-plugin-agent@noreply.github.commailto:newrelic-plugin-agent@noreply.github.com>
Cc: Richard Calosso <richard@streetline.commailto:richard@streetline.com>
Subject: Re: [newrelic-plugin-agent] Apache requests graph blank (#20)

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49

You need to set ExtendedStatus to On for the pattern match to work


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19743234.

@coopr
Copy link

coopr commented Jun 20, 2013

@rcalosso any chance you could make that update to the README and make a pull request?

@rcalosso
Copy link
Contributor

Created pull request.

Richard Calosso
Streetline
richard@streetline.com

From: Cooper Marcus <notifications@github.commailto:notifications@github.com>
Reply-To: MeetMe/newrelic-plugin-agent <reply@reply.github.commailto:reply@reply.github.com>
Date: Thu, 20 Jun 2013 09:41:07 -0700
To: MeetMe/newrelic-plugin-agent <newrelic-plugin-agent@noreply.github.commailto:newrelic-plugin-agent@noreply.github.com>
Cc: Richard Calosso <richard@streetline.commailto:richard@streetline.com>
Subject: Re: [newrelic-plugin-agent] Apache requests graph blank (#20)

@rcalossohttps://github.com/rcalosso any chance you could make that update to the README and make a pull request?


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19765531.

@gmr
Copy link
Contributor

gmr commented Jun 20, 2013

Thanks all!

@gmr gmr closed this as completed Jun 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants