dnaeon / py-vpoller

Distributed vSphere API Proxy
Other
83 stars 31 forks source link

Zabbix helper - quotes in string results #246

Open rockaut opened 6 years ago

rockaut commented 6 years ago

The zabbix helper returns string results with surrounding quotes.

rockaut commented 6 years ago

Quick workaround at least in Zabbix > 3.x : use preprocessing and trim the quote "

rockaut commented 6 years ago

As i see it, vsphere api is returning it quoted and in vpoller-client json output its correctly displayed with quotes. So i think that should be handled in the zabbix vpoller module?

I found the line 326 in py-vpoller/extra/zabbix/vpoller-module/vpoller.c SET_STR_RESULT(result, strdup(zmq_msg_data(&msg_in)));

I don't know C at all.