<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cacti: Using Cacti to monitor web page loading &#8211; Part 3</title>
	<atom:link href="http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html</link>
	<description></description>
	<lastBuildDate>Tue, 27 Jul 2010 08:48:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dan</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-22166</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Tue, 22 Jun 2010 08:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-22166</guid>
		<description>can anybody say, how long is running pageload-agent.php if a web sute is not available?</description>
		<content:encoded><![CDATA[<p>can anybody say, how long is running pageload-agent.php if a web sute is not available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pajarofeo</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-19880</link>
		<dc:creator>pajarofeo</dc:creator>
		<pubDate>Wed, 10 Mar 2010 16:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-19880</guid>
		<description>hi

I think that the error is:

the script doesn´t  save datas to the file con_114.rrd because the date isn&#039;t update

debian:/usr/share/cacti/site/pageload# ls -l /var/lib/cacti/rra/con_263.rrd
-rw-r--r-- 1 www-data www-data 56224 mar 10 13:10 /var/lib/cacti/rra/con_263.rrd
debian:/usr/share/cacti/site/pageload# date
wend mar 10 17:04:22 CET 2010
cactimap:/usr/share/cacti/site/pageload#</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>I think that the error is:</p>
<p>the script doesn´t  save datas to the file con_114.rrd because the date isn&#8217;t update</p>
<p>debian:/usr/share/cacti/site/pageload# ls -l /var/lib/cacti/rra/con_263.rrd<br />
-rw-r&#8211;r&#8211; 1 www-data www-data 56224 mar 10 13:10 /var/lib/cacti/rra/con_263.rrd<br />
debian:/usr/share/cacti/site/pageload# date<br />
wend mar 10 17:04:22 CET 2010<br />
cactimap:/usr/share/cacti/site/pageload#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pajarofeo</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-19878</link>
		<dc:creator>pajarofeo</dc:creator>
		<pubDate>Wed, 10 Mar 2010 15:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-19878</guid>
		<description>hi

I’m getting the same problem (ERROR: No DS called ‘ttl’ in ‘/var/www/html/cacti/rra/con_114.rrd’)

My PHP has curl enabled.

Running the php script from the command line work fine.</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>I’m getting the same problem (ERROR: No DS called ‘ttl’ in ‘/var/www/html/cacti/rra/con_114.rrd’)</p>
<p>My PHP has curl enabled.</p>
<p>Running the php script from the command line work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-18257</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Fri, 08 Jan 2010 02:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-18257</guid>
		<description>hi Anil

Unfortunately I have stopped running this service so I can&#039;t offer much help, as I&#039;ve found a better alternative for measure page load time that&#039;s more reflective of how pages load. 

http://www.askaboutphp.com/71/webpagetest-tool-the-little-known-but-great-webpage-benchmarking-tool.html</description>
		<content:encoded><![CDATA[<p>hi Anil</p>
<p>Unfortunately I have stopped running this service so I can&#8217;t offer much help, as I&#8217;ve found a better alternative for measure page load time that&#8217;s more reflective of how pages load. </p>
<p><a href="http://www.askaboutphp.com/71/webpagetest-tool-the-little-known-but-great-webpage-benchmarking-tool.html" rel="nofollow">http://www.askaboutphp.com/71/webpagetest-tool-the-little-known-but-great-webpage-benchmarking-tool.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil Perera</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-18235</link>
		<dc:creator>Anil Perera</dc:creator>
		<pubDate>Thu, 07 Jan 2010 17:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-18235</guid>
		<description>Hi,
I do not know whether you are still maintaining this site, but when I run your script from the command line, I get he result. However in Cacti, I do not get a graph and cacti.log shows the following message:-

01/06/2010 12:51:23 PM - SPINE: Poller[0] Host[1] ERROR: Empty result [127.0.0.1
]: &#039;php /usr/opt/apache/htdocs/cacti/scripts/pageload-agent.php www.askaboutphp.
com&#039;
01/06/2010 12:51:23 PM - SPINE: Poller[0] Host[1] DS[33119] SCRIPT: php /usr/opt
/apache/htdocs/cacti/scripts/pageload-agent.php www.askaboutphp.com, output: U
01/06/2010 12:51:23 PM - SPINE: Poller[0] Host[1] DEBUG: The NIFTY POPEN returne
d the following File Descriptor 6</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I do not know whether you are still maintaining this site, but when I run your script from the command line, I get he result. However in Cacti, I do not get a graph and cacti.log shows the following message:-</p>
<p>01/06/2010 12:51:23 PM &#8211; SPINE: Poller[0] Host[1] ERROR: Empty result [127.0.0.1<br />
]: &#8216;php /usr/opt/apache/htdocs/cacti/scripts/pageload-agent.php <a href="http://www.askaboutphp" rel="nofollow">http://www.askaboutphp</a>.<br />
com&#8217;<br />
01/06/2010 12:51:23 PM &#8211; SPINE: Poller[0] Host[1] DS[33119] SCRIPT: php /usr/opt<br />
/apache/htdocs/cacti/scripts/pageload-agent.php <a href="http://www.askaboutphp.com" rel="nofollow">http://www.askaboutphp.com</a>, output: U<br />
01/06/2010 12:51:23 PM &#8211; SPINE: Poller[0] Host[1] DEBUG: The NIFTY POPEN returne<br />
d the following File Descriptor 6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joeyd</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-16483</link>
		<dc:creator>joeyd</dc:creator>
		<pubDate>Thu, 26 Nov 2009 05:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-16483</guid>
		<description>Great script!! and does return values from the command line but it prints out a blank line then the results.  Could this be the reason it&#039;s not storing in the RRD?

Also when I look at the logs I see the script attempt to run but the &quot;output&quot; is just &#039;U&#039;..wierd

11/26/2009 12:14:12 AM - SPINE: Poller[0] Host[0] DS[221] SCRIPT: /usr/bin/php -q /var/www/html/scripts/pageload-agent.php www.naturalstandard.com, output: U

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Great script!! and does return values from the command line but it prints out a blank line then the results.  Could this be the reason it&#8217;s not storing in the RRD?</p>
<p>Also when I look at the logs I see the script attempt to run but the &#8220;output&#8221; is just &#8216;U&#8217;..wierd</p>
<p>11/26/2009 12:14:12 AM &#8211; SPINE: Poller[0] Host[0] DS[221] SCRIPT: /usr/bin/php -q /var/www/html/scripts/pageload-agent.php <a href="http://www.naturalstandard.com" rel="nofollow">http://www.naturalstandard.com</a>, output: U</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jafo</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-16245</link>
		<dc:creator>jafo</dc:creator>
		<pubDate>Thu, 19 Nov 2009 23:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-16245</guid>
		<description>Very nice walkthrough. Part 4 could be named &quot;Troubleshooting tips&quot; ;-) Good work!</description>
		<content:encoded><![CDATA[<p>Very nice walkthrough. Part 4 could be named &#8220;Troubleshooting tips&#8221; <img src='http://www.askaboutphp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yugi</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-14484</link>
		<dc:creator>yugi</dc:creator>
		<pubDate>Tue, 29 Sep 2009 18:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-14484</guid>
		<description>Hi,

I tried to add a threshold to the graph, but for some reason it&#039;s not triggered, though I used a low value which is lower than a current one. What could be a problem?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried to add a threshold to the graph, but for some reason it&#8217;s not triggered, though I used a low value which is lower than a current one. What could be a problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Lye</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-14319</link>
		<dc:creator>Ben Lye</dc:creator>
		<pubDate>Thu, 24 Sep 2009 08:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-14319</guid>
		<description>I think I&#039;ve fixed the problem where only the dns parameter is returned.  I don&#039;t know if it&#039;s the same fix as Anderson, but it&#039;s working for me.

Change these lines in pageload-agent.php:

print &quot;dns:&quot;.$output[&#039;namelookup_time&#039;];
print &quot; con:&quot;.$output[&#039;connect_time&#039;];
print &quot; pre:&quot;.$output[&#039;pretransfer_time&#039;];
print &quot; str:&quot;.$output[&#039;starttransfer_time&#039;];
print &quot; ttl:&quot;.$output[&#039;total_time&#039;];
print &quot; sze:&quot;.$output[&#039;size_download&#039;];
print &quot; spd:&quot;.$output[&#039;speed_download&#039;];


To this (beware any line wrapping, it should only be two lines):

$outstring = &quot;ttl:&quot;.$output[&#039;total_time&#039;].&quot; str:&quot;.$output[&#039;starttransfer_time&#039;].&quot; dns:&quot;.$output[&#039;namelookup_time&#039;].&quot; con:&quot;.$output[&#039;connect_time&#039;].&quot; pre:&quot;.$output[&#039;pretransfer_time&#039;].&quot; sze:&quot;.$output[&#039;size_download&#039;].&quot; spd:&quot;.$output[&#039;speed_download&#039;];

print chop($outstring,&quot;\n\r&quot;);



Ben.</description>
		<content:encoded><![CDATA[<p>I think I&#8217;ve fixed the problem where only the dns parameter is returned.  I don&#8217;t know if it&#8217;s the same fix as Anderson, but it&#8217;s working for me.</p>
<p>Change these lines in pageload-agent.php:</p>
<p>print &#8220;dns:&#8221;.$output['namelookup_time'];<br />
print &#8221; con:&#8221;.$output['connect_time'];<br />
print &#8221; pre:&#8221;.$output['pretransfer_time'];<br />
print &#8221; str:&#8221;.$output['starttransfer_time'];<br />
print &#8221; ttl:&#8221;.$output['total_time'];<br />
print &#8221; sze:&#8221;.$output['size_download'];<br />
print &#8221; spd:&#8221;.$output['speed_download'];</p>
<p>To this (beware any line wrapping, it should only be two lines):</p>
<p>$outstring = &#8220;ttl:&#8221;.$output['total_time'].&#8221; str:&#8221;.$output['starttransfer_time'].&#8221; dns:&#8221;.$output['namelookup_time'].&#8221; con:&#8221;.$output['connect_time'].&#8221; pre:&#8221;.$output['pretransfer_time'].&#8221; sze:&#8221;.$output['size_download'].&#8221; spd:&#8221;.$output['speed_download'];</p>
<p>print chop($outstring,&#8221;\n\r&#8221;);</p>
<p>Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Kirkpatrick</title>
		<link>http://www.askaboutphp.com/46/cacti-using-cacti-to-monitor-web-page-loading-part-3.html/comment-page-1#comment-14043</link>
		<dc:creator>Tom Kirkpatrick</dc:creator>
		<pubDate>Sun, 13 Sep 2009 00:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=46#comment-14043</guid>
		<description>The only graph item that I can add to my graph without getting that error is th &#039;con&#039; item. With just that item added, I do get a graph, but it has no data. Adding any more graph items  results in the above error.</description>
		<content:encoded><![CDATA[<p>The only graph item that I can add to my graph without getting that error is th &#8216;con&#8217; item. With just that item added, I do get a graph, but it has no data. Adding any more graph items  results in the above error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
