-
Type:
Problem report
-
Resolution: Fixed
-
Priority:
Major
-
None
-
Affects Version/s: 4.0.5
-
Component/s: Server (S)
-
None
]}Steps to reproduce:
- Produce long-lines JSON for read in UserParameter fe.
{"data": [
{"{#TC}": "educationplatform","{#INSTANCE}": "educationplatformuploaddatarequest_durationms"},
{"{#TC}": "email","{#INSTANCE}": "create_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "update_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "create_durationms"},
{"{#TC}": "getscore.offline","{#INSTANCE}": "updateloan_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getresponse_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getfactorexecutioncontext_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "upsert_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getbikwsalltransferpureentities_durationms"},
{"{#TC}": "sms.bluemedia","{#INSTANCE}": "sendsmsrequest_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "login_durationms"},
{"{#TC}": "bankgateway.p24","{#INSTANCE}": "sendtransfer_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "bulkmessageluploaderexecutedontimeout"},
{"{#TC}": "getscore.offline","{#INSTANCE}": "updateloanapplication_durationms"}
]}
- From zabbix_agentd it looks good. Same as above, but from zabbix_get:
{"data": [
{"{#TC}": "educationplatform","{#INSTANCE}": "educationplatformuploaddatareques
t_durationms"},
{"{#TC}": "email","{#INSTANCE}": "create_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "update_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "create_durationms"},
{"{#TC}": "getscore.offline","{#INSTANCE}": "updateloan_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getresponse_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getfactorexecutioncontext_duratio
nms"},
{"{#TC}": "salesforce","{#INSTANCE}": "upsert_durationms"},
{"{#TC}": "scorecardprovider","{#INSTANCE}": "getbikwsalltransferpureentities_d
urationms"},
{"{#TC}": "sms.bluemedia","{#INSTANCE}": "sendsmsrequest_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "login_durationms"},
{"{#TC}": "bankgateway.p24","{#INSTANCE}": "sendtransfer_durationms"},
{"{#TC}": "salesforce","{#INSTANCE}": "bulkmessageluploaderexecutedontimeout"},
{"{#TC}": "getscore.offline","{#INSTANCE}": "updateloanapplication_durationms"}
]}
- zabbix_get added additional line brakes which brakes json,
Result:
It causes: "Value should be a JSON object." when using UserParameter in discovery rules
Expected:
zabbix_get should not brake lines on its own.