Change default "Re-Index Method"
Moderators: Developers, Moderators
Change default "Re-Index Method"
Hi,
I've create a "Host Template" with many Interfaces graph ...
I'd like to know if I can change the default "Re-Index Method".
The default is "Uptime Goes Backwards" but I'd like to have "Index Count Changed".
Thanks,
Olivier
I've create a "Host Template" with many Interfaces graph ...
I'd like to know if I can change the default "Re-Index Method".
The default is "Uptime Goes Backwards" but I'd like to have "Index Count Changed".
Thanks,
Olivier
Hi Reinhard,
I just whant to know, when I apply a host template (with Associated Data Queries) if I can have the "Re-Index Method" set to "Index Count Changed" BY DEFAULT.
This is because when I apply a Host Template, the "Re-Index Method" is set to "Uptime Goes Backwards". So I must delete the "Data Queries" and recreate it.
Thanks,
Olivier
I just whant to know, when I apply a host template (with Associated Data Queries) if I can have the "Re-Index Method" set to "Index Count Changed" BY DEFAULT.
This is because when I apply a Host Template, the "Re-Index Method" is set to "Uptime Goes Backwards". So I must delete the "Data Queries" and recreate it.
Thanks,
Olivier
- Attachments
-
- image.jpg (116.27 KiB) Viewed 21870 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please change host.php, to to get "Index Count changed" etc.
Reinhard
Code: Select all
<?php form_dropdown("reindex_method",$reindex_types,"","","1","","");?>
Code: Select all
<?php form_dropdown("reindex_method",$reindex_types,"","","2","","");?>
Reinhard
-
- Cacti User
- Posts: 70
- Joined: Tue Feb 21, 2006 9:50 am
You can change it!!!!!!!!!!!!!!!
you can change re-indexing method any time as i did and tested it also to work.just delete that data query from host and add same data query with new reindexing method that is it.
Thanks Reinhard,
The default "Re-Index Method" is now set to "Index Count Changed" when I add manually "Data Query".
This is ok BUT when I apply a "HOST TEMPLATE" on a new host, the "Re-Index Method" is still "Uptime Goes Backwards" for my data query.
In my example, I apply a host template with this conf :
Graph Template
1) Redback - CPU
2) Redback - Memory
Data Query Name
1) Interfaces 64-bit Stat
The "Interfaces 64-bit Stat" is apply to my host with an "Index Method" set to "Uptime Goes Backwards".
The default "Re-Index Method" is now set to "Index Count Changed" when I add manually "Data Query".
This is ok BUT when I apply a "HOST TEMPLATE" on a new host, the "Re-Index Method" is still "Uptime Goes Backwards" for my data query.
In my example, I apply a host template with this conf :
Graph Template
1) Redback - CPU
2) Redback - Memory
Data Query Name
1) Interfaces 64-bit Stat
The "Interfaces 64-bit Stat" is apply to my host with an "Index Method" set to "Uptime Goes Backwards".
- Attachments
-
- hosttemplate.jpg (63.84 KiB) Viewed 21817 times
-
- Cacti User
- Posts: 70
- Joined: Tue Feb 21, 2006 9:50 am
Any word on this? The Win32_runningprocs template provided in another thread[0] require a re-index method of 'Index Count Changed'. As I'd failed to notice this before adding all required devices, I now have to go through and change the method for a few hundred hosts.
[0]http://forums.cacti.net/viewtopic.php?t ... sc&start=0
[0]http://forums.cacti.net/viewtopic.php?t ... sc&start=0
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Assuming you're familiar with sql or at least are using stuff like phpmyadmin, you may have a look at the table `host_snmp_query` to find the field reindex_method. You may try to play around with this on a test system of your own. It is a good idea, to do a mysqldump before.dgerow wrote:Any word on this? The Win32_runningprocs template provided in another thread[0] require a re-index method of 'Index Count Changed'. As I'd failed to notice this before adding all required devices, I now have to go through and change the method for a few hundred hosts.
[0]http://forums.cacti.net/viewtopic.php?t ... sc&start=0
I won't _really_ suggest using this on a production system, but this depends ...
Reinhard
Yep, that works great for the bulk update (already done and completed), but it would still be nice to not have to add a query to a device every time it's added.
I suppose an option would be to keep the runningprocs in the template, then just do bulk SQL updates every time we import new devices (another few dozen are coming in soon), but, as you said, it's not ideal for a production system.
I suppose an option would be to keep the runningprocs in the template, then just do bulk SQL updates every time we import new devices (another few dozen are coming in soon), but, as you said, it's not ideal for a production system.
how to change reindex through MySQl
If you want to change the reindex value for all of the previously added devices,
it can be done through mysql using the following command
mysql> UPDATE `cacti`.`host_snmp_query` SET `reindex_method` = '2';
it can be done through mysql using the following command
mysql> UPDATE `cacti`.`host_snmp_query` SET `reindex_method` = '2';
Who is online
Users browsing this forum: No registered users and 1 guest