Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Mar 24, 2017 12:43 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Tue Nov 26, 2013 12:13 pm 
Offline

Joined: Tue Dec 14, 2004 9:54 am
Posts: 14
I am using your plugin, it's great! Thanks for giving your time and talent.

Can you consider adding the following to your list of features?


* Ability to change polled times (rrd_step & rrd_heartbeat). I want it to match my 1 minute poller. It might be nice to change the polling times per URL as well, but guessing that might be rather complicated

* I'm having problems with the title where is it cut off (not a title field length issue). I get just the hostname (8 chars) and https://10.10.

* Wondering if you could create a custom field for the title? perhaps use suggested values in the data query if that field is blank.

* Since you are using curl options with SSL verify & host disabled, was wondering if you could create another test for just testing SSL? Something like this http://davidwalsh.name/php-ssl-curl-error

Thanks!


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Tue Nov 26, 2013 4:36 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Hi JVandermark,

Quote:
* Ability to change polled times (rrd_step & rrd_heartbeat). I want it to match my 1 minute poller. It might be nice to change the polling times per URL as well, but guessing that might be rather complicated


You should be able to do this without any change to the codebase. If you browse to Data Templates and select mURLin - URL Agent.

Add a tick to the Use Per-Data Source Value for Step and for Heartbeat. You will have to alter each heartbeat individually for each of the 10 items which are monitored (save between each)

When you create a new graph from the devices section it should now prompt you for those two values which you can change as required per graph :)


Quote:
* I'm having problems with the title where is it cut off (not a title field length issue). I get just the hostname (8 chars) and https://10.10.


This is a cacti thing, it has a default graph title max length set in Settings\Visual\Graph Management\Maximum Title Length. At the same time it is worth adjusting the max data source title to be longer as well, I have mine both set to 100 chars.

Quote:
* Wondering if you could create a custom field for the title? perhaps use suggested values in the data query if that field is blank.


This I am not sure of at the moment, I will have a look into what is possible


Quote:
* Since you are using curl options with SSL verify & host disabled, was wondering if you could create another test for just testing SSL? Something like this http://davidwalsh.name/php-ssl-curl-error


I guess there are two ways to go with this:

Graph the validation of the HTTPS certificate, similar to availability where its either true or false.

OR

Give the option to choose whether or not to validate a certificate as part of the standard URL monitoring functions?

Personally I would like to implement the second option. Let me know if that meets your requirements and I will look into getting some time to put it together.

Hope that answers some of the questions :)

Regards
James


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Wed Nov 27, 2013 9:28 am 
Offline

Joined: Mon Jun 24, 2013 3:37 am
Posts: 32
Location: UK
Hi James,

I hate to disagree, but it's not the title length that's causing the truncation. Mine is set to the default 80 chars yet it's still being truncated or to be more specific the URL portion is being truncated after 15 chars. I've tried changing the data queries max length (default 15) but that makes no difference.

Regards

Enyap


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Wed Nov 27, 2013 12:44 pm 
Offline

Joined: Tue Dec 14, 2004 9:54 am
Posts: 14
After some debugging on the title, the cause is based on the value of 15 set in the settings table for cacti on hte max_data_query_field_length value.

The value is manipuled via lib/variables.php via this call to the substitute_snmp_query_data function:
Code:
substitute_snmp_query_data(null_out_substitutions(substitute_host_data($title, "|", "|", $host_id)), $host_id, $snmp_query_id, $snmp_index, read_config_option("max_data_query_field_length"));


I set the value to 75 since my longest URL is 68 characters:
Code:
UPDATE  `cacti`.`settings` SET  `value` =  '75' WHERE  `settings`.`name` =  'max_data_query_field_length';

and ran
Code:
php -q cli/poller_graphs_reapply_names.php -id=All -d  -s="mURLin"


Should also update include/global_settings to reflect the change...

I am hoping that this doesn't cause issues elsewhere. I looked around for possible issues, but didn't see anything obvious

Now I get the complete URL in the graph. The problem now is the combination of host, graph type (avl, time, etc) and the URL exceeded the size allocated to the graph. I changed the size of the graphs to 200x700 and they fit for now. It still might be a good idea to find a way to shorten these somehow since I am actually monitoring URLS on the host and I don't really need the https://hostname/ values.

The suggested values in the data query are also backwards. IO believe that "Data Template - mURLin - URL Agent: should have a field name of "name" and "Graph Template - mURLin - URL Agent (Availability)" field value should be title.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Wed Nov 27, 2013 3:37 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Thats the one, its available in the GUI Settings/Visual/Data Queries/Maximum Field Length. Apologies I must have missed that one off my notes.

I have mine set to 100.

James


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Mon Dec 02, 2013 7:18 pm 
Offline

Joined: Mon Dec 02, 2013 5:20 pm
Posts: 1
1) mURLin - URL Agent (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

Any one know why it returns 0 items from the device? But I can preview the downloaded text from the site in mURLin tab.


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Tue Dec 03, 2013 2:16 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Have you refreshed the data query?


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Tue May 13, 2014 5:36 pm 
Offline

Joined: Sat Aug 24, 2013 4:53 am
Posts: 21
Just an update

I have recently released a tool to import bulk data into mURLin

See http://withjames.co.uk/?p=368 for more information

:) Any suggestions let me know


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Thu Aug 13, 2015 7:50 am 
Offline

Joined: Thu Aug 13, 2015 7:45 am
Posts: 1
Hey,
this plugin is still updated or author resigned from developing it ?

I think it is created for older version of cacti and have a lot of bugs now.
I try to unbug it, but it is hard work.

(i even can't add url map to host O_O)


Top
 Profile  
 
 Post subject: Re: mURLin - URL Monitoring with Cacti
PostPosted: Tue Mar 21, 2017 3:51 am 
Offline
Cacti User

Joined: Tue Nov 13, 2007 6:22 am
Posts: 69
This topic seems old and inactive, but I'll try my luck anyway...
I've just installed cacti on Ubuntu 16.04 (from repo).
I downloaded this plugin and unzipped, but it doesn't appear in the list of plugins in cacti management console.
Any clues what could be the problem?
Thanks,
Ziv


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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