-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Minor
-
None
-
Affects Version/s: 2.2.3
-
Component/s: Server (S)
-
None
Hi,
I have created a discovery rule that returns multiple macros per record. The discovery works ok with a little exception: All items are defined correctly but there are supplimentary items that should not exist for each macro in the item with the macro not expanded.
Example:
JSON returned by agent (custom script, partial):
{"data": [
{"
{"{#GLOBAL_STAT}
": "sent", "
{#INSTANCE_NAME}": "kannel_ppc"},{"{#INSTANCE_NAME}
": "kannel_ppc", "
{#GLOBAL_QUEUE}": "receive_queue"},{"{#INSTANCE_NAME}": "kannel_ppc", "{#GLOBAL_QUEUE}
": "send_queue"},
{"
{"{#SMSBOX_QUEUE}": "(none)", "{#INSTANCE_NAME}
": "kannel_ppc"},
{"
{"{#LARGE_ACCOUNT}
": "LA_130", "
{#LA_STAT}": "total_failed", "{#INSTANCE_NAME}": "kannel_ppc"},{"{#LARGE_ACCOUNT}": "LA_130", "{#LA_STAT}
": "total_received", "
{#INSTANCE_NAME}": "kannel_ppc"},{"{#LARGE_ACCOUNT}": "LA_130", "{#LA_STAT}": "total_sent", "{#INSTANCE_NAME}
": "kannel_ppc"}]}
Discovered items keys (partial):
kannel.stats[kannel_ppc_account_LA_130_total_failed]
kannel.stats[kannel_ppc_account_LA_130_total_queued]
kannel.stats[kannel_ppc_account_LA_130_total_received]
kannel.stats[kannel_ppc_account_LA_130_total_sent]
kannel.stats[kannel_ppc_account_LA_130_
kannel.stats[kannel_ppc_account_LA_130_{#LA_STAT}]
kannel.stats[kannel_ppc_account_{#LARGE_ACCOUNT}_{#LA_QUEUE}
]
kannel.stats[kannel_ppc_account_
_
{#LA_STAT}]
The items with the macro name should not be present !