Hi,
I've problem with using macros in graph names - it doesn't work.
I'm using discovery rule within which additional script is being run. The script is generating data like:
{
"{#ADVSNMPINDEX1}": "",
"{#ADVSNMPINDEX2}": "1",
"{#ADVSNMPINDEX3}": "36372480",
"{#ADVSNMPINDEX4}": "268370826",
"{#ADVSNMPVALUE}":""
}
, this data is used later to generate some checks, like:
, this works fine. The definition of graph protytpe name looks like this:
.
For some reason I'm getting names:

Is it possible that the names which I'm trying to put in the graph name are too long and that's why I'm getting unknown value?
How should this graph name definition look like?
I was using:
{HOST.HOST:svcDesc[{#ADVSNMPINDEX2}].last(0)}
{HOST.HOST1:svcDesc[{#ADVSNMPINDEX2}].last(0)}
{template_name:svcDesc[{#ADVSNMPINDEX2}].last(0)}
Thanks for help in advance.
I've problem with using macros in graph names - it doesn't work.
I'm using discovery rule within which additional script is being run. The script is generating data like:
{
"{#ADVSNMPINDEX1}": "",
"{#ADVSNMPINDEX2}": "1",
"{#ADVSNMPINDEX3}": "36372480",
"{#ADVSNMPINDEX4}": "268370826",
"{#ADVSNMPVALUE}":""
}
, this data is used later to generate some checks, like:

, this works fine. The definition of graph protytpe name looks like this:
.For some reason I'm getting names:

Is it possible that the names which I'm trying to put in the graph name are too long and that's why I'm getting unknown value?
How should this graph name definition look like?
I was using:
{HOST.HOST:svcDesc[{#ADVSNMPINDEX2}].last(0)}
{HOST.HOST1:svcDesc[{#ADVSNMPINDEX2}].last(0)}
{template_name:svcDesc[{#ADVSNMPINDEX2}].last(0)}
Thanks for help in advance.