Enhancement #1624
New macro class
| Status: | Assigned | Start date: | 03/05/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | CentWeb | |||
| Target version: | Centreon-2.5 | |||
| Resolution: |
Description
It would be a good idea to create a macro class dedicated to macro handling
History
#1
Updated by Julien Mathis about 3 years ago
- Target version changed from Centreon-2.2 to Centreon-2.3
#2
Updated by Julien Mathis over 2 years ago
- Target version changed from Centreon-2.3 to Centreon-2.2
#3
Updated by Julien Mathis over 2 years ago
- Target version changed from Centreon-2.2 to Centreon-2.4
#4
Updated by Julien Mathis about 1 year ago
- Target version changed from Centreon-2.4 to Centreon-2.5
#5
Updated by Antoine Nguyen 10 months ago
We need more specification about this feature. Sylvestre, could you please work on it?
#6
Updated by Tensibai - Bastien Jove 9 months ago
See this [[http://nagios.sourceforge.net/docs/3_0/macrolist.html]]
The main idea is to have optimized requests for macro replacement on action url, notes url, and everywhere else centreon parse and replace macros by their values.
For what I've in mind the best way would be a dynamicaly build query based on macros found when parsing the parameter.
The main PITA is to get all the values needed in the string with the fewest and quickest SQL requests.
Sylvester will correct me if I'm wrong on this point.