Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 22, 2017 11:59 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: mURLin - URL Monitoring with Cacti
PostPosted: Sat Aug 24, 2013 5:00 am 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Guide on URL monitoring with Cacti:

Apologies can't post links atm! :)
http://withjames.co.uk/?page_id=274

This plugin should now be classed as stable.

Image
Image

Features:
Adds URL Monitoring to Cacti
Regex Text Matching on the Returned HTML Markup
Graph and Data Templates For Download Time and HTTP Return Code
Supports Multiple URL’s Per Server Through Data Queries
Proxy support - With authentication
NEW - Stacked time graphs (See above)
NEW - Availability Graphs


Any questions let me know!

RELEASE NOTES:


v0.2.2
Release notes:
Fixed bug with CactiEZ and the jQueryskin plugin which caused the cacti instance to display an error at the top of the page
Updated the database to support website URLs of greater than 256. The new maximum is 2048 characters. The UI has been updated to stop URLs of greater than this being passed to the functions.

v0.2.1
Release notes:
Fixed a regression which meant that a site which takes longer than 1 second to respond on more than one field may show incorrectly
Fixed bug with proxy support

It is recommended that you update to this version as it contains fixes to bugs and greatly improves performance.

v0.2.0
Release notes:
Caching of results for faster lookups
Stacked Graphs (Detailed download times)
Availability Graph Template
Various bugfixes

v0.1.7
Release notes:
Full proxy support inc authenticating proxies (Thanks to Vincent Geannin)
Automatic Upgrade Procedure now in place

v0.1.6
Release notes:
Fixed an issue where including sites with GET variables didn't display correctly in the previews
Added new data source - download size
Added current values to graph templates (last)

v0.1.5
Release notes:
Fixed the issue where the data query was still reporting a mapping where the last mapping was removed

v0.1.4
Release notes:
Properly fixed the scrolling problem now.... :)
Added client side validation to the user input forms


Last edited by jamoflaw on Sun Nov 17, 2013 5:05 pm, edited 8 times in total.

Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Wed Aug 28, 2013 10:11 pm 
Offline
Developer
User avatar

Joined: Thu Feb 20, 2003 10:16 am
Posts: 1635
Location: Canada
If you get a chance, please post this to the plugins site: http://docs.cacti.net/plugins.guidelines

_________________
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 29, 2013 1:14 am 
Offline

Joined: Mon Jun 24, 2013 3:37 am
Posts: 32
Location: UK
Good job on your work so far! I installed it last night and found a couple of things that may help others to get this installed as well as providing feedback as its a Beta version...

I couldn't extract the mURLin-0.1.zip using tar as per the std instructions for installing plugins but got around this by using unzip mURLin-0.1.zip instead.

The plugin installed and enabled without issue. I have ~100 devices being monitored and when I tried to add a "host" in the mURLin tab, I found that I couldn't see my "device" in the list of hosts because it would neither scroll or give me an option to display the next page. Got around this by filtering the "hosts".

The next challenge was testing the URL to be loaded, for some reason the page wouldn't load (not a problem with the plugin) but the page test dialogue appeared to indicate that it was some sort of problem with proxy settings rather than a simple case that the URL was wrong. This was further confused because I had already entered the RegEX string, so that gave an error indicating that my string might be wrong, rather than the fact that the page couldn't be loaded.

After that everything was pretty simple.

If it helps I'm running Cacti 0.8.8a on Centos 6.4.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 29, 2013 6:19 am 
Offline

Joined: Mon Jun 24, 2013 3:37 am
Posts: 32
Location: UK
I noticed that the HTTP code was displaying with 2 decimal points, so I've changed the graph template to "exact" for that field, see below...
Attachment:
mURLin - Graph Template change.PNG
mURLin - Graph Template change.PNG [ 33.72 KiB | Viewed 12341 times ]


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 29, 2013 3:37 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Thanks for the pointers there, I have fixed both and they should import with the update to 0.1.3 which should be downloadable from Sourceforge :)

The URL downloading side uses curl so its not very intelligent as to redirects etc. It will literally get what it is told! I have a couple of sites which have odd redirects (thanks to IIS etc) basically followed the links exactly from the output (clicking Open url) and eventually got the bits I needed!

I have a feature list I would like to add to this, not sure if anyone else has any other ideas:

Stacked Graphs showing other statistics (DNS lookup time, download time for example)
Import/Export of Host Mappings
Proxy Authentication

Anything else I can think of later on :)

Was thinking of working on a WMI based service monitoring plugin with the same kind of setup, host mapping -> services in this case? Anyone be interested in that?


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 29, 2013 3:48 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Linegod wrote:
If you get a chance, please post this to the plugins site: http://docs.cacti.net/plugins.guidelines


Tis added.

http://docs.cacti.net/userplugin:murlin


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 29, 2013 4:24 pm 
Offline

Joined: Mon Jun 24, 2013 3:37 am
Posts: 32
Location: UK
I like the idea of the stacked graphs, that should help explain why a page is slow to load.

Tested with thold this afternoon and they work well together generating emails with graphs included when a threshold is breached. It did highlight the need for a current page load time, so I added one and moved it before Max: (see below).

Off to download 0.3 now, so may have some more feedback tomorrow.
Attachment:
mURLin Graph template.PNG
mURLin Graph template.PNG [ 11.41 KiB | Viewed 12328 times ]


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Sep 12, 2013 2:51 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Uploaded v0.1.4

Release notes:
Properly fixed the scrolling problem now.... :)
Added client side validation to the user input forms


I have also uploaded the package as a tar.gz rather than a zip.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Sep 12, 2013 3:49 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
2 updates tonight....

0.1.5 released, fixed the removal of last URL mapping issue.

Apologies to enyap I keep meaning to add current to the graph template! I will in the next release :)


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sun Sep 29, 2013 6:16 am 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
mURLin v0.1.6 released.

New graph included (download size) and bug fixes.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sun Sep 29, 2013 6:28 am 
Offline

Joined: Mon Jun 24, 2013 3:37 am
Posts: 32
Location: UK
Thanks for that, I'll give it a go over the coming days. I'm just wondering what the value of download size is, surely that would only change if the web page source changes?

The version on http://docs.cacti.net/userplugin:murlin still says 0.1.5 even if the download is actually 0.1.6 says Mr Picky :-)


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sun Sep 29, 2013 6:48 am 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Lol havent got round to editing that yet, my little one woke up!

:lol:

Download size was a requested addition :)


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sun Oct 20, 2013 8:59 am 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
v0.1.7 has just been released!

Full proxy support including authenticating proxies.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sat Oct 26, 2013 4:29 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Just released v0.2.1

As mentioned in the 1st post it fixes bugs and a regression which can cause incorrect data to be returned on some slow responding sites. (Over 1 second response)

It is recommended that you update to the latest version.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Sun Nov 17, 2013 5:06 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
New release, v0.2.2, now supports cactiEZ's jQueryskin plugin and URL length modifications.

Any issues please post here or on the website at http://www.withjames.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group