[Newbie Alert!] Monitoring Website Pageload done right

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Toontje2
Posts: 5
Joined: Sat Jan 12, 2013 1:27 pm

[Newbie Alert!] Monitoring Website Pageload done right

Post by Toontje2 »

Hi all!

I have been following this page http://www.askaboutphp.com/44/cacti-usi ... art-1.html to start monitoring my website page loads. All is working fine, but i cannot get around the feeling that the way this is set up is way too complicated.
The instructions doesn't make use of templates and devices which, i think, is the way to do this correctly.

Has someone implemented this the correct way and if so, willing to share it with the community?

Thanks,

Ton.
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by tosage »

Hello Toontje2,

I created a graph template of the script that you provided in the link that you put in your topic.
Import the xml and put the two php file in your scripts folder (for my case : /usr/share/cacti/site/scripts).

The graph template name is Loading time from a page web, you can rename this name if you don't like it ;)

Bye
Attachments
Loading time from a page web.zip
XML and Script for graph the response time of a web site.
Export from a cacti 0.8.7e
(4.88 KiB) Downloaded 548 times
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
Toontje2
Posts: 5
Joined: Sat Jan 12, 2013 1:27 pm

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by Toontje2 »

All seems to work, thanks!

I will try to figure out what you have done and try to replicate this for my personal education.

Thanks!!

Ton.
Toontje2
Posts: 5
Joined: Sat Jan 12, 2013 1:27 pm

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by Toontje2 »

I tried to delete this comment but i cannot find the Delete button.
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by tosage »

What comment and where ?
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
Toontje2
Posts: 5
Joined: Sat Jan 12, 2013 1:27 pm

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by Toontje2 »

tosage wrote:What comment and where ?
The one just above your last one. I commented that something was still wrong, then i found out how to correct it so i wanted to delete that comment. You can edit a comment, but you cannot delete it as far as i can see.

More a forum thing than a Cacti thing, i admit. :roll:
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by tosage »

Ok np ;)
Have a nice day !

Bye
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by voytek »

tosage wrote: I created a graph template of the script that you provided in the link that you put in your topic.
Import the xml and put the two php file in your scripts folder (for my case : /usr/share/cacti/site/scripts).
thanks ! eezy peezy, well done, much appreciated

only, 'Time establish connection' is not charting getting 'nan', maybe a typo in template, need to check

also, doesn't seem to be a way to specify host name in displayed values, if you wish to monitor multiple hosts

but, thanks for putting it all together
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by tosage »

Hi voytek,

I don't have this problem, maybe put replace in the data template the maximum value like this : U
You can create many graph you want, check Ignore this value on the Title in the graph template and when you create your graph you can specifiy the name of the website.
I do not know if my response answer your question :)

David
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

Re: [Newbie Alert!] Monitoring Website Pageload done right

Post by voytek »

tosage wrote:Hi voytek,
I do not know if my response answer your question :)
David,

thanks for quick response, I've tried doing some of above... but, I screwed something up, and, charting stopped all together..

I then tried to 'reverse out' but, perhaps didn't undo as required..

I need to re-do all my steps, as soon as I can, I'll try again, slowly.

thanks again, I'll yell for help again (or, post a success?)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests