Hello,
Hopefully someone can point out what I'm doing wrong.
I have a JSON LLD discovery file as below :
{
"data": [{
"{#PORTNAME}": "BHX",
"{#PORTDESCRIPTION}": "Birmingham",
"{#AGEALERT}": "1",
"{#DURATIONALERT}": "1",
"{#FORECASTAGEALERT}": "300",
"{#FORECASTDURATIONALERT}": "9000"
}]
}
I have item prototypes setup that correctly use {#PORTNAME} and pass that into my custom scripts to return me values.
I also have trigger prototypes setup, but these do not seem to be working as expected. My expression is :
{Live Crunch Status:crunch.discovery_live_age[{#PORTNAME}].prev()}>{#AGEALERT}
When I remove {#AGEALERT} and replace it was an integer, the triggers work correctly - however I need the trigger alert value to be dynamic and supplied (preferably) by the JSON discovery file.
I'm running Zabbix 2.4.7.
Is what I'm trying to do possible? and if so, any ideas what I'm doing wrong ?
If not, are there any viable work arounds ?
Many thanks,
Paul
Hopefully someone can point out what I'm doing wrong.
I have a JSON LLD discovery file as below :
{
"data": [{
"{#PORTNAME}": "BHX",
"{#PORTDESCRIPTION}": "Birmingham",
"{#AGEALERT}": "1",
"{#DURATIONALERT}": "1",
"{#FORECASTAGEALERT}": "300",
"{#FORECASTDURATIONALERT}": "9000"
}]
}
I have item prototypes setup that correctly use {#PORTNAME} and pass that into my custom scripts to return me values.
I also have trigger prototypes setup, but these do not seem to be working as expected. My expression is :
{Live Crunch Status:crunch.discovery_live_age[{#PORTNAME}].prev()}>{#AGEALERT}
When I remove {#AGEALERT} and replace it was an integer, the triggers work correctly - however I need the trigger alert value to be dynamic and supplied (preferably) by the JSON discovery file.
I'm running Zabbix 2.4.7.
Is what I'm trying to do possible? and if so, any ideas what I'm doing wrong ?
If not, are there any viable work arounds ?
Many thanks,
Paul