Host template Data query re-index method

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
amsys
Posts: 4
Joined: Mon Sep 17, 2007 10:04 am

Host template Data query re-index method

Post by amsys »

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.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

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 »

Head post edited, sorry, I forgot about this :-)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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

Re: Host template Data query re-index method

Post by MarcelM »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests