Hello,
The following happens with Zabbix 2.2.6 (running on Linux EL6, if relevant);
I've Imported the other ZBX-BROCADE-FC (zbx-brocade-fc-envmon.xml) with no issues, and it seems to be working great.
But, When I tried importing zbx-brocade-fc-port.xml, the import aborts with the following error:
Cannot implode expression "{KHP-BROCADE-FC-PORT:swFCPortRxCrcs[{#ADVSNMPVALUE}].last(0)}>0 | {KHP-BROCADE-FC-PORT:swFCPortRxBadEofs[{#ADVSNMPVALUE}].avg(0)}>0 | {KHP-BROCADE-FC-PORT:swFCPortRxEncOutFrs[{#ADVSNMPVALUE}].avg(0)}>0 | {KHP-BROCADE-FC-PORT:swFCPortRxTooLongs[{#ADVSNMPVALUE}].avg(0)}>0 | {KHP-BROCADE-FC-PORT:swFCPortRxTruncs[{#ADVSNMPVALUE}].avg(0)}>0". Incorrect trigger function "avg(0)" provided in expression. Invalid first parameter.
In case it's related, I've double checked and the required mappings have all been created and are listed on Administration > General > Value Mappings, and the advsnmp.discovery script is correctly installed on my externalscripts dir (along with echo.something, which works) and it also works correctly when invoked from the command-line with the same parameters mentioned in zbx-brocade-fc-port.xml:
# ./advsnmp.discovery 10.0.0.50 "-v1 -c mycommunity" .1.3.6.1.4.1.1588.2.1.1.1.6.2.1.37 1.1
{
"data":[
{
"{#ADVSNMPINDEX1}": "",
"{#ADVSNMPINDEX2}": "1",
"{#ADVSNMPVALUE}":"0"
} ,
{
"{#ADVSNMPINDEX1}": "",
"{#ADVSNMPINDEX2}": "10",
"{#ADVSNMPVALUE}":"9"
} ,
[...]
]
}
For now, I've removed the whole trigger definition, and was able to import the template, but I'd like to fix this so I can have the trigger too.
Thanks in advance,
Durval.