{"id":979,"date":"2017-03-07T10:07:35","date_gmt":"2017-03-07T10:07:35","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=979"},"modified":"2017-03-07T10:07:35","modified_gmt":"2017-03-07T10:07:35","slug":"php5-newrelic-agent-not-collecting-data","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2017\/03\/07\/php5-newrelic-agent-not-collecting-data\/","title":{"rendered":"PHP5 newrelic agent not collecting data"},"content":{"rendered":"<p>So today I had a newrelic customer who was having issues after installing the newrelic php plugin. He couldn&#8217;t understand why it wasn&#8217;t collecting data. For it to collecting data you need to make sure newrelic-daemon process is running by using ps auxfwww | grep newrelic-daemon.<\/p>\n<p><strong> We check the process of the daemon is running <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@rtd-production-1 ~]# ps -ef | grep newrelic-daemon\r\nroot     26007 18914  0 09:59 pts\/0    00:00:00 grep newrelic-daemon\r\n<\/pre>\n<p><strong> We check the status of the daemon process <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@rtd-production-1 ~]# service newrelic-daemon status\r\nnewrelic-daemon is stopped...\r\n<\/pre>\n<p><strong> Copy basic NewRelic configuration template to correct location <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@rtd-production-1 ~]# cp \/etc\/newrelic\/newrelic.cfg.template \/etc\/newrelic\/newrelic.cfg\r\n<\/pre>\n<p><strong> Start the daemon <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@rtd-production-1 ~]# service newrelic-daemon start\r\nStarting newrelic-daemon:                                  &#x5B;  OK  ]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So today I had a newrelic customer who was having issues after installing the newrelic php plugin. He couldn&#8217;t understand why it wasn&#8217;t collecting data. For it to collecting data you need to make sure newrelic-daemon process is running by &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2017\/03\/07\/php5-newrelic-agent-not-collecting-data\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,15,73,74,7,29,93,18,61],"tags":[],"class_list":["post-979","post","type-post","status-publish","format-standard","hentry","category-bash","category-cloud","category-log-analysis","category-logging","category-management-tools","category-monitoring","category-new-relic","category-php","category-rackspace"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=979"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/979\/revisions"}],"predecessor-version":[{"id":980,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/979\/revisions\/980"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}