Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Anything that you think should be in Cacti.
Moderators: Developers , Moderators
amsys
Posts: 4 Joined: Mon Sep 17, 2007 10:04 am
Post
by amsys » Mon Jan 28, 2008 2:23 pm
This patch adds possibility to associate re-index method with Indexed data query in host template
Maybe there was a reason to not include this but I needed it so I added it.
You must add new column into MySQL table host_template_snmp_query
Code: Select all
ALTER TABLE `host_template_snmp_query` ADD COLUMN `reindex_method` TINYINT(3) UNSIGNED DEFAULT '1' AFTER `snmp_query_id`;
by the way, I spotted there is no input validation when associating indexed query with host_template
Attachments
cacti-ht-reindex.patch.gz
patch against svn branch 0.8.7, works with 0.8.7a (2.05 KiB) Downloaded 329 times
Last edited by
amsys on Mon Jan 28, 2008 5:33 pm, edited 2 times in total.
gilles
Cacti User
Posts: 250 Joined: Tue Jul 12, 2005 8:16 pm
Post
by gilles » Mon Jan 28, 2008 3:47 pm
can you explain this patch ?
i have a bug and maybe this can help me
also, can you please post a full patched file, not a patch ?
amsys
Posts: 4 Joined: Mon Sep 17, 2007 10:04 am
Post
by amsys » Mon Jan 28, 2008 5:19 pm
Head post edited, sorry, I forgot about this
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Tue Jan 29, 2008 11:41 am
Thanks for posting this. This issue is on my todo list. So I will examine your patch. This feature is planned for 088.
Reinhard
MarcelM
Posts: 1 Joined: Wed Mar 26, 2014 2:15 pm
Post
by MarcelM » Wed Mar 26, 2014 2:35 pm
Old post, but contained what I needed, nice work amsys!
Updated to make it work with cacti 0.8.8b
Full files included.
changed files:
cacti\host_templates.php
cacti\lib\api_device.php
Attachments
host_template re-index.zip
version 0.8.8b (7.98 KiB) Downloaded 149 times
Users browsing this forum: No registered users and 0 guests